提交 8fdebbd3 编写于 作者: A Alex Dima

Fixes #38189

上级 7c801e97
......@@ -330,7 +330,7 @@ class WordHighlighter {
this.renderDecorationsTimer = -1;
this.renderDecorations();
} else {
// Asyncrhonous
// Asynchronous
this.renderDecorationsTimer = setTimeout(() => {
this.renderDecorations();
}, (minimumRenderTime - currentTime));
......
......@@ -235,7 +235,11 @@ export abstract class AbstractContextKeyService implements IContextKeyService {
}
public setContext(key: string, value: any): void {
if (this.getContextValuesContainer(this._myContextId).setValue(key, value)) {
const myContext = this.getContextValuesContainer(this._myContextId);
if (!myContext) {
return;
}
if (myContext.setValue(key, value)) {
this._onDidChangeContextKey.fire(key);
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册