Commit 27c03df
NES: Update enablement logic (#13714)
Closes #13541.
Also moves a couple of settings into `config.ts` so everything to do
with reading settings is in this one file.
### Validation Steps
1. Disable copilot completions by setting `"github.copilot.enable":
{"*": false}`.
2. Ensure you are logged in to Posit AI.
3. Remove `positron.assistant.aiExcludes` and
`nextEditSuggestions.enable` from your settings.
4. Ensure Posit AI completions are working in an e.g. `.R` file.
5a. Set `"nextEditSuggestions.enable": { "*": false }`. Confirm
completions stop.
5b. Set `"positron.assistant.aiExcludes": [ "*.R" ]`. Confirm
completions stop.
6. Sign out of Posit AI, confirm that when Posit AI is not available,
the language model is stopped. The logging message you are looking for
is "[info] Stopping language server due to logout."
Use the NES output panel in debug mode to see (hopefully) useful
logging:
<img width="1327" height="476" alt="Screenshot 2026-05-22 at 10 39 27"
src="https://github.com/user-attachments/assets/f8b0da27-b343-4560-8bf4-d5a13c3f298b"
/>
---------
Co-authored-by: sharon wang <sharon-wang@users.noreply.github.com>1 parent a991e89 commit 27c03df
8 files changed
Lines changed: 1437 additions & 64 deletions
File tree
- extensions/next-edit-suggestions
- src
- test
- scripts
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
76 | 81 | | |
77 | 82 | | |
78 | 83 | | |
| |||
0 commit comments