File tree Expand file tree Collapse file tree 1 file changed +17
-15
lines changed Expand file tree Collapse file tree 1 file changed +17
-15
lines changed Original file line number Diff line number Diff line change @@ -114,21 +114,23 @@ export function activate(context: ExtensionContext) {
114
114
// compilation has finished, and the most reliable source for that is the LS
115
115
// server, that already keeps track of when the compiler finishes in order to
116
116
// other provide fresh diagnostics.
117
- client . onDidChangeState ( ( { newState } ) => {
118
- if ( newState === State . Running ) {
119
- context . subscriptions . push (
120
- client . onNotification ( "rescript/compilationFinished" , ( ) => {
121
- if ( inCodeAnalysisState . active === true ) {
122
- customCommands . codeAnalysisWithReanalyze (
123
- inCodeAnalysisState . activatedFromDirectory ,
124
- diagnosticsCollection ,
125
- diagnosticsResultCodeActions
126
- ) ;
127
- }
128
- } )
129
- ) ;
130
- }
131
- } ) ;
117
+ context . subscriptions . push (
118
+ client . onDidChangeState ( ( { newState } ) => {
119
+ if ( newState === State . Running ) {
120
+ context . subscriptions . push (
121
+ client . onNotification ( "rescript/compilationFinished" , ( ) => {
122
+ if ( inCodeAnalysisState . active === true ) {
123
+ customCommands . codeAnalysisWithReanalyze (
124
+ inCodeAnalysisState . activatedFromDirectory ,
125
+ diagnosticsCollection ,
126
+ diagnosticsResultCodeActions
127
+ ) ;
128
+ }
129
+ } )
130
+ ) ;
131
+ }
132
+ } )
133
+ ) ;
132
134
133
135
return client ;
134
136
}
You can’t perform that action at this time.
0 commit comments