提交 e27196db 编写于 作者: P Phil Price

Update setting section name

上级 b1b96196
......@@ -10,7 +10,9 @@ import ContentProvider from './contentProvider';
import Decorator from './mergeDecorator';
import * as interfaces from './interfaces';
const ConfigurationSectionName = 'git';
const ConfigurationSectionName = 'merge-conflict';
const FeatureEnabledProperty = 'enableEditorMerge';
const AlwaysEnableDecorations = true; // If true, merge-conflict.enableEditorMerge is ignored
export default class ServiceWrapper implements vscode.Disposable {
......@@ -49,11 +51,11 @@ export default class ServiceWrapper implements vscode.Disposable {
createExtensionConfiguration(): interfaces.IExtensionConfiguration {
const workspaceConfiguration = vscode.workspace.getConfiguration(ConfigurationSectionName);
const isEnabled: boolean = workspaceConfiguration.get('enableEditorMerge', true);
const isEnabled: boolean = workspaceConfiguration.get(FeatureEnabledProperty, true);
return {
enableCodeLens: isEnabled,
enableDecorations: isEnabled,
enableDecorations: AlwaysEnableDecorations || isEnabled,
enableEditorOverview: isEnabled
};
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册