-
Notifications
You must be signed in to change notification settings - Fork 148
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Re-register native completion providers when LSP completion is disabl…
…ed (#1036) * Re-register native completion providers when LSP completion is disabled * Disable, not disabled * Update changelog, bump versions * Fix test: `test` completion gets suggested from context even when lsp is off (with type "Statement" in CM6)
- Loading branch information
1 parent
00ef504
commit 1f1ddca
Showing
8 changed files
with
103 additions
and
37 deletions.
There are no files selected for viewing
This file contains 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 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 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 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 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,17 @@ | ||
import { Token } from '@lumino/coreutils'; | ||
|
||
import { PLUGIN_ID } from '../../tokens'; | ||
|
||
/** | ||
* Token provided by the plugin which implements LSP completion. | ||
* As of now no methods are exposed, but it still functions as | ||
* an indicator for whether the LSP completion plugin is available, | ||
* or whether it was disabled by the user (or failed to activate). | ||
*/ | ||
export interface ICompletionFeature { | ||
readonly id: string; | ||
} | ||
|
||
export const ICompletionFeature = new Token<ICompletionFeature>( | ||
PLUGIN_ID + ':ICompletionFeature' | ||
); |
This file contains 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 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 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,3 +1,3 @@ | ||
""" single source of truth for jupyter_lsp version | ||
""" | ||
__version__ = "2.2.1" | ||
__version__ = "2.2.2" |