mirror of
https://github.com/openharmony/ark_ts2abc.git
synced 2026-07-19 02:15:52 -04:00
Fix abnormal watch mode in IDE <wanggang203@huawei.com>
Signed-off-by: Gavin1012 <wanggang203@huawei.com> Change-Id: I5d0de9f9e34ac2518945a8c843aa3e07d2b82b4d
This commit is contained in:
@@ -290,7 +290,7 @@ function run(args: string[], options?: ts.CompilerOptions): void {
|
||||
return;
|
||||
}
|
||||
|
||||
main(parsed.fileNames.concat(dtsFiles).concat(CmdOptions.getIncludedFiles()), parsed.options);
|
||||
main(parsed.fileNames.concat(CmdOptions.getIncludedFiles()), parsed.options);
|
||||
} catch (err) {
|
||||
if (err instanceof diag.DiagnosticError) {
|
||||
let diagnostic = diag.getDiagnostic(err.code);
|
||||
@@ -307,5 +307,7 @@ function run(args: string[], options?: ts.CompilerOptions): void {
|
||||
}
|
||||
|
||||
let dtsFiles = getDtsFiles(path["join"](__dirname, "../node_modules/typescript/lib"));
|
||||
// keep these dtsFiles been pushed here
|
||||
process.argv.push(...dtsFiles);
|
||||
run(process.argv.slice(2), Compiler.Options.Default);
|
||||
global.gc();
|
||||
|
||||
Reference in New Issue
Block a user