Skip to content

Alternate Typescript method of retrieving stubs that may be of interest #308

@standsi

Description

@standsi

Feature Request 🚀

Is your feature request related to a problem? Please describe.

The dependence on executing desktop python code (pip) from within the extension has been problematic for my use. I have used a typescript solution in an extension I wrote for Circuitpython: https://marketplace.visualstudio.com/items?itemName=padgettholdings.circuitpythonsync

Describe the solution you'd like

I have extracted the applicable code in a repo that could be of interest:
[https://github.com/standsi/MicropythonStubsFetchTypescript

Describe alternatives you've considered

The code resolves dependencies recursively as needed. Generally the stubs are fairly flat so the operation is pretty quick.

Teachability, Documentation, Adoption, Migration Strategy

The sample code also includes a similar solution to fetch libraries to the local workspace. While a bit different than the way Circuitpython libraries work, it is similar enough I was able to adapt my code to the micropython lib load also. Be glad to help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions