Repository navigation
Add languageServer setting allowing None - #9182
Mikhail Arkhipov (MikhailArkhipov) merged 8 commits into
Conversation
Codecov Report
@@ Coverage Diff @@
## master #9182 +/- ##
==========================================
+ Coverage 56.8% 57.45% +0.65%
==========================================
Files 550 551 +1
Lines 28938 29366 +428
Branches 4441 4445 +4
==========================================
+ Hits 16438 16873 +435
+ Misses 11560 11550 -10
- Partials 940 943 +3
Continue to review full report at Codecov.
|
| * @implements {ILanguageServerActivator} | ||
| */ | ||
| @injectable() | ||
| export class NoLanguageServerExtensionActivator implements ILanguageServerActivator { |
There was a problem hiding this comment.
Rich Chiodo (@rchiodo) if users opt not to use a LS, then notebook will not get any intellisense. We might want to throw a message to the user in such cases and do something about it. To me the easiest is ask the user to switch to Jedi or Msft.
| */ | ||
| @injectable() | ||
| export class NoLanguageServerExtensionActivator implements ILanguageServerActivator { | ||
| // tslint:disable-next-line: no-empty |
There was a problem hiding this comment.
Mikhail Arkhipov (@MikhailArkhipov) If user choses none, then users will not see any codelenses for tests.
Today we use the LSP to determine the position of the test methods when defining the locations for code lenses.
Luciana Abud (@luabud) Karthik Nadig (@karthiknadig) Brett Cannon (@brettcannon) /cc
I.e. if user uses none, then some other parts of the extension are broken.
We need to either:
- Notify the user about this
- Or start & use jedi for just these features (just as we would if we require intelliense in notebooks).
I prefer option 1.
There was a problem hiding this comment.
Output window gets Editor support is inactive since language server is set to None. but I guess we could pop up something more prominent with Don't show it again.
There was a problem hiding this comment.
It's a question for Luciana Abud (@luabud) on how best to communicate this, but I also expect only advanced users to be switching this off so hopefully they're sophisticated enough to comprehend there are ramifications.
Don Jayamanne (DonJayamanne)
left a comment
There was a problem hiding this comment.
Concerns about
- Code lenses for tests not working
- Notebooks not having functioning intelliense
For #7010
jediEnabledis retained for compatibility with existing settings users have and IntelliCode. IC will be updated to uselanguageServerinstead sojediEnabledcan be retired some time in the future.- [ ] Test plan is updated as appropriate- [ ]package-lock.jsonhas been regenerated by runningnpm install(if dependencies have changed)- [ ] The wiki is updated with any design decisions/details.