Skip to content

Commit 3272df0

Browse files
Switch to beta version of MakeCode (#374)
It's a big step forward from our deployment. We'll revisit this very soon to switch to live once the relevant changes have been pulled across.
1 parent 03866e6 commit 3272df0

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

src/components/EditCodeDialog.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,7 @@ const EditCodeDialog = forwardRef<MakeCodeFrameDriver, EditCodeDialogProps>(
4444
justifyContent="stretch"
4545
>
4646
<Flex flexGrow="1" flexDir="column" w="100%" bgColor="white">
47-
<Editor
48-
ref={ref}
49-
style={{ flexGrow: 1 }}
50-
version={undefined}
51-
/>
47+
<Editor ref={ref} style={{ flexGrow: 1 }} />
5248
</Flex>
5349
</ModalBody>
5450
</ModalContent>

src/components/Editor.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import { useSettings } from "../store";
1010
const controllerId = "MicrobitMachineLearningTool";
1111

1212
interface EditorProps {
13-
version: string | undefined;
1413
style?: React.CSSProperties;
1514
}
1615

@@ -26,8 +25,8 @@ const Editor = forwardRef<MakeCodeFrameDriver, EditorProps>(function Editor(
2625
return (
2726
<MakeCodeFrame
2827
ref={ref}
29-
// TODO: Remove baseUrl and use the default once our sim extension is live there
30-
baseUrl="https://ml-tool.pxt-microbit.pages.dev/"
28+
// TODO: Remove version and use the default once our sim extension is live there.
29+
version="beta"
3130
controllerId={controllerId}
3231
controller={2}
3332
initialProjects={initialProjects}

0 commit comments

Comments
 (0)