@@ -33,6 +33,7 @@ import { registerColor, editorWidgetBackground, listFocusBackground, activeContr
3333import { IStorageService , StorageScope } from 'vs/platform/storage/common/storage' ;
3434
3535const sticky = false ; // for development purposes
36+ const expandSuggestionDocsByDefault = false ;
3637
3738interface ISuggestionTemplateData {
3839 root : HTMLElement ;
@@ -560,7 +561,7 @@ export class SuggestWidget implements IContentWidget, IDelegate<ICompletionItem>
560561 this . list . setFocus ( [ index ] ) ;
561562 this . list . reveal ( index ) ;
562563
563- if ( this . storageService . getBoolean ( 'expandSuggestionDocs' , StorageScope . GLOBAL , false ) ) {
564+ if ( this . storageService . getBoolean ( 'expandSuggestionDocs' , StorageScope . GLOBAL , expandSuggestionDocsByDefault ) ) {
564565 this . showDetails ( ) ;
565566
566567 this . _ariaAlert ( this . details . getAriaLabel ( ) ) ;
@@ -609,7 +610,7 @@ export class SuggestWidget implements IContentWidget, IDelegate<ICompletionItem>
609610 case State . Open :
610611 hide ( this . messageElement ) ;
611612 show ( this . listElement ) ;
612- if ( this . storageService . getBoolean ( 'expandSuggestionDocs' , StorageScope . GLOBAL , false ) ) {
613+ if ( this . storageService . getBoolean ( 'expandSuggestionDocs' , StorageScope . GLOBAL , expandSuggestionDocsByDefault ) ) {
613614 show ( this . details . element ) ;
614615 this . expandSideOrBelow ( ) ;
615616 } else {
@@ -797,7 +798,7 @@ export class SuggestWidget implements IContentWidget, IDelegate<ICompletionItem>
797798 this . details . element . style . borderColor = this . detailsBorderColor ;
798799 }
799800 } else if ( this . state === State . Open
800- && this . storageService . getBoolean ( 'expandSuggestionDocs' , StorageScope . GLOBAL , false ) ) {
801+ && this . storageService . getBoolean ( 'expandSuggestionDocs' , StorageScope . GLOBAL , expandSuggestionDocsByDefault ) ) {
801802 this . setState ( State . Details ) ;
802803 if ( this . detailsFocusBorderColor ) {
803804 this . details . element . style . borderColor = this . detailsFocusBorderColor ;
@@ -807,7 +808,7 @@ export class SuggestWidget implements IContentWidget, IDelegate<ICompletionItem>
807808
808809 toggleDetails ( ) : void {
809810
810- if ( this . storageService . getBoolean ( 'expandSuggestionDocs' , StorageScope . GLOBAL , false ) ) {
811+ if ( this . storageService . getBoolean ( 'expandSuggestionDocs' , StorageScope . GLOBAL , expandSuggestionDocsByDefault ) ) {
811812 this . storageService . store ( 'expandSuggestionDocs' , false , StorageScope . GLOBAL ) ;
812813 hide ( this . details . element ) ;
813814 removeClass ( this . element , 'docs-side' ) ;
0 commit comments