Skip to content

Commit 78a25a4

Browse files
committed
do not use vscode.command.executeCommand directly
1 parent 8854bb6 commit 78a25a4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/client/terminals/pythonStartupLinkProvider.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/* eslint-disable class-methods-use-this */
22
import * as vscode from 'vscode';
3+
import { executeCommand } from '../common/vscodeApis/commandApis';
34

45
interface CustomTerminalLink extends vscode.TerminalLink {
56
command: string;
@@ -40,8 +41,7 @@ export class CustomTerminalLinkProvider implements vscode.TerminalLinkProvider<C
4041
return links;
4142
}
4243

43-
handleTerminalLink(link: CustomTerminalLink): vscode.ProviderResult<void> {
44-
// TODO: probably dont use vscode.commands directly?
45-
vscode.commands.executeCommand(link.command);
44+
async handleTerminalLink(link: CustomTerminalLink): Promise<void> {
45+
await executeCommand(link.command);
4646
}
4747
}

0 commit comments

Comments
 (0)