Skip to content

Commit

Permalink
Update based on new names
Browse files Browse the repository at this point in the history
  • Loading branch information
mjbvz committed Mar 28, 2023
1 parent 5babe30 commit 47f9bcc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
4 changes: 2 additions & 2 deletions extensions/typescript-language-features/src/protocol.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 47f9bcc

Please sign in to comment.