0.2.1 • Published 4 years ago
ts-refactor-tools v0.2.1
unsplash-code-actions
Installation
We don't publish the extension onto the marketplace so you'll have to manually install the .vsix file located at
the root of this project.
code --install-extension {file}.vsixIf this is an upgrade, you'll need to uninstall the previous version first
rm -rf ~/.vscode/extensions/unsplash.ts-refactor-tools-{version}Contribute
- Build latest extension code by doing
yarn run compile - Run
yarn linkfrom the root project - Run
yarn link "@unsplash/ts-refactor-tools"from the_extensionfolder. - Open a new VSCode directly from the
_extensionfolder and pressF5which will compile the extension code as well as embedding the plugin code. Next a new VSCode will open with the extension loaded, you can then test it there. - From now on, the plugin needs to be re-compiled when changes are made. The extension technically watches changes automatically.
- Don't forget to "Reload Window" in the extension host window to apply latest changes
Improvements
- Insert suggestions in VSCode's completion https://github.com/Asana/typescript-namespace-imports-vscode-plugin/blob/05ca34e350166b0d2189f0625712cb3228e28e1d/src/extension.ts#L29-L30