From bac3522078b2f2e829189f16106bd2f0f2451f25 Mon Sep 17 00:00:00 2001 From: Valtteri Karesto Date: Tue, 21 Dec 2021 11:07:52 +0200 Subject: [PATCH] Roll back file paths for now --- components/HooksEditor.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/HooksEditor.tsx b/components/HooksEditor.tsx index 7cd79ed..70c4cc4 100644 --- a/components/HooksEditor.tsx +++ b/components/HooksEditor.tsx @@ -56,7 +56,7 @@ const HooksEditor = () => { keepCurrentModel defaultLanguage={snap.files?.[snap.active]?.language} language={snap.files?.[snap.active]?.language} - path={`file:///work/c/${snap.files?.[snap.active]?.name}`} + path={`file://work/c/${snap.files?.[snap.active]?.name}`} defaultValue={snap.files?.[snap.active]?.content} beforeMount={(monaco) => { if (!snap.editorCtx) { @@ -64,7 +64,7 @@ const HooksEditor = () => { monaco.editor.createModel( file.content, file.language, - monaco.Uri.parse(`file:///work/c/${file.name}`) + monaco.Uri.parse(`file://work/c/${file.name}`) ) ); }