remove context log

This commit is contained in:
marlon-erler
2026-04-13 20:13:53 +00:00
parent ddb2fbd4f2
commit d71b3893a4
-10
View File
@@ -20,18 +20,9 @@ export default class CoreViewModel {
get context(): Context | undefined { get context(): Context | undefined {
return this.contexts.pop(); return this.contexts.pop();
} }
logContexts = (): void => {
console.log(
"context",
this.contexts.map(
(x) => x.contextDebugDescription + "-" + x.contextId,
),
);
};
set context(context: Context) { set context(context: Context) {
if (this.contextStack.has(context.contextId)) return; if (this.contextStack.has(context.contextId)) return;
this.contextStack.set(context.contextId, context); this.contextStack.set(context.contextId, context);
this.logContexts();
} }
closeContext = (contextId: string): void => { closeContext = (contextId: string): void => {
if ( if (
@@ -45,7 +36,6 @@ export default class CoreViewModel {
this.contextStack.delete(currentContext.contextId); this.contextStack.delete(currentContext.contextId);
if (currentContext.contextId == contextId) break; if (currentContext.contextId == contextId) break;
} }
this.logContexts();
}; };
handleKeyDown = (e: KeyboardEvent): void => { handleKeyDown = (e: KeyboardEvent): void => {