mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 21:09:43 +00:00
polishing the code
This commit is contained in:
parent
8cf85bdb16
commit
454a8e61ff
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue