#537 - added support for ./ in public folder

This commit is contained in:
Elio Struyf
2023-03-16 09:30:05 +01:00
parent bc3407fd7b
commit b48008eb41
+7 -2
View File
@@ -174,9 +174,14 @@ export class Folders {
public static getStaticFolderRelativePath(): string | undefined {
let staticFolder = Settings.get<string>(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();