File tree 2 files changed +8
-4
lines changed
2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " tslint-language-service" ,
3
- "version" : " 0.6 .0" ,
3
+ "version" : " 0.7 .0" ,
4
4
"description" : " tslint - language services" ,
5
5
"main" : " out/src/index.js" ,
6
6
"author" : " Angelo ZERR" ,
Original file line number Diff line number Diff line change @@ -43,7 +43,8 @@ if (!isTsLint4) {
43
43
return semver.satisfies(version, ">= 4.0.0 || >= 4.0.0-dev");
44
44
}*/
45
45
46
- const TSLINT_ERROR_CODE = 6999 ;
46
+ //TODO we "steal"" an error code with a registered code fix. 2515 = implement inherited abstract class
47
+ const TSLINT_ERROR_CODE = 2515 ;
47
48
48
49
function init ( modules : { typescript : typeof ts_module } ) {
49
50
const ts = modules . typescript ;
@@ -256,15 +257,18 @@ function init(modules: { typescript: typeof ts_module }) {
256
257
}
257
258
}
258
259
// Add "Go to rule definition" tslint.json codefix
259
- if ( configCache && configCache . configFilePath ) {
260
+ /* Comment this codefix, because it doesn't work with VSCode because textChanges is empty.
261
+ Hope one day https://github.com/angelozerr/tslint-language-service/issues/4 will be supported.
262
+
263
+ if (configCache && configCache.configFilePath) {
260
264
prior.push({
261
265
description: `Open tslint.json`,
262
266
changes: [{
263
267
fileName: configCache.configFilePath,
264
268
textChanges: []
265
269
}]
266
270
});
267
- }
271
+ }*/
268
272
return prior ;
269
273
} ;
270
274
return proxy ;
You can’t perform that action at this time.
0 commit comments