Merge pull request #43 from eqlabs/feat/temporary-fix-for-editor

Roll back file paths for now
This commit is contained in:
Valtteri Karesto
2021-12-21 11:18:58 +02:00
committed by GitHub

View File

@@ -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}`)
)
);
}