-
-
Notifications
You must be signed in to change notification settings - Fork 189
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
Multiple editor instances with tabs in React using @typefox/monaco-editor-react #850
Comments
Hi @sten-code we have something like that without the need for extra code: monaco-vscode-api provides the possibility to build "partial" VSCode applications. In the above example the "ViewsService" is used instead of the "EditorService" that is used in the "simpler" examples. When the view service is active the |
I have tested that example pretty thoroughly, but I couldn't find a way to style the tabs myself. I also need the ability to extract the text from a specific tab. The best way to do any of these is to make my own tab system. I would much prefer to use the view service, but there just isn't any documentation on it and I don't want to spend all this time trying to reverse engineer something that I don't know with 100% certainty that it supports everything in my use case. There are only some vague examples that only cover very specific use cases. |
@sten-code what you want to achieve goes beyond what we can offer/support here. |
Alright, thanks for letting me know. I will implement a custom solution without using the |
@sten-code thank you. If you have also ideas for enhancements, please feel free to open an enhancement issues. |
I'm trying to create a tab system where each tab has it's own Monaco editor. I have seen examples where others have done this without this wrapper, but there are no examples in this repository that explain exactly how to do this.
The issue is that when I switch tabs, it still has the same editor and doesn't actually change to the content of the corresponding tab. This shouldn't really be possible since each tab has it's own instance.
This is what I have tried, it's a bit simplified compared to what I actually have:
Thanks in advance to anyone who might be able to help.
The text was updated successfully, but these errors were encountered: