mirror of
https://github.com/estruyf/vscode-front-matter.git
synced 2026-08-10 19:03:17 +02:00
#537 - added support for ./ in public folder
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user