提交 f4fd1f46 编写于 作者: J Johannes Rieken

reset context key on init, #8458

prevent 'old' values from shining through
上级 4f97002d
......@@ -126,9 +126,7 @@ class KeybindingContextKey<T> implements IKeybindingContextKey<T> {
this._parent = parent;
this._key = key;
this._defaultValue = defaultValue;
if (typeof this._defaultValue !== 'undefined') {
this._parent.setContext(this._key, this._defaultValue);
}
this.reset();
}
public set(value: T): void {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册