File tree Expand file tree Collapse file tree
editor/contrib/wordHighlighter
platform/contextkey/browser Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -330,7 +330,7 @@ class WordHighlighter {
330330 this . renderDecorationsTimer = - 1 ;
331331 this . renderDecorations ( ) ;
332332 } else {
333- // Asyncrhonous
333+ // Asynchronous
334334 this . renderDecorationsTimer = setTimeout ( ( ) => {
335335 this . renderDecorations ( ) ;
336336 } , ( minimumRenderTime - currentTime ) ) ;
Original file line number Diff line number Diff line change @@ -235,7 +235,11 @@ export abstract class AbstractContextKeyService implements IContextKeyService {
235235 }
236236
237237 public setContext ( key : string , value : any ) : void {
238- if ( this . getContextValuesContainer ( this . _myContextId ) . setValue ( key , value ) ) {
238+ const myContext = this . getContextValuesContainer ( this . _myContextId ) ;
239+ if ( ! myContext ) {
240+ return ;
241+ }
242+ if ( myContext . setValue ( key , value ) ) {
239243 this . _onDidChangeContextKey . fire ( key ) ;
240244 }
241245 }
You can’t perform that action at this time.
0 commit comments