microsoft / vscode-dts

CLI utility for downloading vscode.d.ts and vscode.proposed.d.ts
MIT License
34 stars 15 forks source link

Make dev command download specific proposals #10

Closed jrieken closed 2 years ago

jrieken commented 2 years ago

Changes the dev command to fetch individual vscode.proposed.XYZ.d.ts-files.

This introduces a small asymmetry because the git-tag/branch is given via the -g-flag, but only for dev-command. Open for suggestions!

vscode-dts: CLI utility for downloading vscode.d.ts and vscode.proposed.<proposal>.d.ts

Usage:
  - npx vscode-dts dev <proposal>                            Download vscode.proposed.<proposal>.d.ts files
  - npx vscode-dts dev <proposal> -g <git-tag | git-branch>  Download vscode.proposed.<proposal>.d.ts files from git tag/branch of microsoft/vscode
  - npx vscode-dts <git-tag | git-branch>                    Download vscode.d.ts from git tag/branch of microsoft/vscode
  - npx vscode-dts <git-tag | git-branch> -f                 Download vscode.d.ts and remove conflicting types in node_modules/@types/vscode
  - npx vscode-dts                                           Print Help
  - npx vscode-dts -h                                        Print Help
  - npx vscode-dts --help                                    Print Help
connor4312 commented 2 years ago

The way I assumed this would work is that vscode-dts would check the package.json for the list of proposed APIs that are enable and download them automatically. Is that coming later? 🙂

jrieken commented 2 years ago

The way I assumed this would work is that vscode-dts would check the package.json for the list of proposed APIs that are enable and download them automatically. Is that coming later?

That never occurred to me... So far I have seen this tool as being independent of actual extensions and there is some beauty in that.

jrieken commented 2 years ago

Closing this in-favour of https://github.com/microsoft/vscode-dts/pull/11