Skip to content

Commit

Permalink
Merge pull request #100 from gjsjohnmurray/fix-99
Browse files Browse the repository at this point in the history
fix #99 do not add `pathPrefix` to the isfs uri
  • Loading branch information
gjsjohnmurray authored Jun 25, 2021
2 parents 642de82 + 26d8419 commit 5458d3a
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 5458d3a

Please sign in to comment.