diff --git a/extensions/typescript-language-features/src/languageFeatures/jsxLinkedEditing.ts b/extensions/typescript-language-features/src/languageFeatures/jsxLinkedEditing.ts index 467885b2a9a8f1..618acc3d87ffbe 100644 --- a/extensions/typescript-language-features/src/languageFeatures/jsxLinkedEditing.ts +++ b/extensions/typescript-language-features/src/languageFeatures/jsxLinkedEditing.ts @@ -25,7 +25,7 @@ class JsxLinkedEditingSupport implements vscode.LinkedEditingRangeProvider { } const args = typeConverters.Position.toFileLocationRequestArgs(filepath, position); - const response = await this.client.execute('jsxLinkedTag', args, token); + const response = await this.client.execute('jsxLinkedEdit', args, token); if (response.type !== 'response' || !response.body) { return undefined; } diff --git a/extensions/typescript-language-features/src/protocol.d.ts b/extensions/typescript-language-features/src/protocol.d.ts index 1a99bee855c7ad..4d93a6c026241a 100644 --- a/extensions/typescript-language-features/src/protocol.d.ts +++ b/extensions/typescript-language-features/src/protocol.d.ts @@ -25,9 +25,9 @@ declare module 'typescript/lib/tsserverlibrary' { wordPattern?: string; } - interface JsxLinkedTagRequest extends FileLocationRequest { } + interface JsxLinkedEditRequest extends FileLocationRequest { } - interface JsxLinkedTagResponse extends Response { + interface JsxLinkedEditResponse extends Response { body?: LinkedEditingRanges; } } diff --git a/extensions/typescript-language-features/src/typescriptService.ts b/extensions/typescript-language-features/src/typescriptService.ts index 5a641820b80794..3b6333b7705f56 100644 --- a/extensions/typescript-language-features/src/typescriptService.ts +++ b/extensions/typescript-language-features/src/typescriptService.ts @@ -74,7 +74,7 @@ interface StandardTsServerRequests { 'provideInlayHints': [Proto.InlayHintsRequestArgs, Proto.InlayHintsResponse]; 'encodedSemanticClassifications-full': [Proto.EncodedSemanticClassificationsRequestArgs, Proto.EncodedSemanticClassificationsResponse]; 'findSourceDefinition': [Proto.FileLocationRequestArgs, Proto.DefinitionResponse]; - 'jsxLinkedTag': [Proto.FileLocationRequestArgs, Proto.JsxLinkedTagResponse]; + 'jsxLinkedEdit': [Proto.FileLocationRequestArgs, Proto.JsxLinkedEditResponse]; } interface NoResponseTsServerRequests {