Repository navigation
Commit 850d83c
authored
Update dynamicPythonConfigAvailable when the active editor changes (#1149)
The context key gating the 'Show automatic Python configurations'
welcome button was set only once during activation, from whichever
editor was active then. It now also updates on
window.onDidChangeActiveTextEditor, so the button tracks the current
editor's language: hidden for non-Python files and shown for Python
files opened after activation.
Fixes #11221 parent 2e48c82 commit 850d83c
1 file changed
Lines changed: 9 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
242 | 242 | | |
243 | 243 | | |
244 | 244 | | |
245 | | - | |
246 | | - | |
247 | | - | |
248 | | - | |
249 | | - | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
250 | 254 | | |
251 | 255 | | |
252 | 256 | | |
| |||
0 commit comments