@@ -103,7 +103,7 @@ export type EditorAutoClosingStrategy = 'always' | 'languageDefined' | 'beforeWh
103103/**
104104 * Configuration options for auto wrapping quotes and brackets
105105 */
106- export type EditorAutoWrappingStrategy = 'always' | 'quotes' | 'brackets' | 'never' ;
106+ export type EditorAutoSurroundStrategy = 'always' | 'quotes' | 'brackets' | 'never' ;
107107
108108/**
109109 * Configuration options for editor minimap
@@ -496,10 +496,10 @@ export interface IEditorOptions {
496496 */
497497 autoClosingQuotes ?: EditorAutoClosingStrategy ;
498498 /**
499- * Options for autowrapping .
500- * Defaults to always allowing autowrapping .
499+ * Options for auto surrounding .
500+ * Defaults to always allowing auto surrounding .
501501 */
502- autoWrapping ?: EditorAutoWrappingStrategy ;
502+ autoSurround ?: EditorAutoSurroundStrategy ;
503503 /**
504504 * Enable auto indentation adjustment.
505505 * Defaults to false.
@@ -1002,7 +1002,7 @@ export interface IValidatedEditorOptions {
10021002 readonly wordWrapBreakObtrusiveCharacters : string ;
10031003 readonly autoClosingBrackets : EditorAutoClosingStrategy ;
10041004 readonly autoClosingQuotes : EditorAutoClosingStrategy ;
1005- readonly autoWrapping : EditorAutoWrappingStrategy ;
1005+ readonly autoSurround : EditorAutoSurroundStrategy ;
10061006 readonly autoIndent : boolean ;
10071007 readonly dragAndDrop : boolean ;
10081008 readonly emptySelectionClipboard : boolean ;
@@ -1039,7 +1039,7 @@ export class InternalEditorOptions {
10391039 readonly wordSeparators : string ;
10401040 readonly autoClosingBrackets : EditorAutoClosingStrategy ;
10411041 readonly autoClosingQuotes : EditorAutoClosingStrategy ;
1042- readonly autoWrapping : EditorAutoWrappingStrategy ;
1042+ readonly autoSurround : EditorAutoSurroundStrategy ;
10431043 readonly autoIndent : boolean ;
10441044 readonly useTabStops : boolean ;
10451045 readonly tabFocusMode : boolean ;
@@ -1068,7 +1068,7 @@ export class InternalEditorOptions {
10681068 wordSeparators : string ;
10691069 autoClosingBrackets : EditorAutoClosingStrategy ;
10701070 autoClosingQuotes : EditorAutoClosingStrategy ;
1071- autoWrapping : EditorAutoWrappingStrategy ;
1071+ autoSurround : EditorAutoSurroundStrategy ;
10721072 autoIndent : boolean ;
10731073 useTabStops : boolean ;
10741074 tabFocusMode : boolean ;
@@ -1092,7 +1092,7 @@ export class InternalEditorOptions {
10921092 this . wordSeparators = source . wordSeparators ;
10931093 this . autoClosingBrackets = source . autoClosingBrackets ;
10941094 this . autoClosingQuotes = source . autoClosingQuotes ;
1095- this . autoWrapping = source . autoWrapping ;
1095+ this . autoSurround = source . autoSurround ;
10961096 this . autoIndent = source . autoIndent ;
10971097 this . useTabStops = source . useTabStops ;
10981098 this . tabFocusMode = source . tabFocusMode ;
@@ -1122,7 +1122,7 @@ export class InternalEditorOptions {
11221122 && this . wordSeparators === other . wordSeparators
11231123 && this . autoClosingBrackets === other . autoClosingBrackets
11241124 && this . autoClosingQuotes === other . autoClosingQuotes
1125- && this . autoWrapping === other . autoWrapping
1125+ && this . autoSurround === other . autoSurround
11261126 && this . autoIndent === other . autoIndent
11271127 && this . useTabStops === other . useTabStops
11281128 && this . tabFocusMode === other . tabFocusMode
@@ -1153,7 +1153,7 @@ export class InternalEditorOptions {
11531153 wordSeparators : ( this . wordSeparators !== newOpts . wordSeparators ) ,
11541154 autoClosingBrackets : ( this . autoClosingBrackets !== newOpts . autoClosingBrackets ) ,
11551155 autoClosingQuotes : ( this . autoClosingQuotes !== newOpts . autoClosingQuotes ) ,
1156- autoWrapping : ( this . autoWrapping !== newOpts . autoWrapping ) ,
1156+ autoSurround : ( this . autoSurround !== newOpts . autoSurround ) ,
11571157 autoIndent : ( this . autoIndent !== newOpts . autoIndent ) ,
11581158 useTabStops : ( this . useTabStops !== newOpts . useTabStops ) ,
11591159 tabFocusMode : ( this . tabFocusMode !== newOpts . tabFocusMode ) ,
@@ -1536,7 +1536,7 @@ export interface IConfigurationChangedEvent {
15361536 readonly wordSeparators : boolean ;
15371537 readonly autoClosingBrackets : boolean ;
15381538 readonly autoClosingQuotes : boolean ;
1539- readonly autoWrapping : boolean ;
1539+ readonly autoSurround : boolean ;
15401540 readonly autoIndent : boolean ;
15411541 readonly useTabStops : boolean ;
15421542 readonly tabFocusMode : boolean ;
@@ -1717,16 +1717,16 @@ export class EditorOptionsValidator {
17171717
17181718 let autoClosingBrackets : EditorAutoClosingStrategy ;
17191719 let autoClosingQuotes : EditorAutoClosingStrategy ;
1720- let autoWrapping : EditorAutoWrappingStrategy ;
1720+ let autoSurround : EditorAutoSurroundStrategy ;
17211721 if ( typeof opts . autoClosingBrackets === 'boolean' && opts . autoClosingBrackets === false ) {
17221722 // backwards compatibility: disable all on boolean false
17231723 autoClosingBrackets = 'never' ;
17241724 autoClosingQuotes = 'never' ;
1725- autoWrapping = 'never' ;
1725+ autoSurround = 'never' ;
17261726 } else {
17271727 autoClosingBrackets = _stringSet < EditorAutoClosingStrategy > ( opts . autoClosingBrackets , defaults . autoClosingBrackets , [ 'always' , 'languageDefined' , 'beforeWhitespace' , 'never' ] ) ;
17281728 autoClosingQuotes = _stringSet < EditorAutoClosingStrategy > ( opts . autoClosingQuotes , defaults . autoClosingQuotes , [ 'always' , 'languageDefined' , 'beforeWhitespace' , 'never' ] ) ;
1729- autoWrapping = _stringSet < EditorAutoWrappingStrategy > ( opts . autoWrapping , defaults . autoWrapping , [ 'always' , 'brackets' , 'quotes' , 'never' ] , ) ;
1729+ autoSurround = _stringSet < EditorAutoSurroundStrategy > ( opts . autoSurround , defaults . autoSurround , [ 'always' , 'brackets' , 'quotes' , 'never' ] , ) ;
17301730 }
17311731
17321732 return {
@@ -1747,7 +1747,7 @@ export class EditorOptionsValidator {
17471747 wordWrapBreakObtrusiveCharacters : _string ( opts . wordWrapBreakObtrusiveCharacters , defaults . wordWrapBreakObtrusiveCharacters ) ,
17481748 autoClosingBrackets,
17491749 autoClosingQuotes,
1750- autoWrapping ,
1750+ autoSurround ,
17511751 autoIndent : _boolean ( opts . autoIndent , defaults . autoIndent ) ,
17521752 dragAndDrop : _boolean ( opts . dragAndDrop , defaults . dragAndDrop ) ,
17531753 emptySelectionClipboard : _boolean ( opts . emptySelectionClipboard , defaults . emptySelectionClipboard ) ,
@@ -2030,7 +2030,7 @@ export class InternalEditorOptionsFactory {
20302030 wordWrapBreakObtrusiveCharacters : opts . wordWrapBreakObtrusiveCharacters ,
20312031 autoClosingBrackets : opts . autoClosingBrackets ,
20322032 autoClosingQuotes : opts . autoClosingQuotes ,
2033- autoWrapping : opts . autoWrapping ,
2033+ autoSurround : opts . autoSurround ,
20342034 autoIndent : opts . autoIndent ,
20352035 dragAndDrop : opts . dragAndDrop ,
20362036 emptySelectionClipboard : opts . emptySelectionClipboard ,
@@ -2253,7 +2253,7 @@ export class InternalEditorOptionsFactory {
22532253 wordSeparators : opts . wordSeparators ,
22542254 autoClosingBrackets : opts . autoClosingBrackets ,
22552255 autoClosingQuotes : opts . autoClosingQuotes ,
2256- autoWrapping : opts . autoWrapping ,
2256+ autoSurround : opts . autoSurround ,
22572257 autoIndent : opts . autoIndent ,
22582258 useTabStops : opts . useTabStops ,
22592259 tabFocusMode : opts . readOnly ? true : env . tabFocusMode ,
@@ -2488,7 +2488,7 @@ export const EDITOR_DEFAULTS: IValidatedEditorOptions = {
24882488 wordWrapBreakObtrusiveCharacters : '.' ,
24892489 autoClosingBrackets : 'languageDefined' ,
24902490 autoClosingQuotes : 'languageDefined' ,
2491- autoWrapping : 'always' ,
2491+ autoSurround : 'always' ,
24922492 autoIndent : true ,
24932493 dragAndDrop : true ,
24942494 emptySelectionClipboard : true ,
0 commit comments