Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
d5897c06
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,发现更多精彩内容 >>
提交
d5897c06
编写于
12月 06, 2016
作者:
S
Sandeep Somavarapu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix #16529
上级
249ae129
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
16 addition
and
15 deletion
+16
-15
src/vs/workbench/parts/preferences/browser/media/copy.svg
src/vs/workbench/parts/preferences/browser/media/copy.svg
+0
-1
src/vs/workbench/parts/preferences/browser/media/copy_inverse.svg
...orkbench/parts/preferences/browser/media/copy_inverse.svg
+0
-1
src/vs/workbench/parts/preferences/browser/media/edit.svg
src/vs/workbench/parts/preferences/browser/media/edit.svg
+1
-0
src/vs/workbench/parts/preferences/browser/media/edit_inverse.svg
...orkbench/parts/preferences/browser/media/edit_inverse.svg
+1
-0
src/vs/workbench/parts/preferences/browser/media/preferences.css
...workbench/parts/preferences/browser/media/preferences.css
+2
-2
src/vs/workbench/parts/preferences/browser/preferencesEditor.ts
.../workbench/parts/preferences/browser/preferencesEditor.ts
+12
-11
未找到文件。
src/vs/workbench/parts/preferences/browser/media/copy.svg
已删除
100755 → 0
浏览文件 @
249ae129
<svg
xmlns=
"http://www.w3.org/2000/svg"
width=
"16"
height=
"16"
><style>
.icon-canvas-transparent{opacity:0;fill:#f6f6f6}.icon-vs-out{fill:#f6f6f6}.icon-vs-bg{fill:#424242}.icon-vs-fg{fill:#f0eff1}
</style><path
class=
"icon-canvas-transparent"
d=
"M16 16H0V0h16v16z"
id=
"canvas"
/><path
class=
"icon-vs-bg"
d=
"M11 11v-1h2V2H7v2H6V1h8v10h-3zm-1-6v10H2V5h8zM9 6H3v8h6V6z"
id=
"iconBg"
/></svg>
\ No newline at end of file
src/vs/workbench/parts/preferences/browser/media/copy_inverse.svg
已删除
100755 → 0
浏览文件 @
249ae129
<svg
xmlns=
"http://www.w3.org/2000/svg"
width=
"16"
height=
"16"
><style>
.icon-canvas-transparent{opacity:0;fill:#2d2d30}.icon-vs-out{fill:#2d2d30}.icon-vs-bg{fill:#c5c5c5}.icon-vs-fg{fill:#2b282e}
</style><path
class=
"icon-canvas-transparent"
d=
"M16 16H0V0h16v16z"
id=
"canvas"
/><path
class=
"icon-vs-bg"
d=
"M11 11v-1h2V2H7v2H6V1h8v10h-3zm-1-6v10H2V5h8zM9 6H3v8h6V6z"
id=
"iconBg"
/></svg>
\ No newline at end of file
src/vs/workbench/parts/preferences/browser/media/edit.svg
0 → 100755
浏览文件 @
d5897c06
<svg
xmlns=
"http://www.w3.org/2000/svg"
width=
"16"
height=
"16"
><style
type=
"text/css"
>
.icon-canvas-transparent{opacity:0;fill:#F6F6F6;} .icon-vs-out{fill:#F6F6F6;} .icon-vs-bg{fill:#424242;}
</style><path
class=
"icon-canvas-transparent"
d=
"M16 16h-16v-16h16v16z"
id=
"canvas"
/><path
class=
"icon-vs-out"
d=
"M16 4.28l-11.673 11.72h-4.327v-4.406l11.477-11.594h.308l4.215 4.237v.043z"
id=
"outline"
style=
"display: none;"
/><path
class=
"icon-vs-bg"
d=
"M14.598 4.25l-1.688 1.75-3-3 1.688-1.75 3 3zm-5.688-.25l-7 7 3 3 7-7-3-3zm-7.91 8.09v2.91h2.91l-2.91-2.91z"
id=
"iconBg"
/></svg>
\ No newline at end of file
src/vs/workbench/parts/preferences/browser/media/edit_inverse.svg
0 → 100755
浏览文件 @
d5897c06
<svg
xmlns=
"http://www.w3.org/2000/svg"
width=
"16"
height=
"16"
><style
type=
"text/css"
>
.icon-canvas-transparent{opacity:0;fill:#2d2d30;} .icon-vs-out{fill:#2d2d30;} .icon-vs-bg{fill:#c5c5c5;}
</style><path
class=
"icon-canvas-transparent"
d=
"M16 16h-16v-16h16v16z"
id=
"canvas"
/><path
class=
"icon-vs-out"
d=
"M16 4.28l-11.673 11.72h-4.327v-4.406l11.477-11.594h.308l4.215 4.237v.043z"
id=
"outline"
style=
"display: none;"
/><path
class=
"icon-vs-bg"
d=
"M14.598 4.25l-1.688 1.75-3-3 1.688-1.75 3 3zm-5.688-.25l-7 7 3 3 7-7-3-3zm-7.91 8.09v2.91h2.91l-2.91-2.91z"
id=
"iconBg"
/></svg>
\ No newline at end of file
src/vs/workbench/parts/preferences/browser/media/preferences.css
浏览文件 @
d5897c06
...
...
@@ -148,7 +148,7 @@
.monaco-editor
.view-line
:hover
:not
(
.inline-folded
)
.copySetting
:after
{
cursor
:
pointer
;
content
:
" "
;
background
:
url('
copy
.svg')
center
center
no-repeat
;
background
:
url('
edit
.svg')
center
center
no-repeat
;
margin-left
:
1em
;
display
:
inline-block
;
position
:
absolute
;
...
...
@@ -158,7 +158,7 @@
.monaco-editor.hc-black
.view-line
:hover
:not
(
.inline-folded
)
.copySetting
:after
,
.monaco-editor.vs-dark
.view-line
:hover
:not
(
.inline-folded
)
.copySetting
:after
{
background
:
url('
copy
_inverse.svg')
center
center
no-repeat
;
background
:
url('
edit
_inverse.svg')
center
center
no-repeat
;
}
.monaco-editor
.floating-click-widget
{
...
...
src/vs/workbench/parts/preferences/browser/preferencesEditor.ts
浏览文件 @
d5897c06
...
...
@@ -878,16 +878,12 @@ export class CopySettingActionRenderer extends Disposable {
if
(
setting
)
{
let
jsonSchema
:
IJSONSchema
=
this
.
getConfigurationsMap
()[
setting
.
key
];
const
actions
=
this
.
getActions
(
setting
,
jsonSchema
);
if
(
actions
)
{
let
elementPosition
=
DOM
.
getDomNodePagePosition
(
<
HTMLElement
>
e
.
target
.
element
);
const
anchor
=
{
x
:
elementPosition
.
left
,
y
:
elementPosition
.
top
+
elementPosition
.
height
+
10
};
this
.
contextMenuService
.
showContextMenu
({
getAnchor
:
()
=>
anchor
,
getActions
:
()
=>
TPromise
.
wrap
(
actions
)
});
return
;
}
this
.
settingsService
.
copyConfiguration
(
setting
);
let
elementPosition
=
DOM
.
getDomNodePagePosition
(
<
HTMLElement
>
e
.
target
.
element
);
const
anchor
=
{
x
:
elementPosition
.
left
,
y
:
elementPosition
.
top
+
elementPosition
.
height
+
10
};
this
.
contextMenuService
.
showContextMenu
({
getAnchor
:
()
=>
anchor
,
getActions
:
()
=>
TPromise
.
wrap
(
actions
)
});
}
}
...
...
@@ -930,7 +926,12 @@ export class CopySettingActionRenderer extends Disposable {
};
});
}
return
null
;
return
[
<
IAction
>
{
id
:
'
copyToSettings
'
,
label
:
nls
.
localize
(
'
copyToSettings
'
,
"
Copy to settings
"
),
enabled
:
true
,
run
:
()
=>
this
.
settingsService
.
copyConfiguration
(
setting
)
}];
}
public
dispose
()
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录