File tree 2 files changed +3
-2
lines changed
2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 24
24
- Fix Incorrect semantic highlighting of ` external ` declarations https://github.com/rescript-lang/rescript-vscode/pull/517
25
25
26
26
- Fix issue where doc comment with nested comments inside is not shown properly on hover https://github.com/rescript-lang/rescript-vscode/pull/526
27
+ - Fix server crashes when open file is removed from disk with inlayHints enabled https://github.com/rescript-lang/rescript-vscode/issues/538
27
28
28
29
## v1.4.2
29
30
Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ let inlay ~path ~pos ~maxLength ~debug =
82
82
Ast_iterator. default_iterator.value_binding iterator vb
83
83
in
84
84
let iterator = {Ast_iterator. default_iterator with value_binding} in
85
- (if Filename. check_suffix path " .res" then
85
+ (if Files. exists path && Filename. check_suffix path " .res" then
86
86
let parser =
87
87
Res_driver. parsingEngine.parseImplementation ~for Printer:false
88
88
in
@@ -143,7 +143,7 @@ let codeLens ~path ~debug =
143
143
let iterator = {Ast_iterator. default_iterator with value_binding} in
144
144
(* We only print code lenses in implementation files. This is because they'd be redundant in interface files,
145
145
where the definition itself will be the same thing as what would've been printed in the code lens. *)
146
- (if Filename. check_suffix path " .res" then
146
+ (if Files. exists path && Filename. check_suffix path " .res" then
147
147
let parser =
148
148
Res_driver. parsingEngine.parseImplementation ~for Printer:false
149
149
in
You can’t perform that action at this time.
0 commit comments