mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-03-30 16:50:30 -04:00
32 lines
1.5 KiB
TypeScript
32 lines
1.5 KiB
TypeScript
/*---------------------------------------------------------------------------------------------
|
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
* Licensed under the Source EULA. See License.txt in the project root for license information.
|
|
*--------------------------------------------------------------------------------------------*/
|
|
|
|
import * as nls from 'vs/nls';
|
|
import { registerSingleton } from 'vs/platform/instantiation/common/extensions';
|
|
import { Registry } from 'vs/platform/registry/common/platform';
|
|
import 'vs/workbench/contrib/comments/browser/commentsEditorContribution';
|
|
import { ICommentService, CommentService } from 'vs/workbench/contrib/comments/browser/commentService';
|
|
import { IConfigurationRegistry, Extensions as ConfigurationExtensions } from 'vs/platform/configuration/common/configurationRegistry';
|
|
|
|
export interface ICommentsConfiguration {
|
|
openPanel: 'neverOpen' | 'openOnSessionStart' | 'openOnSessionStartWithComments';
|
|
}
|
|
|
|
Registry.as<IConfigurationRegistry>(ConfigurationExtensions.Configuration).registerConfiguration({
|
|
id: 'comments',
|
|
order: 20,
|
|
title: nls.localize('commentsConfigurationTitle', "Comments"),
|
|
type: 'object',
|
|
properties: {
|
|
'comments.openPanel': {
|
|
enum: ['neverOpen', 'openOnSessionStart', 'openOnSessionStartWithComments'],
|
|
default: 'openOnSessionStartWithComments',
|
|
description: nls.localize('openComments', "Controls when the comments panel should open.")
|
|
}
|
|
}
|
|
});
|
|
|
|
registerSingleton(ICommentService, CommentService);
|