cspell 6.30.2 → 6.31.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -143,7 +143,11 @@ function calcFinalConfigInfo(configInfo, settingsFromCommandLine, filename, text
|
|
|
143
143
|
fileSettings.loadDefaultConfiguration ??
|
|
144
144
|
true;
|
|
145
145
|
const settings = cspell.mergeSettings(cspell.getDefaultSettings(loadDefault), cspell.getGlobalSettings(), fileSettings, settingsFromCommandLine);
|
|
146
|
-
const languageIds = settings.languageId
|
|
146
|
+
const languageIds = settings.languageId
|
|
147
|
+
? Array.isArray(settings.languageId)
|
|
148
|
+
? settings.languageId
|
|
149
|
+
: [settings.languageId]
|
|
150
|
+
: cspell.getLanguageIdsForBaseFilename(basename);
|
|
147
151
|
const config = cspell.constructSettingsForText(settings, text, languageIds);
|
|
148
152
|
return {
|
|
149
153
|
configInfo: { ...configInfo, config },
|
|
@@ -105,7 +105,11 @@ export function calcFinalConfigInfo(configInfo, settingsFromCommandLine, filenam
|
|
|
105
105
|
fileSettings.loadDefaultConfiguration ??
|
|
106
106
|
true;
|
|
107
107
|
const settings = cspell.mergeSettings(cspell.getDefaultSettings(loadDefault), cspell.getGlobalSettings(), fileSettings, settingsFromCommandLine);
|
|
108
|
-
const languageIds = settings.languageId
|
|
108
|
+
const languageIds = settings.languageId
|
|
109
|
+
? Array.isArray(settings.languageId)
|
|
110
|
+
? settings.languageId
|
|
111
|
+
: [settings.languageId]
|
|
112
|
+
: cspell.getLanguageIdsForBaseFilename(basename);
|
|
109
113
|
const config = cspell.constructSettingsForText(settings, text, languageIds);
|
|
110
114
|
return {
|
|
111
115
|
configInfo: { ...configInfo, config },
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cspell",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.31.0",
|
|
4
4
|
"description": "A Spelling Checker for Code!",
|
|
5
5
|
"funding": "https://github.com/streetsidesoftware/cspell?sponsor=1",
|
|
6
6
|
"bin": {
|
|
@@ -88,14 +88,14 @@
|
|
|
88
88
|
},
|
|
89
89
|
"homepage": "https://streetsidesoftware.github.io/cspell/",
|
|
90
90
|
"dependencies": {
|
|
91
|
-
"@cspell/cspell-pipe": "6.
|
|
92
|
-
"@cspell/dynamic-import": "6.
|
|
91
|
+
"@cspell/cspell-pipe": "6.31.0",
|
|
92
|
+
"@cspell/dynamic-import": "6.31.0",
|
|
93
93
|
"chalk": "^4.1.2",
|
|
94
94
|
"commander": "^10.0.0",
|
|
95
|
-
"cspell-gitignore": "6.
|
|
96
|
-
"cspell-glob": "6.
|
|
97
|
-
"cspell-io": "6.
|
|
98
|
-
"cspell-lib": "6.
|
|
95
|
+
"cspell-gitignore": "6.31.0",
|
|
96
|
+
"cspell-glob": "6.31.0",
|
|
97
|
+
"cspell-io": "6.31.0",
|
|
98
|
+
"cspell-lib": "6.31.0",
|
|
99
99
|
"fast-glob": "^3.2.12",
|
|
100
100
|
"fast-json-stable-stringify": "^2.1.0",
|
|
101
101
|
"file-entry-cache": "^6.0.1",
|
|
@@ -109,15 +109,15 @@
|
|
|
109
109
|
"node": ">=14"
|
|
110
110
|
},
|
|
111
111
|
"devDependencies": {
|
|
112
|
-
"@cspell/cspell-json-reporter": "6.
|
|
113
|
-
"@cspell/cspell-types": "6.
|
|
112
|
+
"@cspell/cspell-json-reporter": "6.31.0",
|
|
113
|
+
"@cspell/cspell-types": "6.31.0",
|
|
114
114
|
"@types/file-entry-cache": "^5.0.2",
|
|
115
115
|
"@types/glob": "^8.1.0",
|
|
116
116
|
"@types/imurmurhash": "^0.1.1",
|
|
117
117
|
"@types/micromatch": "^4.0.2",
|
|
118
118
|
"@types/semver": "^7.3.13",
|
|
119
119
|
"micromatch": "^4.0.5",
|
|
120
|
-
"minimatch": "^7.4.
|
|
120
|
+
"minimatch": "^7.4.3"
|
|
121
121
|
},
|
|
122
|
-
"gitHead": "
|
|
122
|
+
"gitHead": "1c0c3eb875bc1aab334bd56d952c0d0964468b7a"
|
|
123
123
|
}
|