Repository navigation
@vscode/python-extension typings polish suggestions #21690
Description
Activity
- addedfeature-requestRequest for new features or functionalityRequest for new features or functionality
on Jul 25, 2023 - addedtriage-neededNeeds assignment to the proper sub-teamNeeds assignment to the proper sub-team
on Jul 25, 2023 We try to document every API in vscode.d.ts which I like for a formal API like this as then there's no ambiguity on where to stop and what's obvious or not.
These are APIs that're only to be used for internal use by Jupyter, hence not documented. I wonder if we should expose these at all, opened microsoft/vscode-jupyter#13982 at Jupyter to clarify.
PythonExtension is both a namespace and an interface, this would be easier to read if they differed:
Inspiration from that is taken from WASM:
"The API is exported using the same name as the namespace to access the API (e.g. both Wasm). That allows to write nice code on the usage side and will also allow to move API into VS Code extension host without breakage since I follow the same API patterns"
I personally like it as it allows for nice usage like this:
- addedinfo-neededIssue requires more information from posterIssue requires more information from poster
on Jul 25, 2023 Kartik Raj (@karrtikr) do you mean
@vscode/python-extensionis only meant for jupyter, or just the hooks call?- removedinfo-neededIssue requires more information from posterIssue requires more information from poster
on Jul 25, 2023 Just the hooks call:
jupyter: { registerHooks(): void; };
I'd recommend remove them then as if it's there someone will probably use it.
Feel free to close this
- addedarea-internalLabel for non-user facing issuesLabel for non-user facing issuesneeds PRReady to be worked onReady to be worked onand removedtriage-neededNeeds assignment to the proper sub-teamNeeds assignment to the proper sub-team
on Jul 25, 2023 - addedverifiedVerification succeededVerification succeededarea-apiAPI related issuesAPI related issuesand removedarea-internalLabel for non-user facing issuesLabel for non-user facing issues
on Jul 25, 2023 - added a commit that references this issue
on Jul 25, 2023 - locked as resolved and limited conversation to collaborators
on Aug 25, 2023

I didn't know what this meant. We try to document every API in vscode.d.ts which I like for a formal API like this as then there's no ambiguity on where to stop and what's obvious or not.
The parameters are defined but not described.
nit: Uses JS-style typings when we should be native TS imo (don't mention the types after
@param)PythonExtension is both a namespace and an interface, this would be easier to read if they differed: