mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-03 06:51:53 +01:00
Pick up TS 5.7 insiders for builtin ts version (#232650)
This commit is contained in:
@@ -70,12 +70,10 @@ export function register(
|
||||
if (!file) {
|
||||
return { entries: [] };
|
||||
}
|
||||
// @ts-expect-error until ts5.7
|
||||
const response = await client.execute('copilotRelated', { file, }, token) as Proto.CopilotRelatedResponse;
|
||||
if (response.type !== 'response' || !response.body) {
|
||||
return { entries: [] };
|
||||
}
|
||||
// @ts-expect-error until ts5.7
|
||||
return { entries: response.body.relatedFiles.map(f => client.toResource(f)), traits: [] };
|
||||
}));
|
||||
}
|
||||
|
||||
@@ -19,18 +19,5 @@ declare module '../../../../node_modules/typescript/lib/typescript' {
|
||||
interface Response {
|
||||
readonly _serverType?: ServerType;
|
||||
}
|
||||
|
||||
//#region PreparePasteEdits
|
||||
interface PreparePasteEditsRequest extends FileRequest {
|
||||
command: 'preparePasteEdits';
|
||||
arguments: PreparePasteEditsRequestArgs;
|
||||
}
|
||||
interface PreparePasteEditsRequestArgs extends FileRequestArgs {
|
||||
copiedTextSpan: TextSpan[];
|
||||
}
|
||||
interface PreparePasteEditsResponse extends Response {
|
||||
body: boolean;
|
||||
}
|
||||
//#endregion
|
||||
}
|
||||
}
|
||||
|
||||
@@ -77,7 +77,6 @@ interface StandardTsServerRequests {
|
||||
'getMoveToRefactoringFileSuggestions': [Proto.GetMoveToRefactoringFileSuggestionsRequestArgs, Proto.GetMoveToRefactoringFileSuggestions];
|
||||
'linkedEditingRange': [Proto.FileLocationRequestArgs, Proto.LinkedEditingRangeResponse];
|
||||
'mapCode': [Proto.MapCodeRequestArgs, Proto.MapCodeResponse];
|
||||
// @ts-expect-error until ts5.7
|
||||
'copilotRelated': [Proto.FileRequestArgs, Proto.CopilotRelatedResponse];
|
||||
'getPasteEdits': [Proto.GetPasteEditsRequestArgs, Proto.GetPasteEditsResponse];
|
||||
'preparePasteEdits': [Proto.PreparePasteEditsRequestArgs, Proto.PreparePasteEditsResponse];
|
||||
|
||||
Reference in New Issue
Block a user