Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix interferring monaco editor instances #702

Merged
merged 4 commits into from
Jul 28, 2022
Merged

Fix interferring monaco editor instances #702

merged 4 commits into from
Jul 28, 2022

Conversation

Janpot
Copy link
Member

@Janpot Janpot commented Jul 28, 2022

monaco-editor can't set typescript options on a per-instance basis. This PR presents a workaround by reserving the typescript language for the focused editor only and have a typescriptBasic language with syntax highlighting only for non-focused editor instances. The trade-off is that errors in non-focused editors won't be shown underlined.

See microsoft/monaco-editor#1105 for more background

Fixes #704

@render
Copy link

render bot commented Jul 28, 2022

@oliviertassinari oliviertassinari requested a deployment to monaco-refactor - toolpad-db PR #702 July 28, 2022 11:52 — with Render Abandoned
@Janpot Janpot marked this pull request as ready for review July 28, 2022 14:33
@Janpot Janpot merged commit 7bdbf23 into master Jul 28, 2022
@Janpot Janpot deleted the monaco-refactor branch July 28, 2022 16:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Problem with query transform editor after opening url binding dialog
2 participants