Skip to content

Commit 6568272

Browse files
authored
Fix run button disable. Switching to tutorial and back to samples (#1849) (#2206)
Hi, This should fix the problem #1849 I think that the first time the model is created and then the get is done. For `samples` kataSection is `undefined` and I don't know why the EntryPoint is missing. What do you think? Probably it's only a workaround.
1 parent 102929f commit 6568272

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

playground/src/editor.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,7 @@ export function Editor(props: {
299299
return () => {
300300
log.info("Disposing a monaco editor");
301301
window.removeEventListener("resize", onResize);
302+
props.languageService.closeDocument(srcModel.uri.toString());
302303
newEditor.dispose();
303304
};
304305
}, []);

0 commit comments

Comments
 (0)