forked from DonJayamanne/pythonVSCode
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Remove 'jediEnabled' in favor of languageServer
#11834
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
40 commits
Select commit
Hold shift + click to select a range
04e0b34
Fix path
9297d96
Merge branch 'master' of https://github.com/Microsoft/vscode-python
9f3d5ac
Merge branch 'master' of https://github.com/Microsoft/vscode-python
e8640a2
Partial
c0211a7
Fix remaining settings
8a6e122
Keep names for now
5de66a0
Fix default
04b14b5
Restore names
7646a81
Update url
058e032
NAmes
4c1fb81
Formatting
8120a4d
Formatting
10ee2db
Test fixes
109f9c5
Test fixes
268c3a6
Test fixes
794c5f3
Linting test fixes
2c6d70a
Linting tests
a272c41
Unused var
24754cb
Restore inspection
18c435c
Merge branch 'master' of https://github.com/Microsoft/vscode-python i…
76b47ba
Add news
d55a417
MErge issues
9417dfd
Merge issues
66842c3
Wor around CI
ef6286f
Remove client reference
88bde1b
Use direct import in smoke tests
2d4df2f
Fix smoke tests
683f00f
Merge branch 'master' of https://github.com/Microsoft/vscode-python i…
c684bd1
Fix linter test
f9b183c
Avoid imports in smoke tests
1f6813c
PR feedback
54742a3
Add jediEnabled/languageServer fixup with tests
f105072
Update LS type
93c2ccd
Use json-parser for comments
91c1b71
Leave existing languageServer setting value alone
22f1e8f
Update src/test/.vscode/settings.json
729c707
PR feedback
3e1bac4
Merge branch 'settings' of https://github.com/MikhailArkhipov/vscode-…
7d78908
Put test back
c9e7e7d
Merge branch 'master' of https://github.com/Microsoft/vscode-python i…
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| Removed `python.jediEnabled` setting in favor of `python.languageServer`. Instead of `"python.jediEnabled": true` please use `"python.languageServer": "Jedi"`. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,2 @@ | ||
| Changes that add new features. | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -7,19 +7,23 @@ import { inject, injectable } from 'inversify'; | |
| import { IApplicationEnvironment } from '../../common/application/types'; | ||
| import { IServiceContainer } from '../../ioc/types'; | ||
| import { LanguageServerFolderService } from '../common/languageServerFolderService'; | ||
| import { DotNetLanguageServerFolder } from '../types'; | ||
|
|
||
| // Must match languageServerVersion* keys in package.json | ||
| const DotNetLanguageServerMinVersionKey = 'languageServerVersion'; | ||
|
|
||
| @injectable() | ||
| export class DotNetLanguageServerFolderService extends LanguageServerFolderService { | ||
| constructor(@inject(IServiceContainer) serviceContainer: IServiceContainer) { | ||
| super(serviceContainer, 'languageServer'); | ||
| super(serviceContainer, DotNetLanguageServerFolder); | ||
| } | ||
|
|
||
| protected getMinimalLanguageServerVersion(): string { | ||
| let minVersion = '0.0.0'; | ||
| try { | ||
| const appEnv = this.serviceContainer.get<IApplicationEnvironment>(IApplicationEnvironment); | ||
| if (appEnv) { | ||
| minVersion = appEnv.packageJson.languageServerVersion as string; | ||
| minVersion = appEnv.packageJson[DotNetLanguageServerMinVersionKey] as string; | ||
| } | ||
| // tslint:disable-next-line: no-empty | ||
| } catch {} | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Under what circumstances do you expect this to fail? It would probably make sense to log the error (e.g. with |
||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.