@@ -51,7 +51,7 @@ public override async Task<Unit> Handle(DidOpenTextDocumentParams notification,
5151 {
5252 await Task . Yield ( ) ;
5353 _logger . LogInformation ( "Hello world!" ) ;
54- await _configuration . GetScopedConfiguration ( notification . TextDocument . Uri , token ) ;
54+ await _configuration . GetScopedConfiguration ( notification . TextDocument . Uri , token ) . ConfigureAwait ( false ) ;
5555 return Unit . Value ;
5656 }
5757
@@ -84,7 +84,7 @@ CancellationToken cancellationToken
8484 )
8585 {
8686 // you would normally get this from a common source that is managed by current open editor, current active editor, etc.
87- var content = await File . ReadAllTextAsync ( DocumentUri . GetFileSystemPath ( request ) , cancellationToken ) ;
87+ var content = await File . ReadAllTextAsync ( DocumentUri . GetFileSystemPath ( request ) , cancellationToken ) . ConfigureAwait ( false ) ;
8888 var lines = content . Split ( '\n ' ) ;
8989 var symbols = new List < SymbolInformationOrDocumentSymbol > ( ) ;
9090 for ( var lineIndex = 0 ; lineIndex < lines . Length ; lineIndex ++ )
@@ -160,31 +160,31 @@ CancellationToken cancellationToken
160160 using var partialResults = _progressManager . For ( request , cancellationToken ) ;
161161 if ( partialResults != null )
162162 {
163- await Task . Delay ( 2000 , cancellationToken ) ;
163+ await Task . Delay ( 2000 , cancellationToken ) . ConfigureAwait ( false ) ;
164164
165165 reporter . OnNext (
166166 new WorkDoneProgressReport {
167167 Cancellable = true ,
168168 Percentage = 20
169169 }
170170 ) ;
171- await Task . Delay ( 500 , cancellationToken ) ;
171+ await Task . Delay ( 500 , cancellationToken ) . ConfigureAwait ( false ) ;
172172
173173 reporter . OnNext (
174174 new WorkDoneProgressReport {
175175 Cancellable = true ,
176176 Percentage = 40
177177 }
178178 ) ;
179- await Task . Delay ( 500 , cancellationToken ) ;
179+ await Task . Delay ( 500 , cancellationToken ) . ConfigureAwait ( false ) ;
180180
181181 reporter . OnNext (
182182 new WorkDoneProgressReport {
183183 Cancellable = true ,
184184 Percentage = 50
185185 }
186186 ) ;
187- await Task . Delay ( 500 , cancellationToken ) ;
187+ await Task . Delay ( 500 , cancellationToken ) . ConfigureAwait ( false ) ;
188188
189189 partialResults . OnNext (
190190 new [ ] {
@@ -209,7 +209,7 @@ CancellationToken cancellationToken
209209 Percentage = 70
210210 }
211211 ) ;
212- await Task . Delay ( 500 , cancellationToken ) ;
212+ await Task . Delay ( 500 , cancellationToken ) . ConfigureAwait ( false ) ;
213213
214214 reporter . OnNext (
215215 new WorkDoneProgressReport {
0 commit comments