File tree Expand file tree Collapse file tree 1 file changed +3
-14
lines changed Expand file tree Collapse file tree 1 file changed +3
-14
lines changed Original file line number Diff line number Diff line change @@ -223,13 +223,11 @@ export async function serverActions(): Promise<void> {
223
223
}
224
224
switch ( action . id ) {
225
225
case "openPortal" : {
226
- const token = await getCSPToken ( api , portalPath ) ;
227
- vscode . env . openExternal ( vscode . Uri . parse ( `${ serverUrl } ${ portalPath } &CSPCHD=${ token } ` ) ) ;
226
+ vscode . env . openExternal ( vscode . Uri . parse ( `${ serverUrl } ${ portalPath } ` ) ) ;
228
227
break ;
229
228
}
230
229
case "openClassReference" : {
231
- const token = await getCSPToken ( api , classRef ) ;
232
- vscode . env . openExternal ( vscode . Uri . parse ( `${ serverUrl } ${ classRef } &CSPCHD=${ token } ` ) ) ;
230
+ vscode . env . openExternal ( vscode . Uri . parse ( `${ serverUrl } ${ classRef } ` ) ) ;
233
231
break ;
234
232
}
235
233
case "openStudioAddin" : {
@@ -284,16 +282,7 @@ export async function serverActions(): Promise<void> {
284
282
break ;
285
283
}
286
284
default : {
287
- let url = vscode . Uri . parse ( action . detail ) ;
288
- if ( action . rawLink ?. startsWith ( "${serverUrl}" ) ) {
289
- const token = await getCSPToken ( api , url . path ) ;
290
- if ( token . length > 0 ) {
291
- url = url . with ( {
292
- query : url . query . length ? `${ url . query } &CSPCHD=${ token } ` : `CSPCHD=${ token } ` ,
293
- } ) ;
294
- }
295
- }
296
- vscode . env . openExternal ( url ) ;
285
+ vscode . env . openExternal ( vscode . Uri . parse ( action . detail ) ) ;
297
286
}
298
287
}
299
288
} ) ;
You can’t perform that action at this time.
0 commit comments