ES6 module import improperly added to file on save #38541
Labels
javascript
JavaScript support issues
upstream
Issue identified as 'upstream' component related (exists outside of VS Code)
Steps to Reproduce:
#!/usr/bin/env node
in the first line (then some line breaks)ctrl-space
to trigger suggestionssetImmediate
option that auto-imports fromtimers
import { setImmediate } from "timers";
is prepended to the fileI don't work with ES6 modules, so I may be mistaken, but the import should come after the hashbang, no?
Edit: I'm likely not understanding how imports work, and selected the auto-import option by accident. How this happened I can't explain, since the "non-import" variety comes up first if suggested.
In any case, when I try to execute my file, my cursor turns into a plus-sign-crosshair and lets me drag-select a section of the screen... which is... weird behaviour.
The text was updated successfully, but these errors were encountered: