Skip to content

Commit aae0541

Browse files
Suffix ISFS folder name with web app path (#1484)
* Suffix ISFS folder name with web app path * Use shorter default names for new ISFS folders in workspace * Tweak naming pattern * Revert change to project folder naming pattern
1 parent 75f6ea9 commit aae0541

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/commands/addServerNamespaceToWorkspace.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ export async function addServerNamespaceToWorkspace(resource?: vscode.Uri): Prom
146146
const params = new URLSearchParams(uri.query);
147147
const project = params.get("project");
148148
const csp = params.has("csp");
149-
const name = `${project ? `${project} - ` : ""}${serverName}:${namespace}${csp ? " web files" : ""}${
149+
const name = `${project ? `${project} - ${serverName}:${namespace}` : !csp ? `${serverName}:${namespace}` : ["", "/"].includes(uri.path) ? `${serverName}:${namespace} web files` : `${serverName} (${uri.path})`}${
150150
scheme == FILESYSTEM_READONLY_SCHEMA && !project ? " (read-only)" : ""
151151
}`;
152152
// Append it to the workspace

0 commit comments

Comments
 (0)