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 e65cd70 commit 23a5de6Copy full SHA for 23a5de6
src/commands/serverActions.ts
@@ -282,7 +282,16 @@ export async function serverActions(): Promise<void> {
282
break;
283
}
284
default: {
285
- vscode.env.openExternal(vscode.Uri.parse(action.detail));
+ let url = vscode.Uri.parse(action.detail);
286
+ if (action.rawLink?.startsWith("${serverUrl}")) {
287
+ const token = await getCSPToken(api, url.path);
288
+ if (token.length > 0) {
289
+ url = url.with({
290
+ query: url.query.length ? `${url.query}&CSPCHD=${token}` : `CSPCHD=${token}`,
291
+ });
292
+ }
293
294
+ vscode.env.openExternal(url);
295
296
297
});
0 commit comments