Skip to content

Commit

Permalink
Reworks the regexp options to use file globbing instead
Browse files Browse the repository at this point in the history
Regexp wasn't working for everyone, the exclude option was completely non functional
This commit converts to using the standard glob format for file names
It also tidies up the handling of supported languages in the language server
This will make the old setting searchFileExtensions not work anymore and if anyone had regexps in the exclude they prob will not work going forwards until they are converted
  • Loading branch information
arch-stack committed May 15, 2019
1 parent 6225217 commit 36f279e
Show file tree
Hide file tree
Showing 10 changed files with 170 additions and 1,649 deletions.
12 changes: 7 additions & 5 deletions client/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,17 +54,17 @@
},
"description": "A list of vscode language names where the extension should be used."
},
"css_peek.searchFileExtensions": {
"css_peek.include": {
"type": "array",
"default": [
".css",
".scss",
".less"
"**/*.css",
"**/*.scss",
"**/*.less"
],
"items": {
"type": "string"
},
"description": "A list of extensions that should be tried for finding peeked files."
"description": "A list of file globs to allow peeking into"
},
"css_peek.exclude": {
"type": "array",
Expand All @@ -75,7 +75,7 @@
"items": {
"type": "string"
},
"description": "Files are ignored from the CSS lookup if they match any of these Regular Expressions (regex)."
"description": "A list of file globs that filters out peekable files"
},
"css_peek.trace.server": {
"scope": "window",
Expand Down
4 changes: 4 additions & 0 deletions client/server/core/findDefinition.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion client/server/core/findDefinition.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 36f279e

Please sign in to comment.