ext-import
provides import completion for files with any extension
Features
- supports items import via the
ext-import.import option
Installation
Install it from the marketplace.
ext install ext-import
Options
ext-import.import - [array] allow wich extensions show in the suggestions
.ts and .tsx extensions are still handled by visual studio code
default: [".json", ".txt", ".html"]
ext-import.tsconfig - [string] path to the tsconfig.json in the current code-workspace
default: "./tsconfig.json"
Tips
- you need a [name].d.ts file to import the desired extension
declare module "*.json" {
const content: any;
export default content;
}
Release Notes
1.1.0
- support baseUrl from tsconfig.json
- support relative and absolute path
1.0.1
1.0.0
Author
marcel armada-castellon
Credits
This extension is based on path-autocomplete
| |