Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit113fa91

Browse files
authored
fix: throw a cancellation error if pickProcess is aborted (#2247)
Refsmicrosoft/vscode#254852
1 parentf8f4253 commit113fa91

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

‎src/extension.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,13 @@ export function activate(context: vscode.ExtensionContext): IExports {
5252

5353
context.subscriptions.push(
5454
registerCommand(vscode.commands,Commands.DebugNpmScript,debugNpmScript),
55-
registerCommand(vscode.commands,Commands.PickProcess,pickProcess),
55+
registerCommand(vscode.commands,Commands.PickProcess,async()=>{
56+
constpick=awaitpickProcess();
57+
if(!pick){
58+
thrownewvscode.CancellationError();
59+
}
60+
returnpick;
61+
}),
5662
registerCommand(vscode.commands,Commands.AttachProcess,attachProcess),
5763
registerCommand(vscode.commands,Commands.ToggleSkipping,toggleSkippingFile),
5864
);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp