Skip to content

Commit 8d79d88

Browse files
committed
feat(glob): Support new TS/JS settings
1 parent 53e5377 commit 8d79d88

3 files changed

Lines changed: 25 additions & 2 deletions

File tree

syntaxes/glob.tmLanguage.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
"R:source.json.embedded .meta.exports. .meta. support.type.property-name.json\n-meta.structure.dictionary.json meta.structure.dictionary.json meta.structure.dictionary.json\n-meta.structure.array.json\n-meta.embedded.glob.json -comment",
1616
"L:source.json.comments.embedded .meta.configurations. meta.structure.array.json.comments meta.structure.dictionary.json.comments meta.structure.array.json.comments string.quoted.double.json.comments\n(.meta.skipFiles. | .meta.outFiles | .meta.resolveSourceMapLocations. | .meta.vueComponentPaths.)\n(.meta.launch. .meta.configurations. -meta.structure.dictionary.json.comments meta.structure.dictionary.json.comments meta.structure.dictionary.json.comments meta.structure.dictionary.json.comments |\n-meta.structure.dictionary.json.comments meta.structure.dictionary.json.comments meta.structure.dictionary.json.comments)\n-meta.structure.array.json.comments meta.structure.array.json.comments meta.structure.array.json.comments\n-meta.embedded.glob.json -comment",
1717
"L:source.json.comments.embedded .meta.ts-node. .meta.moduleTypes. meta.structure.dictionary.json.comments support.type.property-name.json.comments\n-meta.structure.dictionary.json.comments meta.structure.dictionary.json.comments meta.structure.dictionary.json.comments meta.structure.dictionary.json.comments\n-meta.structure.array.json.comments\n-meta.embedded.glob.json -comment",
18-
"L:source.json.comments.embedded meta.structure.dictionary.json.comments meta.structure.array.json.comments string.quoted.double.json.comments\n(.meta.include. | .meta.exclude. | .meta.cSpell.files. | .meta.cSpell.ignorePaths. | .meta.git.worktreeIncludeFiles. | .meta.markdown.validate.ignoredLinks. | .meta.markdown.updateLinksOnFileMove.include. | .meta.npm.exclude. | .meta.debug.javascript.autoAttachSmartPattern. | .meta.javascript.preferences.autoImportFileExcludePatterns. | .meta.typescript.preferences.autoImportFileExcludePatterns.)\n-meta.structure.dictionary.json.comments meta.structure.dictionary.json.comments\n-meta.structure.array.json.comments meta.structure.array.json.comments\n-meta.embedded.glob.json -comment",
19-
"L:source.json.comments.embedded .meta.settings. meta.structure.dictionary.json.comments meta.structure.array.json.comments string.quoted.double.json.comments\n(.meta.cSpell.files. | .meta.cSpell.ignorePaths. | .meta.git.worktreeIncludeFiles. | .meta.markdown.validate.ignoredLinks. | .meta.markdown.updateLinksOnFileMove.include. | .meta.npm.exclude. | .meta.debug.javascript.autoAttachSmartPattern. | .meta.javascript.preferences.autoImportFileExcludePatterns. | .meta.typescript.preferences.autoImportFileExcludePatterns.)\n-meta.structure.dictionary.json.comments meta.structure.dictionary.json.comments meta.structure.dictionary.json.comments\n-meta.structure.array.json.comments meta.structure.array.json.comments\n-meta.embedded.glob.json -comment",
18+
"L:source.json.comments.embedded meta.structure.dictionary.json.comments meta.structure.array.json.comments string.quoted.double.json.comments\n(.meta.include. | .meta.exclude. | .meta.cSpell.files. | .meta.cSpell.ignorePaths. | .meta.git.worktreeIncludeFiles. | .meta.markdown.validate.ignoredLinks. | .meta.markdown.updateLinksOnFileMove.include. | .meta.npm.exclude. | .meta.debug.javascript.autoAttachSmartPattern. | .meta.javascript.preferences.autoImportFileExcludePatterns. | .meta.typescript.preferences.autoImportFileExcludePatterns. | .meta.jsts.preferences.autoImportFileExcludePatterns.)\n-meta.structure.dictionary.json.comments meta.structure.dictionary.json.comments\n-meta.structure.array.json.comments meta.structure.array.json.comments\n-meta.embedded.glob.json -comment",
19+
"L:source.json.comments.embedded .meta.settings. meta.structure.dictionary.json.comments meta.structure.array.json.comments string.quoted.double.json.comments\n(.meta.cSpell.files. | .meta.cSpell.ignorePaths. | .meta.git.worktreeIncludeFiles. | .meta.markdown.validate.ignoredLinks. | .meta.markdown.updateLinksOnFileMove.include. | .meta.npm.exclude. | .meta.debug.javascript.autoAttachSmartPattern. | .meta.javascript.preferences.autoImportFileExcludePatterns. | .meta.typescript.preferences.autoImportFileExcludePatterns. | .meta.jsts.preferences.autoImportFileExcludePatterns.)\n-meta.structure.dictionary.json.comments meta.structure.dictionary.json.comments meta.structure.dictionary.json.comments\n-meta.structure.array.json.comments meta.structure.array.json.comments\n-meta.embedded.glob.json -comment",
2020
"L:source.json.comments.embedded .meta.settings. meta.structure.dictionary.json.comments meta.structure.dictionary.json.comments support.type.property-name.json.comments\n(.meta.chat.editorAssociations. meta.structure.dictionary.json.comments | .meta.explorer.autoRevealExclude. meta.structure.dictionary.json.comments | .meta.files.associations. meta.structure.dictionary.json.comments | .meta.files.exclude. meta.structure.dictionary.json.comments | .meta.files.readonlyExclude. meta.structure.dictionary.json.comments | .meta.files.readonlyInclude. meta.structure.dictionary.json.comments | .meta.files.watcherExclude. meta.structure.dictionary.json.comments | .meta.search.exclude. meta.structure.dictionary.json.comments | .meta.workbench.editorAssociations. meta.structure.dictionary.json.comments | .meta.workbench.localHistory.exclude. meta.structure.dictionary.json.comments)\n-meta.structure.dictionary.json.comments meta.structure.dictionary.json.comments meta.structure.dictionary.json.comments meta.structure.dictionary.json.comments\n-meta.structure.array.json.comments\n-meta.embedded.glob.json -comment",
2121
"L:source.json.comments.embedded meta.structure.dictionary.json.comments meta.structure.dictionary.json.comments support.type.property-name.json.comments\n(.meta.chat.editorAssociations. meta.structure.dictionary.json.comments | .meta.explorer.autoRevealExclude. meta.structure.dictionary.json.comments | .meta.files.associations. meta.structure.dictionary.json.comments | .meta.files.exclude. meta.structure.dictionary.json.comments | .meta.files.readonlyExclude. meta.structure.dictionary.json.comments | .meta.files.readonlyInclude. meta.structure.dictionary.json.comments | .meta.files.watcherExclude. meta.structure.dictionary.json.comments | .meta.search.exclude. meta.structure.dictionary.json.comments | .meta.workbench.editorAssociations. meta.structure.dictionary.json.comments | .meta.workbench.localHistory.exclude. meta.structure.dictionary.json.comments)\n-meta.structure.dictionary.json.comments meta.structure.dictionary.json.comments meta.structure.dictionary.json.comments\n-meta.structure.array.json.comments\n-meta.embedded.glob.json -comment",
2222
"L:source.json.comments.embedded .meta.group. .meta.isDefault. string.quoted.double.json.comments\n-meta.structure.dictionary.json.comments meta.structure.dictionary.json.comments meta.structure.dictionary.json.comments\n-meta.structure.array.json.comments\n-meta.embedded.glob.json -comment",

