diff --git a/Readme.md b/Readme.md index 00d1483..b2a2696 100644 --- a/Readme.md +++ b/Readme.md @@ -126,7 +126,7 @@ for guide of coc.nvim's configuration. - `tsserver.implicitProjectConfig.experimentalDecorators`:Enable experimentalDecorators for implicit project, default: `false` - `tsserver.disableAutomaticTypeAcquisition`:Disable download of typings, - default: `false` + default: `true` - `tsserver.useBatchedBufferSync`: use batched buffer synchronize support. - `typescript.updateImportsOnFileMove.enable`:Enable update imports on file move., default: `true` diff --git a/package.json b/package.json index 0fa5b64..103bd80 100644 --- a/package.json +++ b/package.json @@ -252,7 +252,7 @@ }, "tsserver.disableAutomaticTypeAcquisition": { "type": "boolean", - "default": false, + "default": true, "description": "Disable download of typings" }, "tsserver.useBatchedBufferSync": { diff --git a/src/server/utils/configuration.ts b/src/server/utils/configuration.ts index 7ee4c21..c23682b 100644 --- a/src/server/utils/configuration.ts +++ b/src/server/utils/configuration.ts @@ -86,7 +86,7 @@ export class TypeScriptServiceConfiguration { } public get disableAutomaticTypeAcquisition(): boolean { - return this._configuration.get('disableAutomaticTypeAcquisition', false) + return this._configuration.get('disableAutomaticTypeAcquisition', true) } public get formatOnType(): boolean {