mirror of
https://github.com/Microsoft/vscode
synced 2024-09-13 21:55:38 +00:00
Disable creating a program for the tsling hygine
This commit is contained in:
parent
1a84a88273
commit
edf43bdf45
|
@ -222,12 +222,16 @@ const hygiene = exports.hygiene = (some, options) => {
|
||||||
});
|
});
|
||||||
|
|
||||||
let linterForProgram = {}; // maps tslint programs to its corresponding Linter
|
let linterForProgram = {}; // maps tslint programs to its corresponding Linter
|
||||||
|
let createProgramForTslint = false; // too expensive, disabled for now
|
||||||
const configuration = tslint.Configuration.findConfiguration('tslint-hygiene.json', '.');
|
const configuration = tslint.Configuration.findConfiguration('tslint-hygiene.json', '.');
|
||||||
|
|
||||||
function createLinter(tsconfig) {
|
function createLinter(tsconfig) {
|
||||||
const program = tslint.Linter.createProgram(tsconfig);
|
|
||||||
const tslintOptions = { fix: false, formatter: 'json' };
|
const tslintOptions = { fix: false, formatter: 'json' };
|
||||||
return new tslint.Linter(tslintOptions, program);
|
if (createProgramForTslint) {
|
||||||
|
const program = tslint.Linter.createProgram(tsconfig);
|
||||||
|
return new tslint.Linter(tslintOptions, program);
|
||||||
|
}
|
||||||
|
return new tslint.Linter(tslintOptions);
|
||||||
}
|
}
|
||||||
|
|
||||||
function findTsConfig(segments) {
|
function findTsConfig(segments) {
|
||||||
|
|
Loading…
Reference in a new issue