From 8e50f01b5accb983f9d4bff7701b8840324d1f68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Moritz=20H=C3=B6lting?= <87192362+moritz-hoelting@users.noreply.github.com> Date: Thu, 27 Jun 2024 00:18:03 +0200 Subject: [PATCH] overwrite existing model when building --- src/components/playground.tsx | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 src/components/playground.tsx diff --git a/src/components/playground.tsx b/src/components/playground.tsx new file mode 100644 index 0000000..6d55efd --- /dev/null +++ b/src/components/playground.tsx @@ -0,0 +1,4 @@ + let prevModel = monaco.editor.getModel(uri); + if (prevModel) { + prevModel.setValue(file.content); + } else {