change preferences.importModuleSpecifier default to auto

This commit is contained in:
Qiming Zhao 2020-04-10 18:50:14 +08:00
parent 22720dced6
commit 1d4e80edf8
2 changed files with 7 additions and 4 deletions

View file

@ -97,7 +97,7 @@ Checkout [using the configuration file](https://github.com/neoclide/coc.nvim/wik
- `typescript.updateImportsOnFileMove.enable`:Enable update imports on file move., default: `true` - `typescript.updateImportsOnFileMove.enable`:Enable update imports on file move., default: `true`
- `typescript.implementationsCodeLens.enable`:Enable codeLens for implementations, default: `true` - `typescript.implementationsCodeLens.enable`:Enable codeLens for implementations, default: `true`
- `typescript.referencesCodeLens.enable`:Enable codeLens for references, default: `true` - `typescript.referencesCodeLens.enable`:Enable codeLens for references, default: `true`
- `typescript.preferences.importModuleSpecifier` default: `"non-relative"` - `typescript.preferences.importModuleSpecifier` default: `"auto"`
- `typescript.preferences.quoteStyle` default: `"single"` - `typescript.preferences.quoteStyle` default: `"single"`
- `typescript.suggestionActions.enabled`:Enable/disable suggestion diagnostics for TypeScript files in the editor. Requires using TypeScript 2.8 or newer in the workspace., default: `true` - `typescript.suggestionActions.enabled`:Enable/disable suggestion diagnostics for TypeScript files in the editor. Requires using TypeScript 2.8 or newer in the workspace., default: `true`
- `typescript.validate.enable`:Enable/disable TypeScript validation., default: `true` - `typescript.validate.enable`:Enable/disable TypeScript validation., default: `true`
@ -128,7 +128,7 @@ Checkout [using the configuration file](https://github.com/neoclide/coc.nvim/wik
- `javascript.updateImportsOnFileMove.enable` default: `true` - `javascript.updateImportsOnFileMove.enable` default: `true`
- `javascript.implementationsCodeLens.enable` default: `true` - `javascript.implementationsCodeLens.enable` default: `true`
- `javascript.referencesCodeLens.enable` default: `true` - `javascript.referencesCodeLens.enable` default: `true`
- `javascript.preferences.importModuleSpecifier` default: `"non-relative"` - `javascript.preferences.importModuleSpecifier` default: `"auto"`
- `javascript.preferences.quoteStyle` default: `"single"` - `javascript.preferences.quoteStyle` default: `"single"`
- `javascript.validate.enable`: Enable/disable JavaScript validation., default: `true` - `javascript.validate.enable`: Enable/disable JavaScript validation., default: `true`
- `javascript.suggestionActions.enabled`: Enable/disable suggestion diagnostics for JavaScript files in the editor. Requires using TypeScript 2.8 or newer in the workspace., default: `true` - `javascript.suggestionActions.enabled`: Enable/disable suggestion diagnostics for JavaScript files in the editor. Requires using TypeScript 2.8 or newer in the workspace., default: `true`

View file

@ -228,7 +228,8 @@
}, },
"typescript.preferences.importModuleSpecifier": { "typescript.preferences.importModuleSpecifier": {
"type": "string", "type": "string",
"default": "non-relative", "default": "auto",
"description": "Preferred path style for auto imports.",
"enum": [ "enum": [
"non-relative", "non-relative",
"relative", "relative",
@ -374,8 +375,10 @@
}, },
"javascript.preferences.importModuleSpecifier": { "javascript.preferences.importModuleSpecifier": {
"type": "string", "type": "string",
"default": "non-relative", "default": "auto",
"description": "Preferred path style for auto imports.",
"enum": [ "enum": [
"auto",
"non-relative", "non-relative",
"relative" "relative"
] ]