@@ -402,6 +402,10 @@ export interface IEditorOptions {
402402 * Enable snippet suggestions. Default to 'true'.
403403 */
404404 snippetSuggestions ?: 'top' | 'bottom' | 'inline' | 'none' ;
405+ /**
406+ * Copying without a selection copies the current line.
407+ */
408+ emptySelectionClipboard ?: boolean ;
405409 /**
406410 * Enable tab completion. Defaults to 'false'
407411 */
@@ -862,6 +866,7 @@ export class EditorContribOptions {
862866 readonly suggestOnTriggerCharacters : boolean ;
863867 readonly acceptSuggestionOnEnter : boolean ;
864868 readonly snippetSuggestions : 'top' | 'bottom' | 'inline' | 'none' ;
869+ readonly emptySelectionClipboard : boolean ;
865870 readonly tabCompletion : boolean ;
866871 readonly wordBasedSuggestions : boolean ;
867872 readonly suggestFontSize : number ;
@@ -885,6 +890,7 @@ export class EditorContribOptions {
885890 suggestOnTriggerCharacters : boolean ;
886891 acceptSuggestionOnEnter : boolean ;
887892 snippetSuggestions : 'top' | 'bottom' | 'inline' | 'none' ;
893+ emptySelectionClipboard : boolean ;
888894 tabCompletion : boolean ;
889895 wordBasedSuggestions : boolean ;
890896 suggestFontSize : number ;
@@ -904,6 +910,7 @@ export class EditorContribOptions {
904910 this . suggestOnTriggerCharacters = Boolean ( source . suggestOnTriggerCharacters ) ;
905911 this . acceptSuggestionOnEnter = Boolean ( source . acceptSuggestionOnEnter ) ;
906912 this . snippetSuggestions = source . snippetSuggestions ;
913+ this . emptySelectionClipboard = source . emptySelectionClipboard ;
907914 this . tabCompletion = source . tabCompletion ;
908915 this . wordBasedSuggestions = source . wordBasedSuggestions ;
909916 this . suggestFontSize = source . suggestFontSize ;
@@ -929,6 +936,7 @@ export class EditorContribOptions {
929936 && this . suggestOnTriggerCharacters === other . suggestOnTriggerCharacters
930937 && this . acceptSuggestionOnEnter === other . acceptSuggestionOnEnter
931938 && this . snippetSuggestions === other . snippetSuggestions
939+ && this . emptySelectionClipboard === other . emptySelectionClipboard
932940 && this . tabCompletion === other . tabCompletion
933941 && this . wordBasedSuggestions === other . wordBasedSuggestions
934942 && this . suggestFontSize === other . suggestFontSize
0 commit comments