cspell 6.8.2 → 6.9.1

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.
@@ -92,14 +92,14 @@ async function findFiles(globPatterns, options) {
92
92
  }
93
93
  exports.findFiles = findFiles;
94
94
  function calcFinalConfigInfo(configInfo, settingsFromCommandLine, filename, text) {
95
- const ext = path.extname(filename);
95
+ const basename = path.basename(filename);
96
96
  const fileSettings = cspell.calcOverrideSettings(configInfo.config, path.resolve(filename));
97
97
  const loadDefault = settingsFromCommandLine.loadDefaultConfiguration ??
98
98
  configInfo.config.loadDefaultConfiguration ??
99
99
  fileSettings.loadDefaultConfiguration ??
100
100
  true;
101
101
  const settings = cspell.mergeSettings(cspell.getDefaultSettings(loadDefault), cspell.getGlobalSettings(), fileSettings, settingsFromCommandLine);
102
- const languageIds = settings.languageId ? [settings.languageId] : cspell.getLanguagesForExt(ext);
102
+ const languageIds = settings.languageId ? [settings.languageId] : cspell.getLanguageIdsForBaseFilename(basename);
103
103
  const config = cspell.constructSettingsForText(settings, text, languageIds);
104
104
  return {
105
105
  configInfo: { ...configInfo, config },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cspell",
3
- "version": "6.8.2",
3
+ "version": "6.9.1",
4
4
  "description": "A Spelling Checker for Code!",
5
5
  "funding": "https://github.com/streetsidesoftware/cspell?sponsor=1",
6
6
  "main": "dist/index.js",
@@ -70,12 +70,12 @@
70
70
  },
71
71
  "homepage": "https://streetsidesoftware.github.io/cspell/",
72
72
  "dependencies": {
73
- "@cspell/cspell-pipe": "^6.8.2",
73
+ "@cspell/cspell-pipe": "^6.9.1",
74
74
  "chalk": "^4.1.2",
75
75
  "commander": "^9.4.0",
76
- "cspell-gitignore": "^6.8.2",
77
- "cspell-glob": "^6.8.2",
78
- "cspell-lib": "^6.8.2",
76
+ "cspell-gitignore": "^6.9.1",
77
+ "cspell-glob": "^6.9.1",
78
+ "cspell-lib": "^6.9.1",
79
79
  "fast-json-stable-stringify": "^2.1.0",
80
80
  "file-entry-cache": "^6.0.1",
81
81
  "fs-extra": "^10.1.0",
@@ -84,14 +84,14 @@
84
84
  "imurmurhash": "^0.1.4",
85
85
  "semver": "^7.3.7",
86
86
  "strip-ansi": "^6.0.1",
87
- "vscode-uri": "^3.0.3"
87
+ "vscode-uri": "3.0.4"
88
88
  },
89
89
  "engines": {
90
90
  "node": ">=14"
91
91
  },
92
92
  "devDependencies": {
93
- "@cspell/cspell-json-reporter": "^6.8.2",
94
- "@cspell/cspell-types": "^6.8.2",
93
+ "@cspell/cspell-json-reporter": "^6.9.1",
94
+ "@cspell/cspell-types": "^6.9.1",
95
95
  "@types/file-entry-cache": "^5.0.2",
96
96
  "@types/fs-extra": "^9.0.13",
97
97
  "@types/glob": "^8.0.0",
@@ -106,5 +106,5 @@
106
106
  "rollup": "^2.79.0",
107
107
  "rollup-plugin-dts": "^4.2.2"
108
108
  },
109
- "gitHead": "fb47a5f2f93d333fe5540142f3217e4981a7c27d"
109
+ "gitHead": "e405a2b1dec307888369cd7aafd58c1b3908d97c"
110
110
  }