vscode-extension-auto-import icon indicating copy to clipboard operation
vscode-extension-auto-import copied to clipboard

Combine exports from same modules with existing ones

Open jamesmfriedman opened this issue 7 years ago • 2 comments

So happy to find an auto-importer that actually works!

Imports should be combined with ones from existing modules.

Current Behavior, follow the numbered comments

import { Button, ListItem } from 'rmwc'; // (1) lets say I had these in a file already
import { Typography }  // (3) This line gets added

const Example = props => <Typography>Hi!</Typography> // (2) and then I auto-imported this

Expected Behavior

import { Button, ListItem, Typography } from 'rmwc'; // (2) and should end up on this line
const Example = props => <Typography>Hi!</Typography> // (1) This gets auto-imported

jamesmfriedman avatar Oct 24 '17 00:10 jamesmfriedman

+1

Coderah avatar Nov 13 '17 18:11 Coderah

+1

osya avatar May 21 '18 22:05 osya