@@ -401,6 +401,10 @@ export interface IEditorOptions {
401401 * Enable snippet suggestions. Default to 'true'.
402402 */
403403 snippetSuggestions ?: 'top' | 'bottom' | 'inline' | 'none' ;
404+ /**
405+ * Copying without a selection copies the current line.
406+ */
407+ emptySelectionClipboard ?: boolean ;
404408 /**
405409 * Enable tab completion. Defaults to 'false'
406410 */
@@ -861,6 +865,7 @@ export class EditorContribOptions {
861865 readonly suggestOnTriggerCharacters : boolean ;
862866 readonly acceptSuggestionOnEnter : boolean ;
863867 readonly snippetSuggestions : 'top' | 'bottom' | 'inline' | 'none' ;
868+ readonly emptySelectionClipboard : boolean ;
864869 readonly tabCompletion : boolean ;
865870 readonly wordBasedSuggestions : boolean ;
866871 readonly suggestFontSize : number ;
@@ -884,6 +889,7 @@ export class EditorContribOptions {
884889 suggestOnTriggerCharacters : boolean ;
885890 acceptSuggestionOnEnter : boolean ;
886891 snippetSuggestions : 'top' | 'bottom' | 'inline' | 'none' ;
892+ emptySelectionClipboard : boolean ;
887893 tabCompletion : boolean ;
888894 wordBasedSuggestions : boolean ;
889895 suggestFontSize : number ;
@@ -903,6 +909,7 @@ export class EditorContribOptions {
903909 this . suggestOnTriggerCharacters = Boolean ( source . suggestOnTriggerCharacters ) ;
904910 this . acceptSuggestionOnEnter = Boolean ( source . acceptSuggestionOnEnter ) ;
905911 this . snippetSuggestions = source . snippetSuggestions ;
912+ this . emptySelectionClipboard = source . emptySelectionClipboard ;
906913 this . tabCompletion = source . tabCompletion ;
907914 this . wordBasedSuggestions = source . wordBasedSuggestions ;
908915 this . suggestFontSize = source . suggestFontSize ;
@@ -928,6 +935,7 @@ export class EditorContribOptions {
928935 && this . suggestOnTriggerCharacters === other . suggestOnTriggerCharacters
929936 && this . acceptSuggestionOnEnter === other . acceptSuggestionOnEnter
930937 && this . snippetSuggestions === other . snippetSuggestions
938+ && this . emptySelectionClipboard === other . emptySelectionClipboard
931939 && this . tabCompletion === other . tabCompletion
932940 && this . wordBasedSuggestions === other . wordBasedSuggestions
933941 && this . suggestFontSize === other . suggestFontSize
0 commit comments