File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
src/vs/editor/common/config Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -1954,11 +1954,18 @@ class EditorQuickSuggestions extends BaseEditorOption<EditorOption.quickSuggesti
1954
1954
}
1955
1955
if ( typeof _input === 'object' ) {
1956
1956
const input = _input as IQuickSuggestionsOptions ;
1957
- return {
1957
+ const opts = {
1958
1958
other : EditorBooleanOption . boolean ( input . other , this . defaultValue . other ) ,
1959
1959
comments : EditorBooleanOption . boolean ( input . comments , this . defaultValue . comments ) ,
1960
1960
strings : EditorBooleanOption . boolean ( input . strings , this . defaultValue . strings ) ,
1961
1961
} ;
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
+ }
1962
1969
}
1963
1970
return this . defaultValue ;
1964
1971
}
You can’t perform that action at this time.
0 commit comments