Merge branch 'dev' of github.com:estruyf/vscode-front-matter into dev

This commit is contained in:
Elio Struyf
2023-09-06 12:06:25 +02:00
3 changed files with 6 additions and 2 deletions

View File

@@ -15,6 +15,7 @@
- [#646](https://github.com/estruyf/vscode-front-matter/issues/646): Update the Astro `3000` port to `4321`
- [#647](https://github.com/estruyf/vscode-front-matter/issues/647): Fix the open in browser action on the preview
- [#648](https://github.com/estruyf/vscode-front-matter/issues/648): Fix the global configuration reference to the URL of the schema file
## [9.1.0] - 2023-08-31

View File

@@ -95,7 +95,6 @@
}]
},
"configuration": {
"$id": "#globalconfiguration",
"title": "%settings.configuration.title%",
"type": "object",
"properties": {
@@ -115,7 +114,7 @@
"markdownDescription": "%setting.frontMatter.projects.items.properties.default.markdownDescription%"
},
"configuration": {
"$ref": "#globalconfiguration"
"$ref": "https://frontmatter.codes/frontmatter.schema.json"
}
}
}

View File

@@ -495,6 +495,10 @@ export class Folders {
public static async getContentFolders() {
// Find folders that contain files
const wsFolder = Folders.getWorkspaceFolder();
if (!wsFolder) {
return [];
}
const supportedFiles =
Settings.get<string[]>(SETTING_CONTENT_SUPPORTED_FILETYPES) || DEFAULT_FILE_TYPES;
const patterns = supportedFiles.map(