Visual Studio Code Typescript Auto Importer
What is it
This plugin was created to automate the importing of code files within Visual Studio Code for TypeScript.
When authoring code, you will often have files across many locations within a single project. This can quickly become hard to keep track of the namespace for each file.
Currently, you'll find that you're typing
With TypeScriptImporter, you will now simply declare it inline, accept the code hint and the plugin deals with the rest.
Drag/Drop the latest vsix file into VSCode and then restart
See building below, this is only recommended for development of the plugin
Out of the box the plugin will work for any TypeScript project that is using namespaces and lives within a single project.
Multiple projects, cross dependancies
It is possible to have the plugin pick up namespaces from other projects. By default, the plugin uses WorkflowFiles, part of the ts-internal-module-workflow by kungfusheep, but this can be overriden in the settings shown below.
For now the plugin just supports namespaces, but has in-built experimental support for ES6 imports.
It would be possible to add support for modules that are currently unsupported in the future.
Additional settings will be added as the project expands into more modules.
Open both the Client and Server code in VSCode and run the built in task
With both code bases open, start a debug session in Visual Studio Code from the Client and once this is running begin a debug session from the Server