Merge commit 'be3e8236086165e5e45a5a10783823874b3f3ebd' as 'lib/vscode'
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
import { createDecorator } from 'vs/platform/instantiation/common/instantiation';
|
||||
import { Event } from 'vs/base/common/event';
|
||||
|
||||
export const ITitleService = createDecorator<ITitleService>('titleService');
|
||||
|
||||
export interface ITitleProperties {
|
||||
isPure?: boolean;
|
||||
isAdmin?: boolean;
|
||||
prefix?: string;
|
||||
}
|
||||
|
||||
export interface ITitleService {
|
||||
|
||||
readonly _serviceBrand: undefined;
|
||||
|
||||
/**
|
||||
* An event when the menubar visibility changes.
|
||||
*/
|
||||
readonly onMenubarVisibilityChange: Event<boolean>;
|
||||
|
||||
/**
|
||||
* Update some environmental title properties.
|
||||
*/
|
||||
updateProperties(properties: ITitleProperties): void;
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
import { registerSingleton } from 'vs/platform/instantiation/common/extensions';
|
||||
import { TitlebarPart } from 'vs/workbench/electron-sandbox/parts/titlebar/titlebarPart';
|
||||
import { ITitleService } from 'vs/workbench/services/title/common/titleService';
|
||||
|
||||
registerSingleton(ITitleService, TitlebarPart);
|
||||
Reference in New Issue
Block a user