-
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 disabled
- Loading branch information
1 parent
73ee344
commit a7c7576
Showing
4 changed files
with
90 additions
and
34 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
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