Add setting to disable all path based sugestions in js/ts

The new  `javascript.suggest.paths` and `typescript.suggest.paths` settings replace `typescript.quickSuggestionsForPaths`. These settings should disable all path based suggestions from js/ts

The old `quickSuggestionsForPath` setting is now marked deprecated and is not being migrated to these new settings as it has different semantics. It was originally designed just to disable quick suggestions for paths but it does not work properly when using TypeScript 2.9+
This commit is contained in:
Matt Bierner
2018-09-10 14:29:09 -07:00
parent 72581dfca9
commit ae7035dbbf
3 changed files with 21 additions and 11 deletions

View File

@@ -397,6 +397,19 @@
"type": "boolean",
"default": true,
"description": "%typescript.quickSuggestionsForPaths%",
"scope": "resource",
"deprecationMessage": "%typescript.quickSuggestionsForPaths.deprecationMessage%"
},
"javascript.suggest.paths": {
"type": "boolean",
"default": true,
"description": "%configuration.suggest.paths%",
"scope": "resource"
},
"typescript.suggest.paths": {
"type": "boolean",
"default": true,
"description": "%configuration.suggest.paths%",
"scope": "resource"
},
"typescript.autoImportSuggestions.enabled": {