- FIXED: will insert multiple require statements in a single edit action. This is faster and can be undone with one cmd+z
- ADDED: support for importing multiple files using match pattern (#15)
- FIXED: incorrect position with multi-line require (#17)
- ADDED: support for npm workspaces (#19)
- ADDED: option to keep file extension (keepFileExtension)
- FIXED: places external import before local destructured imports.
- ADDED: option to insert the require statement at cursor (insertAtCursor).
- ADDED: destructuring import now goes deeper. Will get named exports from files exported from selected file.
- ADDED: destructuring import command to require named exports from files.
- FIXED: add a newline before if insert position is at end of file.
- ADDED: quote type config and quote type autodetection.
- ADDED: semicolon autodetection.
- ADDED: ability to require multiple modules/files with a single command.
- ADDED: support for .ts/.tsx file types.
- ADDED: config option for semicolon.
- FIXED: position when a block comment is at the top of a file.
- forked repository.
- FIXED: position when a named import is present in the file.
- Absolute imports are inserted before relative imports (by @nickyhajal).
- Allow aliases for local imports (by @nickyhajal).
- FIX: Skip 'use strict' before inserting the require (thx to @jhnns).
- FIX: requiring index.js from same directory as source file produced invalid result.
- FIX: failed silently when there was no package.json in the root folder.
- FEATURE: Make the import aliases configurable.
- FIX: missing activation event.
- Make a command for requiring/importing and insert the reference at the cursor position.
- FIX: namespace consistency.
- Search deep inside node modules (limited to those that are specified in dependencies). Disabled per default.
- Improve the info given about each file.
- FIX: if trying to require the current file, show a warning instead of creating a broken reference.
- FIX: an issue where it would put the import line below other code.
- Import vs require is now auto-detected using the first occurence in the file. When there are no occurences, it will ask.
- If there is no line-break between the dependencies and the following code, one will be inserted.
- Changed logo
- Display module prominently, and move path to description
- Change the order of deps, and sort package / core modules