mirror of
https://github.com/estruyf/vscode-front-matter.git
synced 2026-05-01 19:12:30 +02:00
Merge branch 'dev' of github.com:estruyf/vscode-front-matter into dev
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user