mirror of
https://github.com/microsoft/vscode.git
synced 2026-07-08 12:56:08 -05:00
Disable implementations code lens for TS < 2.2.1 Fixes #23120
This commit is contained in:
@@ -22,6 +22,13 @@ export default class TypeScriptImplementationsCodeLensProvider extends TypeScrip
|
||||
super(client, 'implementationsCodeLens.enabled');
|
||||
}
|
||||
|
||||
provideCodeLenses(document: TextDocument, token: CancellationToken): Promise<CodeLens[]> {
|
||||
if (!this.client.apiVersion.has220Features()) {
|
||||
return Promise.resolve([]);
|
||||
}
|
||||
return super.provideCodeLenses(document, token);
|
||||
}
|
||||
|
||||
resolveCodeLens(inputCodeLens: CodeLens, token: CancellationToken): Promise<CodeLens> {
|
||||
const codeLens = inputCodeLens as ReferencesCodeLens;
|
||||
const args: Proto.FileLocationRequestArgs = {
|
||||
|
||||
Reference in New Issue
Block a user