Skip to content

Commit 076f8ad

Browse files
committed
fix #445 supply process picker default for processId
1 parent 800eaec commit 076f8ad

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/debug/debugConfProvider.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ export class ObjectScriptConfigurationProvider implements DebugConfigurationProv
3636
});
3737
}
3838

39+
if (config.request === "attach" && !config.processId) {
40+
config.processId = "${command:PickProcess}";
41+
}
42+
3943
return config;
4044
}
4145
}

src/extension.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -713,7 +713,7 @@ export async function activate(context: vscode.ExtensionContext): Promise<any> {
713713
);
714714
const list = await api.getJobs(system).then(convert);
715715
if (!list.length) {
716-
vscode.window.showInformationMessage("No process found to attach to", {
716+
vscode.window.showInformationMessage(`No attachable processes are running in ${api.ns}.`, {
717717
modal: true,
718718
});
719719
return;

0 commit comments

Comments
 (0)