|
|
@ -319,207 +319,12 @@ export interface IConfig { |
|
|
|
advanced: IAdvancedConfig; |
|
|
|
} |
|
|
|
|
|
|
|
const emptyConfig: IConfig = { |
|
|
|
annotations: { |
|
|
|
file: { |
|
|
|
gutter: { |
|
|
|
format: '', |
|
|
|
dateFormat: null, |
|
|
|
compact: false, |
|
|
|
heatmap: { |
|
|
|
enabled: false, |
|
|
|
location: 'left' |
|
|
|
}, |
|
|
|
hover: { |
|
|
|
details: false, |
|
|
|
changes: false, |
|
|
|
wholeLine: false |
|
|
|
}, |
|
|
|
separateLines: false |
|
|
|
}, |
|
|
|
hover: { |
|
|
|
details: false, |
|
|
|
changes: false, |
|
|
|
heatmap: { |
|
|
|
enabled: false |
|
|
|
} |
|
|
|
}, |
|
|
|
recentChanges: { |
|
|
|
hover: { |
|
|
|
details: false, |
|
|
|
changes: false |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
line: { |
|
|
|
hover: { |
|
|
|
details: false, |
|
|
|
changes: false |
|
|
|
}, |
|
|
|
trailing: { |
|
|
|
format: '', |
|
|
|
dateFormat: null, |
|
|
|
hover: { |
|
|
|
details: false, |
|
|
|
changes: false, |
|
|
|
wholeLine: false |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
blame: { |
|
|
|
ignoreWhitespace: false, |
|
|
|
file: { |
|
|
|
annotationType: 'gutter' as FileAnnotationType, |
|
|
|
lineHighlight: { |
|
|
|
enabled: false, |
|
|
|
locations: [] |
|
|
|
} |
|
|
|
}, |
|
|
|
line: { |
|
|
|
enabled: false, |
|
|
|
annotationType: 'trailing' as LineAnnotationType |
|
|
|
} |
|
|
|
}, |
|
|
|
recentChanges: { |
|
|
|
file: { |
|
|
|
lineHighlight: { |
|
|
|
locations: [] |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
codeLens: { |
|
|
|
enabled: false, |
|
|
|
recentChange: { |
|
|
|
enabled: false, |
|
|
|
command: CodeLensCommand.DiffWithPrevious |
|
|
|
}, |
|
|
|
authors: { |
|
|
|
enabled: false, |
|
|
|
command: CodeLensCommand.DiffWithPrevious |
|
|
|
}, |
|
|
|
locations: [], |
|
|
|
customLocationSymbols: [], |
|
|
|
perLanguageLocations: [], |
|
|
|
debug: false |
|
|
|
}, |
|
|
|
defaultDateFormat: null, |
|
|
|
defaultDateStyle: 'relative' as DateStyle, |
|
|
|
gitExplorer: { |
|
|
|
autoRefresh: false, |
|
|
|
enabled: false, |
|
|
|
files: { |
|
|
|
layout: ExplorerFilesLayout.Auto, |
|
|
|
compact: false, |
|
|
|
threshold: 0 |
|
|
|
}, |
|
|
|
commitFormat: '', |
|
|
|
commitFileFormat: '', |
|
|
|
// dateFormat: string | null;
|
|
|
|
gravatars: false, |
|
|
|
gravatarsDefault: 'robohash' as GravatarDefault, |
|
|
|
includeWorkingTree: false, |
|
|
|
showTrackingBranch: false, |
|
|
|
stashFormat: '', |
|
|
|
stashFileFormat: '', |
|
|
|
statusFileFormat: '', |
|
|
|
view: GitExplorerView.Auto |
|
|
|
}, |
|
|
|
keymap: 'standard' as KeyMap, |
|
|
|
remotes: [], |
|
|
|
resultsExplorer: { |
|
|
|
files: { |
|
|
|
layout: ExplorerFilesLayout.Auto, |
|
|
|
compact: false, |
|
|
|
threshold: 0 |
|
|
|
}, |
|
|
|
commitFormat: '', |
|
|
|
commitFileFormat: '', |
|
|
|
// dateFormat: string | null;
|
|
|
|
gravatars: false, |
|
|
|
gravatarsDefault: 'robohash' as GravatarDefault, |
|
|
|
showTrackingBranch: false, |
|
|
|
stashFormat: '', |
|
|
|
stashFileFormat: '', |
|
|
|
statusFileFormat: '' |
|
|
|
}, |
|
|
|
statusBar: { |
|
|
|
enabled: false, |
|
|
|
alignment: 'left', |
|
|
|
command: StatusBarCommand.DiffWithPrevious, |
|
|
|
format: '', |
|
|
|
dateFormat: null |
|
|
|
}, |
|
|
|
strings: { |
|
|
|
codeLens: { |
|
|
|
unsavedChanges: { |
|
|
|
recentChangeAndAuthors: '', |
|
|
|
recentChangeOnly: '', |
|
|
|
authorsOnly: '' |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
debug: false, |
|
|
|
insiders: false, |
|
|
|
outputLevel: 'verbose' as OutputLevel, |
|
|
|
advanced: { |
|
|
|
blame: { |
|
|
|
delayAfterEdit: 0, |
|
|
|
sizeThresholdAfterEdit: 0 |
|
|
|
}, |
|
|
|
caching: { |
|
|
|
enabled: false |
|
|
|
}, |
|
|
|
git: '', |
|
|
|
maxListItems: 0, |
|
|
|
menus: { |
|
|
|
explorerContext: { |
|
|
|
fileDiff: false, |
|
|
|
history: false, |
|
|
|
remote: false |
|
|
|
}, |
|
|
|
editorContext: { |
|
|
|
blame: false, |
|
|
|
copy: false, |
|
|
|
details: false, |
|
|
|
fileDiff: false, |
|
|
|
history: false, |
|
|
|
lineDiff: false, |
|
|
|
remote: false |
|
|
|
}, |
|
|
|
editorTitle: { |
|
|
|
blame: false, |
|
|
|
fileDiff: false, |
|
|
|
history: false, |
|
|
|
status: false |
|
|
|
}, |
|
|
|
editorTitleContext: { |
|
|
|
blame: false, |
|
|
|
fileDiff: false, |
|
|
|
history: false, |
|
|
|
remote: false |
|
|
|
} |
|
|
|
}, |
|
|
|
messages: { |
|
|
|
suppressCommitHasNoPreviousCommitWarning: false, |
|
|
|
suppressCommitNotFoundWarning: false, |
|
|
|
suppressFileNotUnderSourceControlWarning: false, |
|
|
|
suppressGitVersionWarning: false, |
|
|
|
suppressLineUncommittedWarning: false, |
|
|
|
suppressNoRepositoryWarning: false, |
|
|
|
suppressResultsExplorerNotice: false, |
|
|
|
suppressUpdateNotice: false, |
|
|
|
suppressWelcomeNotice: false |
|
|
|
}, |
|
|
|
quickPick: { |
|
|
|
closeOnFocusOut: false |
|
|
|
}, |
|
|
|
repositorySearchDepth: 0, |
|
|
|
telemetry: { |
|
|
|
enabled: false |
|
|
|
} |
|
|
|
const emptyObj = {}; |
|
|
|
const emptyConfig = new Proxy<IConfig>(emptyObj as IConfig, { |
|
|
|
get(target, propKey, receiver) { |
|
|
|
return emptyObj; |
|
|
|
} |
|
|
|
}; |
|
|
|
}); |
|
|
|
|
|
|
|
export class Configuration { |
|
|
|
|
|
|
|