提交 fc877755 编写于 作者: M Marvin Heilemann

Rolled back changes to better see my changes (thanks to wrong configured prettier)

上级 256f2e09
......@@ -18,22 +18,12 @@ export const VS_HC_THEME = 'hc-black';
export const HC_THEME_ID = 'Default High Contrast';
export const COLOR_THEME_SETTING = 'workbench.colorTheme';
export const COLOR_THEME_DARK_SETTING = 'workbench.colorThemeDark';
export const COLOR_THEME_LIGHT_SETTING = 'workbench.colorThemeLight';
export const DETECT_AS_SETTING = 'workbench.colorThemeAutoSwitch';
export const WINDOW_MATCH_PREFERS_COLOR_SCHEME = '(prefers-color-scheme: dark)';
export const DETECT_HC_SETTING = 'window.autoDetectHighContrast';
export const ICON_THEME_SETTING = 'workbench.iconTheme';
export const CUSTOM_WORKBENCH_COLORS_SETTING = 'workbench.colorCustomizations';
export const CUSTOM_EDITOR_COLORS_SETTING = 'editor.tokenColorCustomizations';
export const CUSTOM_EDITOR_TOKENSTYLES_SETTING = 'editor.tokenColorCustomizationsExperimental';
export enum ColorScheme {
LIGHT = 'light',
DARK = 'dark',
NO_PREFERENCE = 'no-preference'
}
export interface IColorTheme extends ITheme {
readonly id: string;
readonly label: string;
......@@ -63,20 +53,13 @@ export interface IFileIconTheme extends IIconTheme {
export interface IWorkbenchThemeService extends IThemeService {
_serviceBrand: undefined;
setColorTheme(
themeId: string | undefined,
settingsTarget: ConfigurationTarget | undefined
): Promise<IColorTheme | null>;
setColorTheme(themeId: string | undefined, settingsTarget: ConfigurationTarget | undefined): Promise<IColorTheme | null>;
getColorTheme(): IColorTheme;
getColorThemes(): Promise<IColorTheme[]>;
getColorThemeData(colorThemeSetting: string): Promise<IColorTheme | null>;
onDidColorThemeChange: Event<IColorTheme>;
restoreColorTheme(): void;
setFileIconTheme(
iconThemeId: string | undefined,
settingsTarget: ConfigurationTarget | undefined
): Promise<IFileIconTheme>;
setFileIconTheme(iconThemeId: string | undefined, settingsTarget: ConfigurationTarget | undefined): Promise<IFileIconTheme>;
getFileIconTheme(): IFileIconTheme;
getFileIconThemes(): Promise<IFileIconTheme[]>;
onDidFileIconThemeChange: Event<IFileIconTheme>;
......@@ -87,12 +70,7 @@ export interface IColorCustomizations {
}
export interface ITokenColorCustomizations {
[groupIdOrThemeSettingsId: string]:
| string
| ITokenColorizationSetting
| ITokenColorCustomizations
| undefined
| ITextMateThemingRule[];
[groupIdOrThemeSettingsId: string]: string | ITokenColorizationSetting | ITokenColorCustomizations | undefined | ITextMateThemingRule[];
comments?: string | ITokenColorizationSetting;
strings?: string | ITokenColorizationSetting;
numbers?: string | ITokenColorizationSetting;
......@@ -104,11 +82,7 @@ export interface ITokenColorCustomizations {
}
export interface IExperimentalTokenStyleCustomizations {
[styleRuleOrThemeSettingsId: string]:
| string
| ITokenColorizationSetting
| IExperimentalTokenStyleCustomizations
| undefined;
[styleRuleOrThemeSettingsId: string]: string | ITokenColorizationSetting | IExperimentalTokenStyleCustomizations | undefined;
}
export interface ITextMateThemingRule {
......@@ -120,7 +94,7 @@ export interface ITextMateThemingRule {
export interface ITokenColorizationSetting {
foreground?: string;
background?: string;
fontStyle?: string /* [italic|underline|bold] */;
fontStyle?: string; /* [italic|underline|bold] */
}
export interface ExtensionData {
......@@ -137,4 +111,4 @@ export interface IThemeExtensionPoint {
path: string;
uiTheme?: typeof VS_LIGHT_THEME | typeof VS_DARK_THEME | typeof VS_HC_THEME;
_watch: boolean; // unsupported options to watch location
}
}
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册