File tree Expand file tree Collapse file tree
src/vs/editor/common/config Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1954,11 +1954,18 @@ class EditorQuickSuggestions extends BaseEditorOption<EditorOption.quickSuggesti
19541954 }
19551955 if ( typeof _input === 'object' ) {
19561956 const input = _input as IQuickSuggestionsOptions ;
1957- return {
1957+ const opts = {
19581958 other : EditorBooleanOption . boolean ( input . other , this . defaultValue . other ) ,
19591959 comments : EditorBooleanOption . boolean ( input . comments , this . defaultValue . comments ) ,
19601960 strings : EditorBooleanOption . boolean ( input . strings , this . defaultValue . strings ) ,
19611961 } ;
1962+ if ( opts . other && opts . comments && opts . strings ) {
1963+ return true ; // all on
1964+ } else if ( ! opts . other && ! opts . comments && ! opts . strings ) {
1965+ return false ; // all off
1966+ } else {
1967+ return opts ;
1968+ }
19621969 }
19631970 return this . defaultValue ;
19641971 }
You can’t perform that action at this time.
0 commit comments