From 93b55b42402b5788743d62db6ea97520e4896340 Mon Sep 17 00:00:00 2001 From: HerringtonDarkholme <2883231+HerringtonDarkholme@users.noreply.github.com> Date: Sat, 10 Feb 2024 19:39:40 -0800 Subject: [PATCH] fix: minor issues in code --- src/test/utils.ts | 2 +- src/webview/index.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/utils.ts b/src/test/utils.ts index 51f92cc6..50c0a43b 100644 --- a/src/test/utils.ts +++ b/src/test/utils.ts @@ -28,7 +28,7 @@ export async function activate() { await editor.edit(builder => { builder.setEndOfLine(vscode.EndOfLine.LF) }) - await sleep(2000) // Wait for server activation + await sleep(1000) // Wait for server activation } catch (e) { console.error(e) } diff --git a/src/webview/index.tsx b/src/webview/index.tsx index 2ce0c48f..096d0774 100644 --- a/src/webview/index.tsx +++ b/src/webview/index.tsx @@ -5,5 +5,5 @@ const App = () => { return } -const root = ReactDOM.createRoot(document.getElementById('root') as HTMLElement) +const root = ReactDOM.createRoot(document.getElementById('root')!) root.render()