Skip to content

Commit cff67ef

Browse files
committed
change configuration defaullts
1 parent 4f2d70f commit cff67ef

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@
3434
"properties": {
3535
"html-css-class-completion.includeGlobPattern": {
3636
"type": "string",
37-
"default": "**/*",
38-
"description": "A glob pattern that defines the folders to search for. The glob pattern will be matched against the paths of resulting matches relative to their workspace."
37+
"default": "**/*.{css,html}",
38+
"description": "A glob pattern that defines files and folders to search for. The glob pattern will be matched against the paths of resulting matches relative to their workspace."
3939
},
4040
"html-css-class-completion.excludeGlobPattern": {
4141
"type": "string",
42-
"default": "node_modules∕*",
42+
"default": "",
4343
"description": "A glob pattern that defines files and folders to exclude. The glob pattern will be matched against the file paths of resulting matches relative to their workspace."
4444
}
4545
}

src/fetcher.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,10 @@ import ParseEngineRegistry from './parse-engines/parse-engine-registry';
33

44
class Fetcher {
55
static async findAllParseableDocuments(): Promise<vscode.Uri[]> {
6-
const languages = ParseEngineRegistry.supportedLanguagesIds.join(',');
7-
86
const includeGlobPattern = vscode.workspace.getConfiguration().get('html-css-class-completion.includeGlobPattern');
97
const excludeGlobPattern = vscode.workspace.getConfiguration().get('html-css-class-completion.excludeGlobPattern');
108

11-
return await vscode.workspace.findFiles(`${includeGlobPattern}.{${languages}}`, `${excludeGlobPattern}`);
9+
return await vscode.workspace.findFiles(`${includeGlobPattern}`, `${excludeGlobPattern}`);
1210
}
1311
}
1412

0 commit comments

Comments
 (0)