Added source = tslint to the diagnostic
This commit is contained in:
Родитель
2b6341c15a
Коммит
a85f86d34a
|
@ -102,6 +102,7 @@ function init(modules: { typescript: typeof ts_module }) {
|
|||
length: problem.getEndPosition().getPosition() - problem.getStartPosition().getPosition(),
|
||||
messageText: message,
|
||||
category: category,
|
||||
source: 'tslint',
|
||||
code: TSLINT_ERROR_CODE
|
||||
};
|
||||
return diagnostic;
|
||||
|
@ -258,9 +259,9 @@ function init(modules: { typescript: typeof ts_module }) {
|
|||
description: `Disable rule '${problem.getRuleName()}'`,
|
||||
changes: [{
|
||||
fileName: fileName,
|
||||
textChanges: [{
|
||||
textChanges: [{
|
||||
newText: `// tslint:disable-next-line:${problem.getRuleName()}\n`,
|
||||
span: { start: file.getLineStarts()[problem.getStartPosition().getLineAndCharacter().line], length: 0}
|
||||
span: { start: file.getLineStarts()[problem.getStartPosition().getLineAndCharacter().line], length: 0}
|
||||
}
|
||||
]
|
||||
}]
|
||||
|
|
Загрузка…
Ссылка в новой задаче