Skip to content

Commit 8fdebbd

Browse files
committed
1 parent 7c801e9 commit 8fdebbd

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

src/vs/editor/contrib/wordHighlighter/wordHighlighter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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));

src/vs/platform/contextkey/browser/contextKeyService.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)