@@ -151,53 +151,53 @@ const editorConfiguration: IConfigurationNode = {
151
151
} ,
152
152
'diffEditor.maxComputationTime' : {
153
153
type : 'number' ,
154
- default : 5000 ,
154
+ default : diffEditorDefaultOptions . maxComputationTime ,
155
155
description : nls . localize ( 'maxComputationTime' , "Timeout in milliseconds after which diff computation is cancelled. Use 0 for no timeout." )
156
156
} ,
157
157
'diffEditor.maxFileSize' : {
158
158
type : 'number' ,
159
- default : 50 ,
159
+ default : diffEditorDefaultOptions . maxFileSize ,
160
160
description : nls . localize ( 'maxFileSize' , "Maximum file size in MB for which to compute diffs. Use 0 for no limit." )
161
161
} ,
162
162
'diffEditor.renderSideBySide' : {
163
163
type : 'boolean' ,
164
- default : true ,
164
+ default : diffEditorDefaultOptions . renderSideBySide ,
165
165
description : nls . localize ( 'sideBySide' , "Controls whether the diff editor shows the diff side by side or inline." )
166
166
} ,
167
167
'diffEditor.renderSideBySideInlineBreakpoint' : {
168
168
type : 'number' ,
169
- default : true ,
169
+ default : diffEditorDefaultOptions . renderSideBySideInlineBreakpoint ,
170
170
description : nls . localize ( 'renderSideBySideInlineBreakpoint' , "If the diff editor width is smaller than this value, the inline view is used." )
171
171
} ,
172
172
'diffEditor.useInlineViewWhenSpaceIsLimited' : {
173
173
type : 'boolean' ,
174
- default : true ,
174
+ default : diffEditorDefaultOptions . useInlineViewWhenSpaceIsLimited ,
175
175
description : nls . localize ( 'useInlineViewWhenSpaceIsLimited' , "If enabled and the editor width is too small, the inline view is used." )
176
176
} ,
177
177
'diffEditor.renderMarginRevertIcon' : {
178
178
type : 'boolean' ,
179
- default : true ,
179
+ default : diffEditorDefaultOptions . renderMarginRevertIcon ,
180
180
description : nls . localize ( 'renderMarginRevertIcon' , "When enabled, the diff editor shows arrows in its glyph margin to revert changes." )
181
181
} ,
182
182
'diffEditor.ignoreTrimWhitespace' : {
183
183
type : 'boolean' ,
184
- default : true ,
184
+ default : diffEditorDefaultOptions . ignoreTrimWhitespace ,
185
185
description : nls . localize ( 'ignoreTrimWhitespace' , "When enabled, the diff editor ignores changes in leading or trailing whitespace." )
186
186
} ,
187
187
'diffEditor.renderIndicators' : {
188
188
type : 'boolean' ,
189
- default : true ,
189
+ default : diffEditorDefaultOptions . renderIndicators ,
190
190
description : nls . localize ( 'renderIndicators' , "Controls whether the diff editor shows +/- indicators for added/removed changes." )
191
191
} ,
192
192
'diffEditor.codeLens' : {
193
193
type : 'boolean' ,
194
- default : false ,
194
+ default : diffEditorDefaultOptions . diffCodeLens ,
195
195
description : nls . localize ( 'codeLens' , "Controls whether the editor shows CodeLens." )
196
196
} ,
197
197
'diffEditor.wordWrap' : {
198
198
type : 'string' ,
199
199
enum : [ 'off' , 'on' , 'inherit' ] ,
200
- default : 'inherit' ,
200
+ default : diffEditorDefaultOptions . diffWordWrap ,
201
201
markdownEnumDescriptions : [
202
202
nls . localize ( 'wordWrap.off' , "Lines will never wrap." ) ,
203
203
nls . localize ( 'wordWrap.on' , "Lines will wrap at the viewport width." ) ,
@@ -239,7 +239,7 @@ const editorConfiguration: IConfigurationNode = {
239
239
} ,
240
240
'diffEditor.experimental.showMoves' : {
241
241
type : 'boolean' ,
242
- default : false ,
242
+ default : diffEditorDefaultOptions . experimental . showMoves ,
243
243
markdownDescription : nls . localize ( 'showMoves' , "Controls whether the diff editor should show detected code moves. Only works when {0} is set." , '`#diffEditor.experimental.useVersion2#`' )
244
244
} ,
245
245
'diffEditor.experimental.useVersion2' : {
@@ -250,7 +250,7 @@ const editorConfiguration: IConfigurationNode = {
250
250
} ,
251
251
'diffEditor.experimental.showEmptyDecorations' : {
252
252
type : 'boolean' ,
253
- default : true ,
253
+ default : diffEditorDefaultOptions . experimental . showEmptyDecorations ,
254
254
description : nls . localize ( 'showEmptyDecorations' , "Controls whether the diff editor shows empty decorations to see where characters got inserted or deleted." ) ,
255
255
}
256
256
}
0 commit comments