Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
76cbab0a
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,发现更多精彩内容 >>
提交
76cbab0a
编写于
1月 19, 2018
作者:
B
Benjamin Pasero
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
some polish and fixes
上级
f31ea9bb
变更
9
隐藏空白更改
内联
并排
Showing
9 changed file
with
132 addition
and
90 deletion
+132
-90
src/vs/code/electron-browser/issue/bootstrap.css
src/vs/code/electron-browser/issue/bootstrap.css
+0
-88
src/vs/code/electron-browser/issue/issueReporter.html
src/vs/code/electron-browser/issue/issueReporter.html
+1
-2
src/vs/code/electron-browser/issue/issueReporter.js
src/vs/code/electron-browser/issue/issueReporter.js
+27
-0
src/vs/code/electron-browser/issue/issueReporterMain.ts
src/vs/code/electron-browser/issue/issueReporterMain.ts
+3
-0
src/vs/code/electron-browser/issue/issueReporterModel.ts
src/vs/code/electron-browser/issue/issueReporterModel.ts
+2
-0
src/vs/code/electron-browser/issue/media/issueReporter.css
src/vs/code/electron-browser/issue/media/issueReporter.css
+84
-0
src/vs/code/electron-browser/issue/test/testReporterModel.test.ts
...ode/electron-browser/issue/test/testReporterModel.test.ts
+2
-0
src/vs/code/electron-main/main.ts
src/vs/code/electron-main/main.ts
+1
-0
tslint.json
tslint.json
+12
-0
未找到文件。
src/vs/code/electron-browser/issue/bootstrap.css
已删除
100644 → 0
浏览文件 @
f31ea9bb
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
/**
* Table
*/
table
{
width
:
100%
;
max-width
:
100%
;
margin-bottom
:
1rem
;
background-color
:
transparent
;
border-collapse
:
collapse
;
}
th
{
vertical-align
:
bottom
;
border-bottom
:
2px
solid
#e9ecef
;
padding
:
.75rem
;
border-top
:
1px
solid
#e9ecef
;
text-align
:
inherit
;
}
tr
:nth-of-type
(
even
)
{
background-color
:
rgba
(
0
,
0
,
0
,
.05
);
}
td
{
padding
:
.75rem
;
vertical-align
:
top
;
border-top
:
1px
solid
#e9ecef
;
}
/**
* Forms
*/
input
,
textarea
{
display
:
block
;
width
:
100%
;
padding
:
.375rem
.75rem
;
margin
:
0
;
font-size
:
1rem
;
line-height
:
1.5
;
color
:
#495057
;
background-color
:
#fff
;
border-radius
:
.25rem
;
border
:
1px
solid
#ced4da
;
}
textarea
{
overflow
:
auto
;
resize
:
vertical
;
}
small
{
color
:
#868e96
;
display
:
block
;
margin-top
:
.25rem
;
font-size
:
80%
;
font-weight
:
400
;
}
/**
* Button
*/
button
{
display
:
inline-block
;
font-weight
:
400
;
line-height
:
1.25
;
text-align
:
center
;
white-space
:
nowrap
;
vertical-align
:
middle
;
user-select
:
none
;
padding
:
.5rem
1rem
;
font-size
:
1rem
;
border-radius
:
.25rem
;
background
:
none
;
}
select
{
height
:
calc
(
2.25rem
+
2px
);
display
:
block
;
width
:
100%
;
padding
:
0.375rem
0.75rem
;
font-size
:
1rem
;
line-height
:
1.5
;
color
:
#495057
;
background-color
:
#fff
;
border-radius
:
0.25rem
;
border
:
none
;
}
src/vs/code/electron-browser/issue/issueReporter.html
浏览文件 @
76cbab0a
...
...
@@ -3,8 +3,7 @@
<html>
<head>
<meta
charset=
"utf-8"
/>
<link
rel=
"stylesheet"
href=
"bootstrap.css"
>
<link
rel=
"stylesheet"
href=
"issueReporter.css"
>
<meta
http-equiv=
"Content-Security-Policy"
content=
"default-src 'none'; img-src 'self' https: data:; media-src 'none'; child-src 'self'; object-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'; connect-src 'self' https:; font-src 'self' https:;"
>
</head>
<body>
<div
id=
"issue-reporter"
>
...
...
src/vs/code/electron-browser/issue/issueReporter.js
浏览文件 @
76cbab0a
...
...
@@ -3,7 +3,10 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
'
use strict
'
;
const
path
=
require
(
'
path
'
);
const
remote
=
require
(
'
electron
'
).
remote
;
function
parseURLQueryArgs
()
{
const
search
=
window
.
location
.
search
||
''
;
...
...
@@ -36,6 +39,30 @@ function uriFromPath(_path) {
function
main
()
{
const
args
=
parseURLQueryArgs
();
const
configuration
=
JSON
.
parse
(
args
[
'
config
'
]
||
'
{}
'
)
||
{};
const
extractKey
=
function
(
e
)
{
return
[
e
.
ctrlKey
?
'
ctrl-
'
:
''
,
e
.
metaKey
?
'
meta-
'
:
''
,
e
.
altKey
?
'
alt-
'
:
''
,
e
.
shiftKey
?
'
shift-
'
:
''
,
e
.
keyCode
].
join
(
''
);
};
const
TOGGLE_DEV_TOOLS_KB
=
(
process
.
platform
===
'
darwin
'
?
'
meta-alt-73
'
:
'
ctrl-shift-73
'
);
// mac: Cmd-Alt-I, rest: Ctrl-Shift-I
const
RELOAD_KB
=
(
process
.
platform
===
'
darwin
'
?
'
meta-82
'
:
'
ctrl-82
'
);
// mac: Cmd-R, rest: Ctrl-R
window
.
addEventListener
(
'
keydown
'
,
function
(
e
)
{
const
key
=
extractKey
(
e
);
if
(
key
===
TOGGLE_DEV_TOOLS_KB
)
{
remote
.
getCurrentWebContents
().
toggleDevTools
();
}
else
if
(
key
===
RELOAD_KB
)
{
remote
.
getCurrentWindow
().
reload
();
}
});
// Load the loader and start loading the workbench
const
rootUrl
=
uriFromPath
(
configuration
.
appRoot
)
+
'
/out
'
;
// In the bundled version the nls plugin is packaged with the loader so the NLS Plugins
...
...
src/vs/code/electron-browser/issue/issueReporterMain.ts
浏览文件 @
76cbab0a
...
...
@@ -3,6 +3,9 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
'
use strict
'
;
import
'
vs/css!./media/issueReporter
'
;
import
{
shell
,
ipcRenderer
,
webFrame
}
from
'
electron
'
;
import
{
$
}
from
'
vs/base/browser/dom
'
;
import
*
as
browser
from
'
vs/base/browser/browser
'
;
...
...
src/vs/code/electron-browser/issue/issueReporterModel.ts
浏览文件 @
76cbab0a
...
...
@@ -3,6 +3,8 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
'
use strict
'
;
import
{
assign
}
from
'
vs/base/common/objects
'
;
export
interface
IssueReporterData
{
...
...
src/vs/code/electron-browser/issue/issueReporter.css
→
src/vs/code/electron-browser/issue/
media/
issueReporter.css
浏览文件 @
76cbab0a
...
...
@@ -3,6 +3,90 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
/**
* Table
*/
table
{
width
:
100%
;
max-width
:
100%
;
margin-bottom
:
1rem
;
background-color
:
transparent
;
border-collapse
:
collapse
;
}
th
{
vertical-align
:
bottom
;
border-bottom
:
2px
solid
#e9ecef
;
padding
:
.75rem
;
border-top
:
1px
solid
#e9ecef
;
text-align
:
inherit
;
}
tr
:nth-of-type
(
even
)
{
background-color
:
rgba
(
0
,
0
,
0
,
.05
);
}
td
{
padding
:
.75rem
;
vertical-align
:
top
;
border-top
:
1px
solid
#e9ecef
;
}
/**
* Forms
*/
input
,
textarea
{
display
:
block
;
width
:
100%
;
padding
:
.375rem
.75rem
;
margin
:
0
;
font-size
:
1rem
;
line-height
:
1.5
;
color
:
#495057
;
background-color
:
#fff
;
border-radius
:
.25rem
;
border
:
1px
solid
#ced4da
;
}
textarea
{
overflow
:
auto
;
resize
:
vertical
;
}
small
{
color
:
#868e96
;
display
:
block
;
margin-top
:
.25rem
;
font-size
:
80%
;
font-weight
:
400
;
}
/**
* Button
*/
button
{
display
:
inline-block
;
font-weight
:
400
;
line-height
:
1.25
;
text-align
:
center
;
white-space
:
nowrap
;
vertical-align
:
middle
;
user-select
:
none
;
padding
:
.5rem
1rem
;
font-size
:
1rem
;
border-radius
:
.25rem
;
background
:
none
;
}
select
{
height
:
calc
(
2.25rem
+
2px
);
display
:
block
;
width
:
100%
;
padding
:
0.375rem
0.75rem
;
font-size
:
1rem
;
line-height
:
1.5
;
color
:
#495057
;
background-color
:
#fff
;
border-radius
:
0.25rem
;
border
:
none
;
}
*
{
box-sizing
:
border-box
;
}
...
...
src/vs/code/electron-browser/issue/test/testReporterModel.test.ts
浏览文件 @
76cbab0a
...
...
@@ -3,6 +3,8 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
'
use strict
'
;
import
*
as
assert
from
'
assert
'
;
import
{
IssueReporterModel
}
from
'
vs/code/electron-browser/issue/issueReporterModel
'
;
...
...
src/vs/code/electron-main/main.ts
浏览文件 @
76cbab0a
...
...
@@ -127,6 +127,7 @@ function setupIPC(accessor: ServicesAccessor): TPromise<Server> {
function
setup
(
retry
:
boolean
):
TPromise
<
Server
>
{
return
serve
(
environmentService
.
mainIPCHandle
).
then
(
server
=>
{
// Print --status usage info
if
(
environmentService
.
args
.
status
)
{
logService
.
warn
(
'
Warning: The --status argument can only be used if Code is already running. Please run it again after Code has started.
'
);
...
...
tslint.json
浏览文件 @
76cbab0a
...
...
@@ -398,6 +398,18 @@
"*"
//
node
modules
]
},
{
"target"
:
"**/vs/code/electron-browser/**"
,
"restrictions"
:
[
"vs/nls"
,
"vs/css!./**/*"
,
"vs/nls"
,
"**/vs/base/**"
,
"**/vs/platform/**"
,
"**/vs/code/**"
,
"*"
//
node
modules
]
},
{
"target"
:
"**/vs/code/**"
,
"restrictions"
:
[
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录