@tsslint/typescript-plugin 1.1.4 → 1.1.5

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.
Files changed (2) hide show
  1. package/index.js +9 -2
  2. package/package.json +4 -4
package/index.js CHANGED
@@ -156,11 +156,18 @@ function decorateLanguageService(ts, tsconfig, info) {
156
156
  ...errors.map(error => [error, ts.DiagnosticCategory.Error]),
157
157
  ...warnings.map(error => [error, ts.DiagnosticCategory.Warning]),
158
158
  ].map(([error, category]) => {
159
+ let messageText;
160
+ if (error.id === 'config-import-error') {
161
+ messageText = `Error importing config file.`;
162
+ }
163
+ else {
164
+ messageText = `Error building config file.`;
165
+ }
159
166
  const diag = {
160
167
  category,
161
168
  source: 'tsslint',
162
- code: 0,
163
- messageText: `Failed to build/load TSSLint config. (${error.text})`,
169
+ code: error.id ?? 0,
170
+ messageText,
164
171
  file: jsonConfigFile,
165
172
  start: configOptionSpan.start,
166
173
  length: configOptionSpan.length,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tsslint/typescript-plugin",
3
- "version": "1.1.4",
3
+ "version": "1.1.5",
4
4
  "license": "MIT",
5
5
  "files": [
6
6
  "**/*.js",
@@ -12,10 +12,10 @@
12
12
  "directory": "packages/typescript-plugin"
13
13
  },
14
14
  "dependencies": {
15
- "@tsslint/core": "1.1.4"
15
+ "@tsslint/core": "1.1.5"
16
16
  },
17
17
  "devDependencies": {
18
- "@tsslint/config": "1.1.4"
18
+ "@tsslint/config": "1.1.5"
19
19
  },
20
- "gitHead": "03d4e7480fc96c6322d436d34a4af73cb5bc25f2"
20
+ "gitHead": "7aa702de750c8efee2681fbabafcab3da344df03"
21
21
  }