SQL Operations Studio Public Preview 1 (0.23) release source code

This commit is contained in:
Karl Burtram
2017-11-09 14:30:27 -08:00
parent b88ecb8d93
commit 3cdac41339
8829 changed files with 759707 additions and 286 deletions

View File

@@ -0,0 +1,56 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the Source EULA. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
'use strict';
import Event, { Emitter } from 'vs/base/common/event';
import { IThemeService, ITheme, DARK } from 'vs/platform/theme/common/themeService';
import { Color } from 'vs/base/common/color';
export class TestTheme implements ITheme {
constructor(private colors: { [id: string]: string; } = {}, public type = DARK) {
}
getColor(color: string, useDefault?: boolean): Color {
let value = this.colors[color];
if (value) {
return Color.fromHex(value);
}
return void 0;
}
defines(color: string): boolean {
throw new Error('Method not implemented.');
}
}
export class TestThemeService implements IThemeService {
_serviceBrand: any;
_theme: ITheme;
_onThemeChange = new Emitter<ITheme>();
constructor(theme = new TestTheme()) {
this._theme = theme;
}
getTheme(): ITheme {
return this._theme;
}
setTheme(theme: ITheme) {
this._theme = theme;
this.fireThemeChange();
}
fireThemeChange() {
this._onThemeChange.fire(this._theme);
}
public get onThemeChange(): Event<ITheme> {
return this._onThemeChange.event;
}
}