File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 1616
1717- Take namespace into account for incremental cleanup. https://github.com/rescript-lang/rescript-vscode/pull/1164
1818- Potential race condition in incremental compilation. https://github.com/rescript-lang/rescript-vscode/pull/1167
19+ - Fix extension crash triggered by incremental compilation. https://github.com/rescript-lang/rescript-vscode/pull/1169
1920
2021#### :nail_care : Polish
2122
Original file line number Diff line number Diff line change @@ -13,7 +13,6 @@ import { fileCodeActions } from "./codeActions";
1313import { projectsFiles } from "./projectFiles" ;
1414import { getRewatchBscArgs , RewatchCompilerArgs } from "./bsc-args/rewatch" ;
1515import { BsbCompilerArgs , getBsbBscArgs } from "./bsc-args/bsb" ;
16- import { getCurrentCompilerDiagnosticsForFile } from "./server" ;
1716import { NormalizedPath } from "./utils" ;
1817import { getLogger } from "./logger" ;
1918
@@ -712,7 +711,12 @@ async function compileContents(
712711 entry . project . bscBinaryLocation ,
713712 callArgs ,
714713 { cwd, signal } ,
715- ) ;
714+ ) . catch ( ( error ) => {
715+ if ( error . stderr ) {
716+ return { stderr : error . stderr } ;
717+ }
718+ throw error ;
719+ } ) ;
716720
717721 getLogger ( ) . log (
718722 `Recompiled ${ entry . file . sourceFileName } in ${
You can’t perform that action at this time.
0 commit comments