Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
366d85a4
V
vscode
项目概览
xxadev
/
vscode
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
V
vscode
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
366d85a4
编写于
10月 13, 2017
作者:
M
Martin Aeschlimann
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix use of notifyConfigurationSchemaUpdated
上级
fed4b741
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
9 addition
and
9 deletion
+9
-9
src/vs/workbench/services/themes/electron-browser/workbenchThemeService.ts
...services/themes/electron-browser/workbenchThemeService.ts
+9
-9
未找到文件。
src/vs/workbench/services/themes/electron-browser/workbenchThemeService.ts
浏览文件 @
366d85a4
...
...
@@ -13,11 +13,10 @@ import { IWorkbenchThemeService, IColorTheme, ITokenColorCustomizations, IFileIc
import
{
IStorageService
,
StorageScope
}
from
'
vs/platform/storage/common/storage
'
;
import
{
ITelemetryService
}
from
'
vs/platform/telemetry/common/telemetry
'
;
import
{
Registry
}
from
'
vs/platform/registry/common/platform
'
;
import
{
IJSONSchema
}
from
'
vs/base/common/jsonSchema
'
;
import
errors
=
require
(
'
vs/base/common/errors
'
);
import
{
IConfigurationEditingService
,
ConfigurationTarget
}
from
'
vs/workbench/services/configuration/common/configurationEditing
'
;
import
{
IConfigurationService
}
from
'
vs/platform/configuration/common/configuration
'
;
import
{
IConfigurationRegistry
,
Extensions
as
ConfigurationExtensions
}
from
'
vs/platform/configuration/common/configurationRegistry
'
;
import
{
IConfigurationRegistry
,
Extensions
as
ConfigurationExtensions
,
IConfigurationPropertySchema
,
IConfigurationNode
}
from
'
vs/platform/configuration/common/configurationRegistry
'
;
import
{
IEnvironmentService
}
from
'
vs/platform/environment/common/environment
'
;
import
{
IMessageService
}
from
'
vs/platform/message/common/message
'
;
import
{
IInstantiationService
}
from
'
vs/platform/instantiation/common/instantiation
'
;
...
...
@@ -151,12 +150,12 @@ export class WorkbenchThemeService implements IWorkbenchThemeService {
this
.
colorThemeStore
.
onDidChange
(
themes
=>
{
colorThemeSettingSchema
.
enum
=
themes
.
map
(
t
=>
t
.
settingsId
);
colorThemeSettingSchema
.
enumDescriptions
=
themes
.
map
(
t
=>
themeData
.
description
||
''
);
configurationRegistry
.
notifyConfigurationSchemaUpdated
(
colorThemeSettingSchema
);
configurationRegistry
.
notifyConfigurationSchemaUpdated
(
themeSettingsConfiguration
);
});
this
.
iconThemeStore
.
onDidChange
(
themes
=>
{
iconThemeSettingSchema
.
enum
=
[
null
,
...
themes
.
map
(
t
=>
t
.
settingsId
)];
iconThemeSettingSchema
.
enumDescriptions
=
[
iconThemeSettingSchema
.
enumDescriptions
[
0
],
...
themes
.
map
(
t
=>
themeData
.
description
||
''
)];
configurationRegistry
.
notifyConfigurationSchemaUpdated
(
iconThemeSettingSchema
);
configurationRegistry
.
notifyConfigurationSchemaUpdated
(
themeSettingsConfiguration
);
});
}
...
...
@@ -534,7 +533,7 @@ class ConfigurationWriter {
// Configuration: Themes
const
configurationRegistry
=
Registry
.
as
<
IConfigurationRegistry
>
(
ConfigurationExtensions
.
Configuration
);
const
colorThemeSettingSchema
:
I
JSON
Schema
=
{
const
colorThemeSettingSchema
:
I
ConfigurationProperty
Schema
=
{
type
:
'
string
'
,
description
:
nls
.
localize
(
'
colorTheme
'
,
"
Specifies the color theme used in the workbench.
"
),
default
:
DEFAULT_THEME_SETTING_VALUE
,
...
...
@@ -543,7 +542,7 @@ const colorThemeSettingSchema: IJSONSchema = {
errorMessage
:
nls
.
localize
(
'
colorThemeError
'
,
"
Theme is unknown or not installed.
"
),
};
const
iconThemeSettingSchema
:
I
JSON
Schema
=
{
const
iconThemeSettingSchema
:
I
ConfigurationProperty
Schema
=
{
type
:
[
'
string
'
,
'
null
'
],
default
:
DEFAULT_ICON_THEME_SETTING_VALUE
,
description
:
nls
.
localize
(
'
iconTheme
'
,
"
Specifies the icon theme used in the workbench or 'null' to not show any file icons.
"
),
...
...
@@ -551,7 +550,7 @@ const iconThemeSettingSchema: IJSONSchema = {
enumDescriptions
:
[
nls
.
localize
(
'
noIconThemeDesc
'
,
'
No file icons
'
)],
errorMessage
:
nls
.
localize
(
'
iconThemeError
'
,
"
File icon theme is unknown or not installed.
"
)
};
const
colorCustomizationsSchema
:
I
JSON
Schema
=
{
const
colorCustomizationsSchema
:
I
ConfigurationProperty
Schema
=
{
type
:
[
'
object
'
],
description
:
nls
.
localize
(
'
workbenchColors
'
,
"
Overrides colors from the currently selected color theme.
"
),
properties
:
colorThemeSchema
.
colorsSchema
.
properties
,
...
...
@@ -566,7 +565,7 @@ const colorCustomizationsSchema: IJSONSchema = {
}]
};
con
figurationRegistry
.
registerConfiguration
(
{
con
st
themeSettingsConfiguration
:
IConfigurationNode
=
{
id
:
'
workbench
'
,
order
:
7.1
,
type
:
'
object
'
,
...
...
@@ -575,7 +574,8 @@ configurationRegistry.registerConfiguration({
[
ICON_THEME_SETTING
]:
iconThemeSettingSchema
,
[
CUSTOM_WORKBENCH_COLORS_SETTING
]:
colorCustomizationsSchema
}
});
};
configurationRegistry
.
registerConfiguration
(
themeSettingsConfiguration
);
function
tokenGroupSettings
(
description
:
string
)
{
return
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录