polishing the code

This commit is contained in:
Aiday Marlen Kyzy 2023-05-25 14:46:57 +02:00
parent 8cf85bdb16
commit 454a8e61ff
No known key found for this signature in database
GPG key ID: 24A8B53DBD26FF4E

View file

@ -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;
}