We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1da6593 commit f6e5449Copy full SHA for f6e5449
1 file changed
src/vs/platform/contextkey/browser/contextKeyService.ts
@@ -294,7 +294,11 @@ export class ContextKeyService extends AbstractContextKeyService implements ICon
294
}
295
296
public getContextValuesContainer(contextId: number): Context {
297
- return this._contexts[String(contextId)];
+ let result = this._contexts[String(contextId)];
298
+ if (!result) {
299
+ throw new Error(`Child ContextService has been disposed`);
300
+ }
301
+ return result;
302
303
304
public createChildContext(parentContextId: number = this._myContextId): number {
0 commit comments