From 1d4e80edf80f6444dc0adf1c13434894ac5cfa33 Mon Sep 17 00:00:00 2001 From: Qiming Zhao Date: Fri, 10 Apr 2020 18:50:14 +0800 Subject: [PATCH] change preferences.importModuleSpecifier default to auto --- Readme.md | 4 ++-- package.json | 7 +++++-- 2 files changed, 7 insertions(+), 4 deletions(-) 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" ]