Hi! Thank you so much for contributing to TypeScript Essential Plugins VS Code extension! We are really excited to bring high quality features and stability and we really appreciate any interest in it! Let us give you some high-level overview for you.
Quick Tip: You can use ni to help switching between repos using different package managers.
niis equivalent topnpm installandnr scriptis equivalent topnpm script
To start the VS Code plugin extension locally for developing:
-
Ensure you have pnpm installed (minimum v6):
npm i -g pnpm -
Run
pnpm installin root folder -
Run
pnpm startto build extension and typescript plugin in watch mode. After initial build you can open VS Code window in development by pressing F5 to start debugging session (or by running> Debug: Select and Start Debuggingand selecting Extension + TS Plugin).
- Note, that window will be reloaded after each change in
src/*automatically. Note that each development window reload most probably cause erase of unsaved files/data. Also if you frequently change files insrc/*you can uncomment--disable-extensionsin launch.json for faster window reloads.
src/*- VS Code extension code, that is specific to VS Code extension API only. Most probably you don't need to change it. (For now there is a limitation from vscode-framework so folder name cannot be changed to something likeextensionorvscode.)src/configurationType.ts- Extension configuration live here. Add / change settings here. It is used to generateout/package.json'scontributes.configuration.typescript/*- TypeScript plugin code, that integrates into TypeScript language service. After you change code in it, you need run to> TypeScript: Restart TS serverto see changes. Thats why it is useful to bind it to a shortcut.
They are in typescript/test and using vitest. Feel free to add new tests here. But note that most of tests are completion tests, but I do hope to add more types tests in the future.
To launch them run pnpm test-plugin.