@codingame/monaco-vscode-extensions-service-override
Version:
VSCode public API plugged on the monaco editor - extensions service-override
25 lines (22 loc) • 1.1 kB
JavaScript
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6.js';
import { ExtHostContext, MainContext } from 'vscode/vscode/vs/workbench/api/common/extHost.protocol';
import { extHostNamedCustomer } from '../../services/extensions/common/extHostCustomers.js';
import { IThemeService } from 'vscode/vscode/vs/platform/theme/common/themeService.service';
let MainThreadTheming = class MainThreadTheming {
constructor(extHostContext, themeService) {
this._themeService = themeService;
this._proxy = ( extHostContext.getProxy(ExtHostContext.ExtHostTheming));
this._themeChangeListener = this._themeService.onDidColorThemeChange(e => {
this._proxy.$onColorThemeChange(this._themeService.getColorTheme().type);
});
this._proxy.$onColorThemeChange(this._themeService.getColorTheme().type);
}
dispose() {
this._themeChangeListener.dispose();
}
};
MainThreadTheming = __decorate([
extHostNamedCustomer(MainContext.MainThreadTheming),
( __param(1, IThemeService))
], MainThreadTheming);
export { MainThreadTheming };