-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Add example using TypeScript in webviews #895
Comments
Actually now that I've spent more time reading, it seems like this is exactly what I wanted: https://github.com/microsoft/vscode-webview-ui-toolkit-samples I think this repo should be mentioned in the VS Code webview docs because it seems like this is the 'right' way to develop a webview extension for anyone starting a new project. |
Please ask your question on StackOverflow. We have a great community over there. They have already answered thousands of questions and are happy to answer yours as well. See also our issue reporting guidelines. Happy Coding! |
Currently the docs and examples have all webview logic inside a
.js
IIFE [1] or a raw string [2]. I would prefer to have all my extension code in TypeScript including the webview logic and the message passing between my extension and webview. I think a new example template showing how to properly do this would be very helpful.I was able to find some unofficial resources on this [3 - 7] but testing and putting everything together isn't trivial and I'd rather not have to roll my own separate config and build process.
Reference
The text was updated successfully, but these errors were encountered: