Fix for projects with brackets in their path (#429)

master
Brad Cornes 2022-01-17 16:55:31 +00:00
parent bb5993d047
commit 8766f6d7de
1 changed files with 1 additions and 1 deletions

View File

@ -243,7 +243,7 @@ export async function activate(context: ExtensionContext) {
documentSelector: languages.get(folder.uri.toString()).map((language) => ({ documentSelector: languages.get(folder.uri.toString()).map((language) => ({
scheme: 'file', scheme: 'file',
language, language,
pattern: `${folder.uri.fsPath}/**/*`, pattern: `${folder.uri.fsPath.replace(/[\[\]\{\}]/g, '?')}/**/*`,
})), })),
diagnosticCollectionName: CLIENT_ID, diagnosticCollectionName: CLIENT_ID,
workspaceFolder: folder, workspaceFolder: folder,