Add 'disableSuggestions' to UserPreferences#23283
Conversation
|
@sheetalkamat If I comment out the new test, the failures in the other tsserverProjectSystem tests go away -- any idea how these are effecting each other? |
|
looking |
|
@Andy-MS this is i think because of https://github.com/Microsoft/TypeScript/blob/master/src/server/editorServices.ts#L1849 |
|
Ugh, every property in |
|
@sheetalkamat Good to go? |
| @@ -398,14 +398,14 @@ namespace ts.server { | |||
| if (!this.formatSettings) { | |||
| this.formatSettings = getDefaultFormatCodeSettings(this.host); | |||
There was a problem hiding this comment.
This function returns a copy, so it is ok to modify .. So no need to clone unlike defaultPreferences... I am not sure how many times we call these configure function to say if its ok to clone the object (esp with such a big set of properties)
| assign(this.formatSettings, formatSettings); | ||
| } | ||
| else { | ||
| this.formatSettings = mergeMapLikes(this.formatSettings, formatSettings); |
There was a problem hiding this comment.
is not this just:
this.formatSettings = { ... this.formatSettings, ...formatSettings};|
CC @mjbvz This should be added as a vscode setting. |
Fixes #23177