@@ -93,7 +93,7 @@ import { fillEditorsDragData } from 'vs/workbench/browser/dnd';
93
93
import { ElementsDragAndDropData } from 'vs/base/browser/ui/list/listView' ;
94
94
import { CodeDataTransfers } from 'vs/platform/dnd/browser/dnd' ;
95
95
import { FormatOnType } from 'vs/editor/contrib/format/browser/formatActions' ;
96
- import { EditorOption } from 'vs/editor/common/config/editorOptions' ;
96
+ import { EditorOption , EditorOptions , IRulerOption } from 'vs/editor/common/config/editorOptions' ;
97
97
import { IAsyncDataTreeViewState , ITreeCompressionDelegate } from 'vs/base/browser/ui/tree/asyncDataTree' ;
98
98
import { IUriIdentityService } from 'vs/platform/uriIdentity/common/uriIdentity' ;
99
99
import { EditOperation } from 'vs/editor/common/core/editOperation' ;
@@ -2142,7 +2142,8 @@ class SCMInputWidget {
2142
2142
overflowWidgetsDomNode,
2143
2143
formatOnType : true ,
2144
2144
renderWhitespace : 'none' ,
2145
- dropIntoEditor : { enabled : true }
2145
+ dropIntoEditor : { enabled : true } ,
2146
+ ...this . getInputEditorLanguageConfiguration ( ) ,
2146
2147
} ;
2147
2148
2148
2149
const codeEditorWidgetOptions : ICodeEditorWidgetOptions = {
@@ -2208,7 +2209,9 @@ class SCMInputWidget {
2208
2209
'editor.fontFamily' , // When `scm.inputFontFamily` is 'editor', we use it as an effective value
2209
2210
'scm.inputFontSize' ,
2210
2211
'editor.accessibilitySupport' ,
2211
- 'editor.cursorBlinking'
2212
+ 'editor.cursorBlinking' ,
2213
+ 'editor.rulers' ,
2214
+ 'editor.wordWrap'
2212
2215
] ;
2213
2216
2214
2217
const onRelevantSettingChanged = Event . filter (
@@ -2235,7 +2238,8 @@ class SCMInputWidget {
2235
2238
fontSize : fontSize ,
2236
2239
lineHeight : lineHeight ,
2237
2240
accessibilitySupport,
2238
- cursorBlinking
2241
+ cursorBlinking,
2242
+ ...this . getInputEditorLanguageConfiguration ( )
2239
2243
} ) ;
2240
2244
2241
2245
this . setPlaceholderFontStyles ( fontFamily , fontSize , lineHeight ) ;
@@ -2412,6 +2416,16 @@ class SCMInputWidget {
2412
2416
return this . configurationService . getValue < number > ( 'scm.inputFontSize' ) ;
2413
2417
}
2414
2418
2419
+ private getInputEditorLanguageConfiguration ( ) : { rulers : ( number | IRulerOption ) [ ] ; wordWrap : 'off' | 'on' | 'wordWrapColumn' | 'bounded' } {
2420
+ const rulers = this . configurationService . inspect ( 'editor.rulers' , { overrideIdentifier : 'scminput' } ) ;
2421
+ const wordWrap = this . configurationService . inspect ( 'editor.wordWrap' , { overrideIdentifier : 'scminput' } ) ;
2422
+
2423
+ return {
2424
+ rulers : rulers . overrideIdentifiers ?. includes ( 'scminput' ) ? EditorOptions . rulers . validate ( rulers . value ) : [ ] ,
2425
+ wordWrap : wordWrap . overrideIdentifiers ?. includes ( 'scminput' ) ? EditorOptions . wordWrap . validate ( wordWrap ) : 'on'
2426
+ } ;
2427
+ }
2428
+
2415
2429
private getToolbarWidth ( ) : number {
2416
2430
const showInputActionButton = this . configurationService . getValue < boolean > ( 'scm.showInputActionButton' ) ;
2417
2431
if ( ! this . toolbar || ! showInputActionButton || this . toolbar ?. isEmpty ( ) === true ) {
0 commit comments