We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8854bb6 commit 78a25a4Copy full SHA for 78a25a4
src/client/terminals/pythonStartupLinkProvider.ts
@@ -1,5 +1,6 @@
1
/* eslint-disable class-methods-use-this */
2
import * as vscode from 'vscode';
3
+import { executeCommand } from '../common/vscodeApis/commandApis';
4
5
interface CustomTerminalLink extends vscode.TerminalLink {
6
command: string;
@@ -40,8 +41,7 @@ export class CustomTerminalLinkProvider implements vscode.TerminalLinkProvider<C
40
41
return links;
42
}
43
- handleTerminalLink(link: CustomTerminalLink): vscode.ProviderResult<void> {
44
- // TODO: probably dont use vscode.commands directly?
45
- vscode.commands.executeCommand(link.command);
+ async handleTerminalLink(link: CustomTerminalLink): Promise<void> {
+ await executeCommand(link.command);
46
47
0 commit comments