@tsslint/typescript-plugin 0.0.13 → 1.0.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.
Files changed (2) hide show
  1. package/index.js +5 -2
  2. package/package.json +4 -4
package/index.js CHANGED
@@ -2,7 +2,7 @@
2
2
  const core_1 = require("@tsslint/core");
3
3
  const path = require("path");
4
4
  const languageServiceDecorators = new WeakMap();
5
- const init = (modules) => {
5
+ const init = modules => {
6
6
  const { typescript: ts } = modules;
7
7
  const pluginModule = {
8
8
  create(info) {
@@ -146,7 +146,7 @@ function decorateLanguageService(ts, tsconfig, info) {
146
146
  languageService: info.languageService,
147
147
  typescript: ts,
148
148
  };
149
- configFileBuildContext = await watchConfigFile(configFile, async (_config, { errors, warnings }) => {
149
+ configFileBuildContext = await watchConfigFile(configFile, (_config, { errors, warnings }) => {
150
150
  config = _config;
151
151
  configFileDiagnostics = [
152
152
  ...errors.map(error => [error, ts.DiagnosticCategory.Error]),
@@ -174,6 +174,9 @@ function decorateLanguageService(ts, tsconfig, info) {
174
174
  length: error.location.lineText.length,
175
175
  }];
176
176
  }
177
+ else {
178
+ diag.messageText += `\n\n${error.text}`;
179
+ }
177
180
  return diag;
178
181
  });
179
182
  if (config) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tsslint/typescript-plugin",
3
- "version": "0.0.13",
3
+ "version": "1.0.1",
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": "0.0.13"
15
+ "@tsslint/core": "1.0.1"
16
16
  },
17
17
  "devDependencies": {
18
- "@tsslint/config": "0.0.13"
18
+ "@tsslint/config": "1.0.1"
19
19
  },
20
- "gitHead": "ebb2ecf9dadc0ebccd1859af973cb8fbbd07c83d"
20
+ "gitHead": "124aa300b4fb4d4c414f585cc0d4afddc4f343bf"
21
21
  }