File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ import { isVirtualCSharpDocument } from './virtualDocumentTracker';
1515import { TextDocument } from '../vscodeAdapter' ;
1616import OptionProvider from '../observers/OptionProvider' ;
1717import { Subject , Subscription } from 'rxjs' ;
18- import { throttleTime } from 'rxjs/operators' ;
18+ import { debounceTime } from 'rxjs/operators' ;
1919import { DiagnosticStatus } from '../omnisharp/protocol' ;
2020import { LanguageMiddlewareFeature } from '../omnisharp/LanguageMiddlewareFeature' ;
2121
@@ -137,12 +137,12 @@ class DiagnosticsProvider extends AbstractSupport {
137137
138138 this . _subscriptions . push ( this . _validateCurrentDocumentPipe
139139 . asObservable ( )
140- . pipe ( throttleTime ( 750 ) )
140+ . pipe ( debounceTime ( 750 ) )
141141 . subscribe ( async x => await this . _validateDocument ( x ) ) ) ;
142142
143143 this . _subscriptions . push ( this . _validateAllPipe
144144 . asObservable ( )
145- . pipe ( throttleTime ( 3000 ) )
145+ . pipe ( debounceTime ( 3000 ) )
146146 . subscribe ( async ( ) => {
147147 if ( this . _validationAdvisor . shouldValidateAll ( ) ) {
148148 await this . _validateEntireWorkspace ( ) ;
You can’t perform that action at this time.
0 commit comments