Skip to content

Commit

Permalink
update monaco
Browse files Browse the repository at this point in the history
  • Loading branch information
thecodingwizard committed Feb 10, 2024
1 parent bde52dc commit ca4b859
Show file tree
Hide file tree
Showing 4 changed files with 268 additions and 332 deletions.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -266,3 +266,19 @@ If `firebase emulators:exec` fails for unknown reason, try running `firebase emu
- Too large output
- Classrooms
- Copying files (#64, this broke already lol)

### Updating Monaco Editor

1. `npm install monaco-editor@latest`
2. Modify `node_modules/monaco-editor/esm/vs/editor/standalone/browser/standaloneServices.js`:

```
- return (isLinux || isMacintosh) ? '\n' : '\r\n';
+ return (isLinux || isMacintosh) ? '\n' : '\n';
```

See `patches/monaco-editor+??.patch` for more details

3. `npx patch-package monaco-editor`
4. Commit the updated patch to Github
5. Test that everything works: LSP, browser sync, cross-platform sync, etc
Loading

0 comments on commit ca4b859

Please sign in to comment.