Skip to content

Commit a710e3f

Browse files
authored
Fix configuration wrapper readme (#867)
* Fix typo in wrapper README * Fix configuration details in wrapper README * Fix configuration details in wrapper-react README
1 parent d4b44c2 commit a710e3f

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

packages/wrapper-react/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ const wrapperConfig: WrapperConfig = {
2828
htmlContainer: document.getElementById('monaco-editor-root')!,
2929
editorAppConfig: {
3030
codeResources: {
31-
main: {
32-
text: 'print("Hello, World!")',
33-
uri: '/workspace/hello.py'
31+
modified: {
32+
uri: '/workspace/hello.py',
33+
text: 'print("Hello, World!")'
3434
}
3535
}
3636
}

packages/wrapper/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ Monarch grammars and themes can only be used in **classic** mode and textmate gr
4545

4646
## Usage
4747

48-
Monaco Editor with TypeScript language support in web worker and relying on classic mode:
48+
Monaco Editor with Python language support in web worker and relying on extended mode:
4949

5050
```ts
5151
import '@codingame/monaco-vscode-python-default-extension';
@@ -59,9 +59,9 @@ const run = async () => {
5959
htmlContainer: document.getElementById('monaco-editor-root')!,
6060
editorAppConfig: {
6161
codeResources: {
62-
main: {
63-
text: 'print("Hello, World!")',
64-
uri: '/workspace/hello.py'
62+
modified: {
63+
uri: '/workspace/hello.py',
64+
text: 'print("Hello, World!")'
6565
}
6666
}
6767
}

0 commit comments

Comments
 (0)