Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
microsoft
GitHub Repository: microsoft/vscode
Path: blob/main/src/vs/editor/common/config/diffEditor.ts
3294 views
1
/*---------------------------------------------------------------------------------------------
2
* Copyright (c) Microsoft Corporation. All rights reserved.
3
* Licensed under the MIT License. See License.txt in the project root for license information.
4
*--------------------------------------------------------------------------------------------*/
5
6
import { ValidDiffEditorBaseOptions } from './editorOptions.js';
7
8
export const diffEditorDefaultOptions = {
9
enableSplitViewResizing: true,
10
splitViewDefaultRatio: 0.5,
11
renderSideBySide: true,
12
renderMarginRevertIcon: true,
13
renderGutterMenu: true,
14
maxComputationTime: 5000,
15
maxFileSize: 50,
16
ignoreTrimWhitespace: true,
17
renderIndicators: true,
18
originalEditable: false,
19
diffCodeLens: false,
20
renderOverviewRuler: true,
21
diffWordWrap: 'inherit',
22
diffAlgorithm: 'advanced',
23
accessibilityVerbose: false,
24
experimental: {
25
showMoves: false,
26
showEmptyDecorations: true,
27
useTrueInlineView: false,
28
},
29
hideUnchangedRegions: {
30
enabled: false,
31
contextLineCount: 3,
32
minimumLineCount: 3,
33
revealLineCount: 20,
34
},
35
isInEmbeddedEditor: false,
36
onlyShowAccessibleDiffViewer: false,
37
renderSideBySideInlineBreakpoint: 900,
38
useInlineViewWhenSpaceIsLimited: true,
39
compactMode: false,
40
} satisfies ValidDiffEditorBaseOptions;
41
42