Civet
Civet copied to clipboard
LSP: Auto import
The VSCode extension doesn't seem to suggest auto-imports at the moment. I rely on them heavily, and would love to see support for them.
And possibility to configure it, for example: import like this:
import { prop } from 'lib'
or like this:
{ prop } from 'lib'
and if it type only:
type { SomeType } from 'lib'
import type { SomeType } from 'lib'
import { type SomeType } from 'lib'
{ type SomeType } from 'lib'
or combined with type:
type { SomeType, someFunc } from 'lib'
import type { SomeType }, { someFunc } from 'lib'
import { type SomeType, someFunc } from 'lib'
{ type SomeType, someFunc } from 'lib'
Another vote for this from me . It seems that VSCode can spot a civet file but, ctrl + space
ing a reference doesn't add the import declaration at the top. When manually writing it there's a 'cannot find module' error annotation.