ChristianKohler / NpmIntellisense

Visual Studio Code plugin that autocompletes npm modules in import statements
MIT License
154 stars 43 forks source link

Snippet expansion support #37

Open ghost opened 7 years ago

ghost commented 7 years ago

Currently when I do snippets that have:

import moduleName from 'module'

or

import { } from 'module'

In the module section the quickpick for npm modules doesn't show up. Seems only to appear when I conduct quotes.

Refer to the JavaScript ES6 code snippets extension for acquiring and testing it out.

wolfhoundjesse commented 5 years ago

This used to work with my snippets, but now I have to press Ctr+Spacebar to initiate the lookup. For now I've changed my snippet to: "Import package": { "prefix": "impd", "body": [ "import { $2 } from '$1'$0" ], "description": "File name first, then package name" }

This allows me to throw my fingers at "impdTab'" to start the intellisense. It works, but it used to work with the quotes and semicolon scaffolded out as well.