From 5abcc8bc8581215752833ac580996fbe7d0b7b92 Mon Sep 17 00:00:00 2001 From: Zef Hemel Date: Fri, 30 Sep 2022 17:06:12 +0200 Subject: [PATCH] Switch logs back to BHS --- packages/plugos-silverbullet-syscall/editor.ts | 2 +- packages/plugs/core/debug.ts | 10 ++++------ 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/packages/plugos-silverbullet-syscall/editor.ts b/packages/plugos-silverbullet-syscall/editor.ts index 89b6f5e..1f78460 100644 --- a/packages/plugos-silverbullet-syscall/editor.ts +++ b/packages/plugos-silverbullet-syscall/editor.ts @@ -65,7 +65,7 @@ export function showPanel( id: "lhs" | "rhs" | "bhs" | "modal", mode: number, html: string, - script: string + script: string = "" ): Promise { return syscall("editor.showPanel", id, mode, html, script); } diff --git a/packages/plugs/core/debug.ts b/packages/plugs/core/debug.ts index 6b5e990..76df4e5 100644 --- a/packages/plugs/core/debug.ts +++ b/packages/plugs/core/debug.ts @@ -1,13 +1,11 @@ import { getLogs } from "@plugos/plugos-syscall/sandbox"; import { getText, - hideBhs, - showBhs, + hidePanel, showPanel, } from "@silverbulletmd/plugos-silverbullet-syscall/editor"; import { parseMarkdown } from "@silverbulletmd/plugos-silverbullet-syscall/markdown"; import { getServerLogs } from "@silverbulletmd/plugos-silverbullet-syscall/sandbox"; -import { invokeFunction } from "@silverbulletmd/plugos-silverbullet-syscall/system"; export async function parsePageCommand() { console.log( @@ -21,8 +19,8 @@ export async function showLogsCommand() { let serverLogs = await getServerLogs(); await showPanel( - "modal", - 100, + "bhs", + 1, `