mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-26 19:44:25 +01:00
Update to new command name
This commit is contained in:
committed by
Matt Bierner
parent
7fcf402604
commit
7e5592d88e
@@ -9,7 +9,6 @@
|
||||
* ------------------------------------------------------------------------------------------ */
|
||||
|
||||
import * as vscode from 'vscode';
|
||||
import { URI } from 'vscode-uri';
|
||||
import { CommandManager } from './commands/commandManager';
|
||||
import { ServiceConfigurationProvider } from './configuration/configuration';
|
||||
import { DiagnosticLanguage, LanguageDescription } from './configuration/languageDescription';
|
||||
@@ -195,11 +194,11 @@ export default class TypeScriptServiceClientHost extends Disposable {
|
||||
}
|
||||
// TODO: This compiles but will never cancel; this needs a token that somebody might actually cancel.
|
||||
const cancel = new vscode.CancellationTokenSource();
|
||||
const response = await this.client.execute('getImports', { file, }, cancel.token);
|
||||
const response = await this.client.execute('copilotRelated', { file, }, cancel.token);
|
||||
if (response.type !== 'response' || !response.body) {
|
||||
return [];
|
||||
}
|
||||
return response.body.map(URI.file);
|
||||
return response.body.map(vscode.Uri.file);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@@ -77,7 +77,7 @@ interface StandardTsServerRequests {
|
||||
'getMoveToRefactoringFileSuggestions': [Proto.GetMoveToRefactoringFileSuggestionsRequestArgs, Proto.GetMoveToRefactoringFileSuggestions];
|
||||
'linkedEditingRange': [Proto.FileLocationRequestArgs, Proto.LinkedEditingRangeResponse];
|
||||
'mapCode': [Proto.MapCodeRequestArgs, Proto.MapCodeResponse];
|
||||
'getImports': [Proto.GetImportRequestArgs, Proto.GetImportResponse];
|
||||
'copilotRelated': [Proto.FileRequestArgs, Proto.CopilotRelatedResponse];
|
||||
'getPasteEdits': [Proto.GetPasteEditsRequestArgs, Proto.GetPasteEditsResponse];
|
||||
'preparePasteEdits': [Proto.PreparePasteEditsRequestArgs, Proto.PreparePasteEditsResponse];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user