mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-26 03:29:00 +01:00
polishing the code
This commit is contained in:
@@ -28,10 +28,9 @@ type ApplyCodeActionCommand_args = {
|
||||
|
||||
class EditorChatFollowUp implements Command {
|
||||
|
||||
id: string = 'needsBetterName.editorChateFollowUp';
|
||||
id: string = '_quickFix.editorChatFollowUp';
|
||||
|
||||
constructor(private readonly prompt: string, private readonly document: vscode.TextDocument, private readonly range: vscode.Range, private readonly client: ITypeScriptServiceClient) {
|
||||
|
||||
}
|
||||
|
||||
async execute() {
|
||||
@@ -50,7 +49,7 @@ class EditorChatFollowUp implements Command {
|
||||
if (!filepath) {
|
||||
return;
|
||||
}
|
||||
const response = await this.client.execute('navtree', { file: filepath }, (new vscode.CancellationTokenSource()).token);
|
||||
const response = await this.client.execute('navtree', { file: filepath }, nulToken);
|
||||
if (response.type !== 'response' || !response.body?.childItems) {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user