Skip to content

Commit c61b6b9

Browse files
authored
Fix server-side folder specific settings (#1647)
1 parent 39377be commit c61b6b9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/explorer/nodes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ export class RootNode extends NodeBase {
184184
if (category == "CSP" && path == "") {
185185
// Use the results from the getCSPApps() API
186186
const cspAppsKey =
187-
`${api.config.host}:${api.config.port}${api.config.pathPrefix}:[${api.config.ns}]`.toLowerCase();
187+
`${api.config.host}:${api.config.port}${api.config.pathPrefix}[${api.config.ns}]`.toLowerCase();
188188
let nsCspApps: string[] | undefined = cspApps.get(cspAppsKey);
189189
if (nsCspApps == undefined) {
190190
nsCspApps = await api.getCSPApps().then((data) => data.result.content || []);

src/utils/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -644,8 +644,8 @@ export async function addWsServerRootFolderData(wsFolders: readonly vscode.Works
644644
if (value.redirectDotvscode) {
645645
// We must redirect .vscode Uris for this folder, so see
646646
// if the web app to do so is configured on the server
647-
const { host, port, pathPrefix, ns } = api.config;
648-
const key = `${host}:${port}${pathPrefix}[${ns}]`.toLowerCase();
647+
const { host, port, pathPrefix } = api.config;
648+
const key = `${host}:${port}${pathPrefix}[%SYS]`.toLowerCase();
649649
let webApps = cspApps.get(key);
650650
if (!webApps) {
651651
webApps = await api

0 commit comments

Comments
 (0)