Skip to content

Commit 454a8e6

Browse files
committed
polishing the code
1 parent 8cf85bd commit 454a8e6

File tree

1 file changed

+2
-3
lines changed
  • extensions/typescript-language-features/src/languageFeatures

1 file changed

+2
-3
lines changed

extensions/typescript-language-features/src/languageFeatures/quickFix.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,9 @@ type ApplyCodeActionCommand_args = {
2828

2929
class EditorChatFollowUp implements Command {
3030

31-
id: string = 'needsBetterName.editorChateFollowUp';
31+
id: string = '_quickFix.editorChatFollowUp';
3232

3333
constructor(private readonly prompt: string, private readonly document: vscode.TextDocument, private readonly range: vscode.Range, private readonly client: ITypeScriptServiceClient) {
34-
3534
}
3635

3736
async execute() {
@@ -50,7 +49,7 @@ class EditorChatFollowUp implements Command {
5049
if (!filepath) {
5150
return;
5251
}
53-
const response = await this.client.execute('navtree', { file: filepath }, (new vscode.CancellationTokenSource()).token);
52+
const response = await this.client.execute('navtree', { file: filepath }, nulToken);
5453
if (response.type !== 'response' || !response.body?.childItems) {
5554
return;
5655
}

0 commit comments

Comments
 (0)