@@ -77,7 +77,7 @@ export class FileAnnotationController implements Disposable {
7777 }
7878
7979 dispose ( ) {
80- this . clearAll ( ) ;
80+ void this . clearAll ( ) ;
8181
8282 Decorations . blameAnnotation && Decorations . blameAnnotation . dispose ( ) ;
8383 Decorations . blameHighlight && Decorations . blameHighlight . dispose ( ) ;
@@ -155,21 +155,21 @@ export class FileAnnotationController implements Disposable {
155155 if ( initializing || configuration . changed ( e , configuration . name ( 'blame' ) ( 'toggleMode' ) . value ) ) {
156156 this . _toggleModes . set ( FileAnnotationType . Blame , cfg . blame . toggleMode ) ;
157157 if ( ! initializing && cfg . blame . toggleMode === AnnotationsToggleMode . File ) {
158- this . clearAll ( ) ;
158+ void this . clearAll ( ) ;
159159 }
160160 }
161161
162162 if ( initializing || configuration . changed ( e , configuration . name ( 'heatmap' ) ( 'toggleMode' ) . value ) ) {
163163 this . _toggleModes . set ( FileAnnotationType . Heatmap , cfg . heatmap . toggleMode ) ;
164164 if ( ! initializing && cfg . heatmap . toggleMode === AnnotationsToggleMode . File ) {
165- this . clearAll ( ) ;
165+ void this . clearAll ( ) ;
166166 }
167167 }
168168
169169 if ( initializing || configuration . changed ( e , configuration . name ( 'recentChanges' ) ( 'toggleMode' ) . value ) ) {
170170 this . _toggleModes . set ( FileAnnotationType . RecentChanges , cfg . recentChanges . toggleMode ) ;
171171 if ( ! initializing && cfg . recentChanges . toggleMode === AnnotationsToggleMode . File ) {
172- this . clearAll ( ) ;
172+ void this . clearAll ( ) ;
173173 }
174174 }
175175
@@ -198,7 +198,7 @@ export class FileAnnotationController implements Disposable {
198198 } ) ;
199199 }
200200 else {
201- this . show ( provider . editor , FileAnnotationType . Heatmap ) ;
201+ void this . show ( provider . editor , FileAnnotationType . Heatmap ) ;
202202 }
203203 }
204204 }
@@ -219,11 +219,11 @@ export class FileAnnotationController implements Disposable {
219219 const provider = this . getProvider ( editor ) ;
220220 if ( provider === undefined ) {
221221 setCommandContext ( CommandContext . AnnotationStatus , undefined ) ;
222- this . detachKeyboardHook ( ) ;
222+ void this . detachKeyboardHook ( ) ;
223223 }
224224 else {
225225 setCommandContext ( CommandContext . AnnotationStatus , provider . status ) ;
226- this . attachKeyboardHook ( ) ;
226+ void this . attachKeyboardHook ( ) ;
227227 }
228228 }
229229
@@ -234,14 +234,14 @@ export class FileAnnotationController implements Disposable {
234234 const editor = window . activeTextEditor ;
235235 if ( editor === undefined ) return ;
236236
237- this . clear ( editor , AnnotationClearReason . BlameabilityChanged ) ;
237+ void this . clear ( editor , AnnotationClearReason . BlameabilityChanged ) ;
238238 }
239239
240240 private onDirtyStateChanged ( e : DocumentDirtyStateChangeEvent < GitDocumentState > ) {
241241 for ( const [ key , p ] of this . _annotationProviders ) {
242242 if ( ! e . document . is ( p . document ) ) continue ;
243243
244- this . clearCore ( key , AnnotationClearReason . DocumentChanged ) ;
244+ void this . clearCore ( key , AnnotationClearReason . DocumentChanged ) ;
245245 }
246246 }
247247
@@ -251,7 +251,7 @@ export class FileAnnotationController implements Disposable {
251251 for ( const [ key , p ] of this . _annotationProviders ) {
252252 if ( p . document !== document ) continue ;
253253
254- this . clearCore ( key , AnnotationClearReason . DocumentClosed ) ;
254+ void this . clearCore ( key , AnnotationClearReason . DocumentClosed ) ;
255255 }
256256 }
257257
@@ -266,12 +266,12 @@ export class FileAnnotationController implements Disposable {
266266 ) ;
267267 if ( fuzzyProvider == null ) return ;
268268
269- this . clearCore ( fuzzyProvider . correlationKey , AnnotationClearReason . ColumnChanged ) ;
269+ void this . clearCore ( fuzzyProvider . correlationKey , AnnotationClearReason . ColumnChanged ) ;
270270
271271 return ;
272272 }
273273
274- provider . restore ( e . textEditor ) ;
274+ void provider . restore ( e . textEditor ) ;
275275 }
276276
277277 private onVisibleTextEditorsChanged ( editors : TextEditor [ ] ) {
@@ -280,7 +280,7 @@ export class FileAnnotationController implements Disposable {
280280 provider = this . getProvider ( e ) ;
281281 if ( provider === undefined ) continue ;
282282
283- provider . restore ( e ) ;
283+ void provider . restore ( e ) ;
284284 }
285285 }
286286
@@ -344,7 +344,7 @@ export class FileAnnotationController implements Disposable {
344344 for ( const e of window . visibleTextEditors ) {
345345 if ( e === editor ) continue ;
346346
347- this . show ( e , type ) ;
347+ void this . show ( e , type ) ;
348348 }
349349 }
350350 }
@@ -495,7 +495,7 @@ export class FileAnnotationController implements Disposable {
495495 }
496496
497497 // Allows pressing escape to exit the annotations
498- this . attachKeyboardHook ( ) ;
498+ await this . attachKeyboardHook ( ) ;
499499
500500 const trackedDocument = await Container . tracker . getOrAdd ( editor . document ) ;
501501
0 commit comments