Skip to content

Commit e3a2647

Browse files
committed
Link to vscode-per-namespace-settings package from setup dialog
1 parent 999cb32 commit e3a2647

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/commonRunTestsHandler.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,10 +157,13 @@ export async function commonRunTestsHandler(controller: vscode.TestController, r
157157
);
158158

159159
if (!responseCspapps?.data?.result?.content?.includes("/_vscode")) {
160-
const reply = await vscode.window.showErrorMessage(`A '/_vscode' web application must be configured for the %SYS namespace of server '${serverSpec.name}'. The ${namespace} namespace also requires its ^UnitTestRoot global to point to the '${namespace}/UnitTestRoot' subfolder of that web application's path.`, { modal: true }, 'Instructions');
161-
if (reply === 'Instructions') {
160+
const reply = await vscode.window.showErrorMessage(`A '/_vscode' web application must be configured for the %SYS namespace of server '${serverSpec.name}'. The ${namespace} namespace also requires its ^UnitTestRoot global to point to the '${namespace}/UnitTestRoot' subfolder of that web application's path.`, { modal: true }, 'Use IPM Package', 'Follow Manual Instructions');
161+
if (reply === 'Follow Manual Instructions') {
162162
vscode.commands.executeCommand('vscode.open', 'https://docs.intersystems.com/components/csp/docbook/DocBook.UI.Page.cls?KEY=GVSCO_serverflow#GVSCO_serverflow_folderspec');
163+
} else if (reply === 'Use IPM Package') {
164+
vscode.commands.executeCommand('vscode.open', 'https://openexchange.intersystems.com/package/vscode-per-namespace-settings');
163165
}
166+
run.end();
164167
return;
165168
}
166169

0 commit comments

Comments
 (0)