We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8cb7fd2 commit cd896baCopy full SHA for cd896ba
1 file changed
extensions/typescript/src/features/implementationsCodeLensProvider.ts
@@ -22,6 +22,13 @@ export default class TypeScriptImplementationsCodeLensProvider extends TypeScrip
22
super(client, 'implementationsCodeLens.enabled');
23
}
24
25
+ provideCodeLenses(document: TextDocument, token: CancellationToken): Promise<CodeLens[]> {
26
+ if (!this.client.apiVersion.has220Features()) {
27
+ return Promise.resolve([]);
28
+ }
29
+ return super.provideCodeLenses(document, token);
30
31
+
32
resolveCodeLens(inputCodeLens: CodeLens, token: CancellationToken): Promise<CodeLens> {
33
const codeLens = inputCodeLens as ReferencesCodeLens;
34
const args: Proto.FileLocationRequestArgs = {
0 commit comments