Skip to content

Commit

Permalink
fix #99 do not add pathPrefix to the isfs uri
Browse files Browse the repository at this point in the history
  • Loading branch information
gjsjohnmurray committed Jun 24, 2021
1 parent 3b70801 commit 26d8419
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ export function activate(context: vscode.ExtensionContext) {
return;
}

const uri = vscode.Uri.parse(`isfs${readonly ? "-readonly" : ""}://${serverName}:${namespace}${serverSpec.webServer.pathPrefix || ''}/${csp ? '?csp' : ''}`);
const uri = vscode.Uri.parse(`isfs${readonly ? "-readonly" : ""}://${serverName}:${namespace}/${csp ? '?csp' : ''}`);
if ((vscode.workspace.workspaceFolders || []).filter((workspaceFolder) => workspaceFolder.uri.toString() === uri.toString()).length === 0) {
const label = `${serverName}:${namespace}${csp ? ' webfiles' : ''}${readonly ? " (read-only)" : ""}`;
const added = vscode.workspace.updateWorkspaceFolders(
Expand Down

0 comments on commit 26d8419

Please sign in to comment.