diff --git a/package-lock.json b/package-lock.json index d9bef029..185402c6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "vscode-objectscript", - "version": "2.12.2-SNAPSHOT", + "version": "2.12.6-SNAPSHOT", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "vscode-objectscript", - "version": "2.12.2-SNAPSHOT", + "version": "2.12.6-SNAPSHOT", "hasInstallScript": true, "license": "MIT", "dependencies": { @@ -29,7 +29,7 @@ "@types/mocha": "^7.0.2", "@types/node": "^14.18.0", "@types/semver": "7.5.4", - "@types/vscode": "1.83.0", + "@types/vscode": "1.91.0", "@types/ws": "8.5.4", "@types/xmldom": "^0.1.29", "@typescript-eslint/eslint-plugin": "^4.32.0", @@ -55,7 +55,7 @@ "webpack-cli": "^4.5.0" }, "engines": { - "vscode": "^1.83.0" + "vscode": "^1.91.0" } }, "node_modules/@babel/code-frame": { @@ -442,9 +442,9 @@ "dev": true }, "node_modules/@types/vscode": { - "version": "1.83.0", - "resolved": "https://registry.npmjs.org/@types/vscode/-/vscode-1.83.0.tgz", - "integrity": "sha512-3mUtHqLAVz9hegut9au4xehuBrzRE3UJiQMpoEHkNl6XHliihO7eATx2BMHs0odsmmrwjJrlixx/Pte6M3ygDQ==", + "version": "1.91.0", + "resolved": "https://registry.npmjs.org/@types/vscode/-/vscode-1.91.0.tgz", + "integrity": "sha512-PgPr+bUODjG3y+ozWUCyzttqR9EHny9sPAfJagddQjDwdtf66y2sDKJMnFZRuzBA2YtBGASqJGPil8VDUPvO6A==", "dev": true }, "node_modules/@types/ws": { @@ -5656,9 +5656,9 @@ "dev": true }, "@types/vscode": { - "version": "1.83.0", - "resolved": "https://registry.npmjs.org/@types/vscode/-/vscode-1.83.0.tgz", - "integrity": "sha512-3mUtHqLAVz9hegut9au4xehuBrzRE3UJiQMpoEHkNl6XHliihO7eATx2BMHs0odsmmrwjJrlixx/Pte6M3ygDQ==", + "version": "1.91.0", + "resolved": "https://registry.npmjs.org/@types/vscode/-/vscode-1.91.0.tgz", + "integrity": "sha512-PgPr+bUODjG3y+ozWUCyzttqR9EHny9sPAfJagddQjDwdtf66y2sDKJMnFZRuzBA2YtBGASqJGPil8VDUPvO6A==", "dev": true }, "@types/ws": { diff --git a/src/commands/serverActions.ts b/src/commands/serverActions.ts index 276b90bd..b84b517d 100644 --- a/src/commands/serverActions.ts +++ b/src/commands/serverActions.ts @@ -255,9 +255,13 @@ export async function serverActions(): Promise { }); if (addin) { const token = await getCSPToken(api, addin.id); - vscode.env.openExternal( - vscode.Uri.parse(`${serverUrl}${addin.id}?Namespace=${nsEncoded}&CSPCHD=${token}`) - ); + let params = `Namespace=${nsEncoded}`; + params += `&User=${encodeURIComponent(username)}`; + if (project !== "") { + params += `&Project=${encodeURIComponent(project)}`; + } + params += `&CSPCHD=${token}`; + vscode.env.openExternal(vscode.Uri.parse(`${serverUrl}${addin.id}?${params}`)); } } break;