File tree Expand file tree Collapse file tree 1 file changed +13
-11
lines changed
src/languageSupport/languages/flux/lsp Expand file tree Collapse file tree 1 file changed +13
-11
lines changed Original file line number Diff line number Diff line change @@ -25,20 +25,22 @@ class Prelude {
2525 this . _variables = variables
2626 const previousValue = this . _preludeModel . getValue ( )
2727
28- const file = buildUsedVarsOption ( this . _model . getValue ( ) , variables )
29- const query = format_from_js_file ( file )
28+ try {
29+ const file = buildUsedVarsOption ( this . _model . getValue ( ) , variables )
30+ const query = format_from_js_file ( file )
3031
31- this . _preludeModel . setValue ( query )
32- if ( query != previousValue ) {
3332 this . _preludeModel . setValue ( query )
34- this . _worker . postMessage (
35- didChange (
36- this . _preludeModel . uri . toString ( ) ,
37- query ,
38- this . _preludeModel . getVersionId ( )
33+ if ( query != previousValue ) {
34+ this . _preludeModel . setValue ( query )
35+ this . _worker . postMessage (
36+ didChange (
37+ this . _preludeModel . uri . toString ( ) ,
38+ query ,
39+ this . _preludeModel . getVersionId ( )
40+ )
3941 )
40- )
41- }
42+ }
43+ } catch ( _ ) { }
4244 }
4345
4446 subscribeToModel ( editor : EditorType ) {
You can’t perform that action at this time.
0 commit comments