#537 - Allow root path

This commit is contained in:
Elio Struyf
2023-03-14 22:47:10 +01:00
parent 1e3b4c8eaf
commit 265db6f5dd
3 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -174,7 +174,7 @@ export class Folders {
public static getStaticFolderRelativePath(): string | undefined {
let staticFolder = Settings.get<string>(SETTING_CONTENT_STATIC_FOLDER);
if (staticFolder && staticFolder.includes(WORKSPACE_PLACEHOLDER)) {
if (staticFolder && (staticFolder.includes(WORKSPACE_PLACEHOLDER) || staticFolder === '/')) {
staticFolder = Folders.getAbsFilePath(staticFolder);
const wsFolder = Folders.getWorkspaceFolder();
if (wsFolder) {
+1 -1
View File
@@ -69,6 +69,6 @@ export class Telemetry {
});
// Reset the events
this.events = [];
}, 1000) as NodeJS.Timeout;
}, 1000) as any as NodeJS.Timeout;
}
}