diff --git a/Readme.md b/Readme.md index d5cbe5b..737d2f9 100644 --- a/Readme.md +++ b/Readme.md @@ -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.implementationsCodeLens.enable`:Enable codeLens for implementations, 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.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` @@ -128,7 +128,7 @@ Checkout [using the configuration file](https://github.com/neoclide/coc.nvim/wik - `javascript.updateImportsOnFileMove.enable` default: `true` - `javascript.implementationsCodeLens.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.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` diff --git a/package.json b/package.json index eb6a413..e61fe79 100644 --- a/package.json +++ b/package.json @@ -228,7 +228,8 @@ }, "typescript.preferences.importModuleSpecifier": { "type": "string", - "default": "non-relative", + "default": "auto", + "description": "Preferred path style for auto imports.", "enum": [ "non-relative", "relative", @@ -374,8 +375,10 @@ }, "javascript.preferences.importModuleSpecifier": { "type": "string", - "default": "non-relative", + "default": "auto", + "description": "Preferred path style for auto imports.", "enum": [ + "auto", "non-relative", "relative" ]