mirror of
https://github.com/estruyf/vscode-front-matter.git
synced 2026-07-21 09:03:06 +02:00
#537 - Allow root path
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -69,6 +69,6 @@ export class Telemetry {
|
||||
});
|
||||
// Reset the events
|
||||
this.events = [];
|
||||
}, 1000) as NodeJS.Timeout;
|
||||
}, 1000) as any as NodeJS.Timeout;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user