Remove debug prints

This commit is contained in:
Quinten Kock 2025-11-18 01:55:27 +01:00
parent 437c9356d7
commit 1330d8f897
3 changed files with 0 additions and 6 deletions

View File

@ -39,10 +39,8 @@ const EditorWrapper = (
const editors = vanX.reactive([[]]);
const currentTab = van.state(0);
van.derive(() => console.log("Setting tab to", currentTab.val));
export function addEditor(file: OpenFile) {
console.log("Adding editor to tab ", currentTab.val, editors);
const editor = file.createEditor();
editors[currentTab.val].push(vanX.noreactive(editor));
editor.focus();
@ -53,7 +51,6 @@ export function addTab(file?: OpenFile) {
}
export function addTerminal() {
console.log("Adding terminal");
const term = new Terminal();
editors[currentTab.val].push(vanX.noreactive(term));
term.focus();
@ -71,7 +68,6 @@ const TabHeader = (tab: State<Editor[]>, del: () => void, k: number) =>
);
const EditorGrid = (tab: State<Editor[]>, del: () => void, k: number) => {
console.log("Rendering", tab.val, "with key", k);
const main = v.main({
class: "flex flex-auto gap-4 overflow-x-auto min-width-4",
hidden: () => k !== currentTab.val,

View File

@ -139,7 +139,6 @@ export class OpenFile {
}
get target() {
console.log("Getting target");
return {
state: this.rootState.val,
dispatch: (tr: TransactionSpec) => this.dispatch(tr),

View File

@ -33,7 +33,6 @@ export class TerminalManager {
};
ptyProcess.onData((data) => {
console.log(`Terminal ${id} data:`, data);
event.sender.send("terminal:data", id, data);
});