Skip to content

Commit

Permalink
Remove debug statements (+f9fc1874e2c0b0b6c486ae6a13e52bf09cef588d)
Browse files Browse the repository at this point in the history
Signed-off-by: William So <[email protected]>
  • Loading branch information
polyipseity committed Sep 22, 2023
1 parent d4958f2 commit 14bfcb1
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 7 deletions.
5 changes: 5 additions & 0 deletions .changeset/large-lobsters-move.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"obsidian-terminal": patch
---

Remove debug statements. (+f9fc1874e2c0b0b6c486ae6a13e52bf09cef588d)
2 changes: 1 addition & 1 deletion sources/patch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ function patchRequire(
return next.apply(this, args)
} catch (error) {
if (!settings.value.exposeInternalModules) { throw error }
self0.console.debug(error)
/* @__PURE__ */ self0.console.debug(error)
return dynamicRequireSync(new Map(), ...args)
}
} as NodeRequire
Expand Down
4 changes: 2 additions & 2 deletions sources/terminal/emulator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export class XtermTerminalEmulator<A> {
}
} catch (error) {
if (mustResizePseudoterminal) { throw error }
activeSelf(this.terminal.element).console.debug(error)
/* @__PURE__ */ activeSelf(this.terminal.element).console.debug(error)
}
})())
}, TERMINAL_PTY_RESIZE_WAIT * SI_PREFIX_SCALE))
Expand Down Expand Up @@ -142,7 +142,7 @@ export class XtermTerminalEmulator<A> {
}
} catch (error) {
if (mustClosePseudoterminal) { throw error }
activeSelf(this.terminal.element).console.debug(error)
/* @__PURE__ */ activeSelf(this.terminal.element).console.debug(error)
}
this.terminal.dispose()
}
Expand Down
8 changes: 5 additions & 3 deletions sources/terminal/pseudoterminal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ export class DeveloperConsolePseudoterminal
self1.console.error(error)
return null
}
self1.console.debug(error)
/* @__PURE__ */ self1.console.debug(error)
}
}
try {
Expand Down Expand Up @@ -750,7 +750,9 @@ class WindowsPseudoterminal implements Pseudoterminal {
const watchdog = self.setInterval(
() => {
writePromise(resizer0.stdin, "\n")
.catch(error => { self.console.debug(error) })
.catch(error => {
/* @__PURE__ */ self.console.debug(error)
})
},
TERMINAL_RESIZER_WATCHDOG_WAIT * SI_PREFIX_SCALE,
)
Expand Down Expand Up @@ -801,7 +803,7 @@ class WindowsPseudoterminal implements Pseudoterminal {
)
return isNaN(termCode) ? conCode ?? signal ?? NaN : termCode
} catch (error) {
self.console.debug(error)
/* @__PURE__ */ self.console.debug(error)
return conCode ?? signal ?? NaN
} finally {
(async (): Promise<void> => {
Expand Down
2 changes: 1 addition & 1 deletion sources/terminal/view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,7 @@ export class TerminalView extends ItemView {
},
)
} catch (error) {
activeSelf(contentEl).console.debug(error)
/* @__PURE__ */ activeSelf(contentEl).console.debug(error)
empty = true
}
if (empty) { this.#find?.$set({ results: "" }) }
Expand Down

0 comments on commit 14bfcb1

Please sign in to comment.