-
Notifications
You must be signed in to change notification settings - Fork 33
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
Idea: twinning with LouisWT "Preview Regexp" #40
Comments
I like the idea. It seems the visualization is now being developed at https://gitlab.com/javallone/regexper-static. I'm not sure if depending on the other extension is necessarily the right approach. Maybe the visualization could be made reusable as an NPM package. I don't have cycles to work on this, feel free to submit a PR! |
Great ! Stay tuned !😉 |
Good evening @chrmarti ! |
Hey @chrmarti ! 😊👋🏼
Congratulations for the great extension !
A real game changer.
I had an idea that could offer VSCode users an even better experience.
What about having this layout in VSCode ?
To the left: the current document
To the right:
Unfortunately given that it's a working fork of this unmantained project, the issue page is not reachable by default.
I ended up submitting a review, as i know that a notification will be sent to its developer.
So with luck he will join us in this conversation.
VsCode extensions can talk to each others in various ways, like returing in the
activate()
its APIs.We can use
vscode.extensions.getExtension().exports
to obtain access to these exposed APIs.However for this twinning i was thinking a more easier approach:
He could expose two commands called
regexPreviewer.explainRegex
which accepts a regex as input and returns the created document (which contains his webview)and
regexPreviewer.explainAnotherRegex
which should update the displayed regex.With the returned view you could move it to the right below your preview panel.
As soon as you detect changes you could call the
regexPreviewer.explainAnotherRegex
passing the new regex in order to keep them synced.In this way your extension calls the other if available, sets its position and triggers updates.
Your extension could add in its package.json an "extensionPack" contribution point so everyone would benefit from both extensions.
Hope you could understand the awesome thing could became and the great multi-extensions experience can be.
This was just an idea.
Best !
The text was updated successfully, but these errors were encountered: