-
Notifications
You must be signed in to change notification settings - Fork 30k
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
Provide webview/renderer API typings somewhere #99320
Provide webview/renderer API typings somewhere #99320
Comments
This would be helpful for microsoft/vscode-docs#3784. I think a @types/vscode-notebook or something would be a good place for it. Aside, it'd be cool if ts {
"extends": "tsconfig.json",
"compilerOptions": { "lib": [ "vscode-notebook-output-context"] },
"include": [ "client" ]
} Right now we'd need a whole separate NPM scope to have separate @types I believe. |
We can just PR a package called @types/vscode-notebook. The naming of packages is only constrained by the maintainers' policy, and there are types that don't correspond to single packages, e.g. https://www.npmjs.com/package/@types/kap-plugin |
Poor wording, I mean the project would need a different (Or just know not call acquireApi outside of the client context of course. ) |
Oh, yea. In the sample renderer/code generator I'm using project references to keep things separated -- that also lets us use |
PR submitted |
Right now we expose an API to cells, and to webviews, but we don't publish types for this. The webview API is very simple, but the renderer will be somewhat more complex.
We should consider either publishing these in @types/vscode, or in a separate @types package.
The text was updated successfully, but these errors were encountered: