diff --git a/src/commands/Folders.ts b/src/commands/Folders.ts index 8d4576d3..e5ed17f0 100644 --- a/src/commands/Folders.ts +++ b/src/commands/Folders.ts @@ -174,9 +174,14 @@ export class Folders { public static getStaticFolderRelativePath(): string | undefined { let staticFolder = Settings.get(SETTING_CONTENT_STATIC_FOLDER); - if (staticFolder && (staticFolder.includes(WORKSPACE_PLACEHOLDER) || staticFolder === '/')) { + if ( + staticFolder && + (staticFolder.includes(WORKSPACE_PLACEHOLDER) || + staticFolder === '/' || + staticFolder === './') + ) { staticFolder = - staticFolder === '/' + staticFolder === '/' || staticFolder === './' ? Folders.getAbsFilePath('[[workspace]]') : Folders.getAbsFilePath(staticFolder); const wsFolder = Folders.getWorkspaceFolder();