syntaxes/tests/JSONC/settings.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,9 @@
164164
"javascript.preferences.autoImportFileExcludePatterns": [
165165
"**/*",
166166
],
167+
"js/ts.preferences.autoImportFileExcludePatterns": [
168+
"**/*",
169+
],
167170
"markdown.updateLinksOnFileMove.include": [
168171
"**/*.{md,mkd,mdwn,mdown,markdown,markdn,mdtxt,mdtext,workbook}",
169172
"**/*.{jpg,jpe,jpeg,png,bmp,gif,ico,webp,avif,tiff,svg,mp4}",

syntaxes/tests/JSONC/settings.json.snap

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1544,6 +1544,26 @@
15441544
#^ source.json.comments.embedded meta.structure.dictionary.json.comments .meta.javascript.preferences.autoImportFileExcludePatterns. meta.structure.dictionary.value.json.comments meta.structure.array.json.comments
15451545
# ^ source.json.comments.embedded meta.structure.dictionary.json.comments .meta.javascript.preferences.autoImportFileExcludePatterns. meta.structure.dictionary.value.json.comments meta.structure.array.json.comments punctuation.definition.array.end.json.comments
15461546
# ^ source.json.comments.embedded meta.structure.dictionary.json.comments .meta.javascript.preferences.autoImportFileExcludePatterns. meta.structure.dictionary.value.json.comments punctuation.separator.dictionary.pair.json.comments
1547+
> "js/ts.preferences.autoImportFileExcludePatterns": [
1548+
#^ source.json.comments.embedded meta.structure.dictionary.json.comments
1549+
# ^ source.json.comments.embedded meta.structure.dictionary.json.comments .meta.jsts.preferences.autoImportFileExcludePatterns. string.json.comments support.type.property-name.json.comments punctuation.support.type.property-name.begin.json.comments
1550+
# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.json.comments.embedded meta.structure.dictionary.json.comments .meta.jsts.preferences.autoImportFileExcludePatterns. string.json.comments support.type.property-name.json.comments
1551+
# ^ source.json.comments.embedded meta.structure.dictionary.json.comments .meta.jsts.preferences.autoImportFileExcludePatterns. string.json.comments support.type.property-name.json.comments punctuation.support.type.property-name.end.json.comments
1552+
# ^ source.json.comments.embedded meta.structure.dictionary.json.comments .meta.jsts.preferences.autoImportFileExcludePatterns. meta.structure.dictionary.value.json.comments punctuation.separator.dictionary.key-value.json.comments
1553+
# ^ source.json.comments.embedded meta.structure.dictionary.json.comments .meta.jsts.preferences.autoImportFileExcludePatterns. meta.structure.dictionary.value.json.comments
1554+
# ^ source.json.comments.embedded meta.structure.dictionary.json.comments .meta.jsts.preferences.autoImportFileExcludePatterns. meta.structure.dictionary.value.json.comments meta.structure.array.json.comments punctuation.definition.array.begin.json.comments
1555+
> "**/*",
1556+
#^^ source.json.comments.embedded meta.structure.dictionary.json.comments .meta.jsts.preferences.autoImportFileExcludePatterns. meta.structure.dictionary.value.json.comments meta.structure.array.json.comments
1557+
# ^ source.json.comments.embedded meta.structure.dictionary.json.comments .meta.jsts.preferences.autoImportFileExcludePatterns. meta.structure.dictionary.value.json.comments meta.structure.array.json.comments string.quoted.double.json.comments punctuation.definition.string.begin.json.comments
1558+
# ^^ source.json.comments.embedded meta.structure.dictionary.json.comments .meta.jsts.preferences.autoImportFileExcludePatterns. meta.structure.dictionary.value.json.comments meta.structure.array.json.comments string.quoted.double.json.comments meta.embedded.glob.json string.regexp.glob.json keyword.operator.quantifier.regexp.glob.json punctuation.definition.globstar.glob.json
1559+
# ^ source.json.comments.embedded meta.structure.dictionary.json.comments .meta.jsts.preferences.autoImportFileExcludePatterns. meta.structure.dictionary.value.json.comments meta.structure.array.json.comments string.quoted.double.json.comments meta.embedded.glob.json string.regexp.glob.json keyword.separator.path.glob-split.glob.json
1560+
# ^ source.json.comments.embedded meta.structure.dictionary.json.comments .meta.jsts.preferences.autoImportFileExcludePatterns. meta.structure.dictionary.value.json.comments meta.structure.array.json.comments string.quoted.double.json.comments meta.embedded.glob.json string.regexp.glob.json keyword.operator.quantifier.regexp.glob.json punctuation.definition.star.glob.json
1561+
# ^ source.json.comments.embedded meta.structure.dictionary.json.comments .meta.jsts.preferences.autoImportFileExcludePatterns. meta.structure.dictionary.value.json.comments meta.structure.array.json.comments string.quoted.double.json.comments punctuation.definition.string.end.json.comments
1562+
# ^ source.json.comments.embedded meta.structure.dictionary.json.comments .meta.jsts.preferences.autoImportFileExcludePatterns. meta.structure.dictionary.value.json.comments meta.structure.array.json.comments punctuation.separator.array.json.comments
1563+
> ],
1564+
#^ source.json.comments.embedded meta.structure.dictionary.json.comments .meta.jsts.preferences.autoImportFileExcludePatterns. meta.structure.dictionary.value.json.comments meta.structure.array.json.comments
1565+
# ^ source.json.comments.embedded meta.structure.dictionary.json.comments .meta.jsts.preferences.autoImportFileExcludePatterns. meta.structure.dictionary.value.json.comments meta.structure.array.json.comments punctuation.definition.array.end.json.comments
1566+
# ^ source.json.comments.embedded meta.structure.dictionary.json.comments .meta.jsts.preferences.autoImportFileExcludePatterns. meta.structure.dictionary.value.json.comments punctuation.separator.dictionary.pair.json.comments
15471567
> "markdown.updateLinksOnFileMove.include": [
15481568
#^ source.json.comments.embedded meta.structure.dictionary.json.comments
15491569
# ^ source.json.comments.embedded meta.structure.dictionary.json.comments .meta.markdown.updateLinksOnFileMove.include. string.json.comments support.type.property-name.json.comments punctuation.support.type.property-name.begin.json.comments

0 commit comments

Comments
 (0)