Skip to content

Commit 36a479c

Browse files
committed
Handle optional trailing slash on path
1 parent a999e5e commit 36a479c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -637,7 +637,7 @@ export async function addWsServerRootFolderData(uri: vscode.Uri): Promise<void>
637637
// A CSP-type root folder for a specific webapp that already has a .vscode/settings.json file must not redirect .vscode/* references
638638
const api = new AtelierAPI(uri);
639639
api
640-
.headDoc(`${uri.path}/.vscode/settings.json`)
640+
.headDoc(`${uri.path}${!uri.path.endsWith("/") ? "/" : ""}.vscode/settings.json`)
641641
.then(() => {
642642
value.redirectDotvscode = false;
643643
})

0 commit comments

Comments
 (0)