soates / Auto-Import

vscode extension that will automatically finds, parses and provides code actions for all available imports. Only currently works with files in your folder and TypeScript.
MIT License
164 stars 62 forks source link

Setting useSemiColon does not work #82

Closed franky47 closed 6 years ago

franky47 commented 6 years ago

Context

What I did Added this in VSCode global settings

{
  "autoimport.useSemiColon": false
}

Expected Imports without semicolon at the end of the line. Example:

import { Foo } from 'foo'

const foo = new Foo() // Auto-imported when typing Foo

Actual result Imports still have a semicolon at the end of the line.

import { Foo } from 'foo';

const foo = new Foo() // Auto-imported when typing Foo
franky47 commented 6 years ago

autoimport-semicolon

franky47 commented 6 years ago

Nevermind, turns out I had "typescript.autoImportSuggestions.enabled": true still set, which overrides AutoImport (and has non-configurable semicolons by default).

Now AutoImport on its own does not work, but since this project seems abandoned, I'll go with TS's semicolons.