Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
掘金者说
vscode
提交
bb658ff1
V
vscode
项目概览
掘金者说
/
vscode
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
V
vscode
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
bb658ff1
编写于
9月 03, 2016
作者:
B
Benjamin Pasero
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
let => const
上级
955aa315
变更
10
展开全部
隐藏空白更改
内联
并排
Showing
10 changed file
with
190 addition
and
190 deletion
+190
-190
src/vs/code/electron-main/auto-updater.win32.ts
src/vs/code/electron-main/auto-updater.win32.ts
+1
-1
src/vs/code/electron-main/env.ts
src/vs/code/electron-main/env.ts
+4
-4
src/vs/code/electron-main/lifecycle.ts
src/vs/code/electron-main/lifecycle.ts
+4
-4
src/vs/code/electron-main/log.ts
src/vs/code/electron-main/log.ts
+1
-1
src/vs/code/electron-main/main.ts
src/vs/code/electron-main/main.ts
+1
-1
src/vs/code/electron-main/menus.ts
src/vs/code/electron-main/menus.ts
+116
-116
src/vs/code/electron-main/sharedProcess.ts
src/vs/code/electron-main/sharedProcess.ts
+1
-1
src/vs/code/electron-main/storage.ts
src/vs/code/electron-main/storage.ts
+2
-2
src/vs/code/electron-main/update-manager.ts
src/vs/code/electron-main/update-manager.ts
+1
-1
src/vs/code/electron-main/windows.ts
src/vs/code/electron-main/windows.ts
+59
-59
未找到文件。
src/vs/code/electron-main/auto-updater.win32.ts
浏览文件 @
bb658ff1
...
...
@@ -44,7 +44,7 @@ export class Win32AutoUpdaterImpl extends EventEmitter {
}
get
cachePath
():
TPromise
<
string
>
{
le
t
result
=
path
.
join
(
tmpdir
(),
'
vscode-update
'
);
cons
t
result
=
path
.
join
(
tmpdir
(),
'
vscode-update
'
);
return
new
TPromise
<
string
>
((
c
,
e
)
=>
mkdirp
(
result
,
null
,
err
=>
err
?
e
(
err
)
:
c
(
result
)));
}
...
...
src/vs/code/electron-main/env.ts
浏览文件 @
bb658ff1
...
...
@@ -91,7 +91,7 @@ export class EnvService implements IEnvService {
this
.
_appKeybindingsPath
=
path
.
join
(
this
.
_appSettingsHome
,
'
keybindings.json
'
);
// Remove the Electron executable
le
t
[,
...
args
]
=
process
.
argv
;
cons
t
[,
...
args
]
=
process
.
argv
;
// If dev, remove the first non-option argument: it's the app location
if
(
!
this
.
isBuilt
)
{
...
...
@@ -205,14 +205,14 @@ export interface IParsedPath {
}
export
function
parseLineAndColumnAware
(
rawPath
:
string
):
IParsedPath
{
le
t
segments
=
rawPath
.
split
(
'
:
'
);
// C:\file.txt:<line>:<column>
cons
t
segments
=
rawPath
.
split
(
'
:
'
);
// C:\file.txt:<line>:<column>
let
path
:
string
;
let
line
:
number
=
null
;
let
column
:
number
=
null
;
segments
.
forEach
(
segment
=>
{
le
t
segmentAsNumber
=
Number
(
segment
);
cons
t
segmentAsNumber
=
Number
(
segment
);
if
(
!
types
.
isNumber
(
segmentAsNumber
))
{
path
=
!!
path
?
[
path
,
segment
].
join
(
'
:
'
)
:
segment
;
// a colon can well be part of a path (e.g. C:\...)
}
else
if
(
line
===
null
)
{
...
...
@@ -234,7 +234,7 @@ export function parseLineAndColumnAware(rawPath: string): IParsedPath {
}
function
toLineAndColumnPath
(
parsedPath
:
IParsedPath
):
string
{
le
t
segments
=
[
parsedPath
.
path
];
cons
t
segments
=
[
parsedPath
.
path
];
if
(
types
.
isNumber
(
parsedPath
.
line
))
{
segments
.
push
(
String
(
parsedPath
.
line
));
...
...
src/vs/code/electron-main/lifecycle.ts
浏览文件 @
bb658ff1
...
...
@@ -119,7 +119,7 @@ export class LifecycleService implements ILifecycleService {
// Window Before Closing: Main -> Renderer
vscodeWindow
.
win
.
on
(
'
close
'
,
(
e
)
=>
{
le
t
windowId
=
vscodeWindow
.
id
;
cons
t
windowId
=
vscodeWindow
.
id
;
this
.
logService
.
log
(
'
Lifecycle#window-before-close
'
,
windowId
);
// The window already acknowledged to be closed
...
...
@@ -155,9 +155,9 @@ export class LifecycleService implements ILifecycleService {
this
.
logService
.
log
(
'
Lifecycle#unload()
'
,
vscodeWindow
.
id
);
return
new
TPromise
<
boolean
>
((
c
)
=>
{
le
t
oneTimeEventToken
=
this
.
oneTimeListenerTokenGenerator
++
;
le
t
oneTimeOkEvent
=
'
vscode:ok
'
+
oneTimeEventToken
;
le
t
oneTimeCancelEvent
=
'
vscode:cancel
'
+
oneTimeEventToken
;
cons
t
oneTimeEventToken
=
this
.
oneTimeListenerTokenGenerator
++
;
cons
t
oneTimeOkEvent
=
'
vscode:ok
'
+
oneTimeEventToken
;
cons
t
oneTimeCancelEvent
=
'
vscode:cancel
'
+
oneTimeEventToken
;
ipc
.
once
(
oneTimeOkEvent
,
()
=>
{
c
(
false
);
// no veto
...
...
src/vs/code/electron-main/log.ts
浏览文件 @
bb658ff1
...
...
@@ -19,7 +19,7 @@ export class MainLogService implements ILogService {
_serviceBrand
:
any
;
constructor
(
@
IEnvService
private
envService
:
IEnvService
)
{
constructor
(@
IEnvService
private
envService
:
IEnvService
)
{
}
log
(...
args
:
any
[]):
void
{
...
...
src/vs/code/electron-main/main.ts
浏览文件 @
bb658ff1
...
...
@@ -76,7 +76,7 @@ function main(accessor: ServicesAccessor, mainIpcServer: Server, userEnv: IProce
if
(
err
)
{
// take only the message and stack property
le
t
friendlyError
=
{
cons
t
friendlyError
=
{
message
:
err
.
message
,
stack
:
err
.
stack
};
...
...
src/vs/code/electron-main/menus.ts
浏览文件 @
bb658ff1
此差异已折叠。
点击以展开。
src/vs/code/electron-main/sharedProcess.ts
浏览文件 @
bb658ff1
...
...
@@ -26,7 +26,7 @@ function _spawnSharedProcess(options: ISharedProcessOptions): cp.ChildProcess {
}
if
(
options
.
debugPort
)
{
execArgv
.
push
(
`--debug=
${
options
.
debugPort
}
`
);
execArgv
.
push
(
`--debug=
${
options
.
debugPort
}
`
);
}
const
result
=
cp
.
fork
(
boostrapPath
,
[
'
--type=SharedProcess
'
],
{
env
,
execArgv
});
...
...
src/vs/code/electron-main/storage.ts
浏览文件 @
bb658ff1
...
...
@@ -68,7 +68,7 @@ export class StorageService implements IStorageService {
}
}
le
t
oldValue
=
this
.
database
[
key
];
cons
t
oldValue
=
this
.
database
[
key
];
this
.
database
[
key
]
=
data
;
this
.
save
();
...
...
@@ -81,7 +81,7 @@ export class StorageService implements IStorageService {
}
if
(
this
.
database
[
key
])
{
le
t
oldValue
=
this
.
database
[
key
];
cons
t
oldValue
=
this
.
database
[
key
];
delete
this
.
database
[
key
];
this
.
save
();
...
...
src/vs/code/electron-main/update-manager.ts
浏览文件 @
bb658ff1
...
...
@@ -131,7 +131,7 @@ export class UpdateManager extends EventEmitter implements IUpdateService {
});
this
.
raw
.
on
(
'
update-downloaded
'
,
(
event
:
any
,
releaseNotes
:
string
,
version
:
string
,
date
:
Date
,
url
:
string
,
rawQuitAndUpdate
:
()
=>
void
)
=>
{
le
t
data
:
IUpdate
=
{
cons
t
data
:
IUpdate
=
{
releaseNotes
:
releaseNotes
,
version
:
version
,
date
:
date
,
...
...
src/vs/code/electron-main/windows.ts
浏览文件 @
bb658ff1
此差异已折叠。
点击以展开。
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录