Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
58aca31e
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,体验更适合开发者的 AI 搜索 >>
提交
58aca31e
编写于
11月 09, 2017
作者:
M
Matt Bierner
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix implicit any errors
上级
03c3dc5c
变更
12
隐藏空白更改
内联
并排
Showing
12 changed file
with
18 addition
and
18 deletion
+18
-18
src/vs/base/common/worker/simpleWorker.ts
src/vs/base/common/worker/simpleWorker.ts
+1
-1
src/vs/base/node/config.ts
src/vs/base/node/config.ts
+2
-2
src/vs/code/electron-browser/sharedProcessMain.ts
src/vs/code/electron-browser/sharedProcessMain.ts
+1
-1
src/vs/code/electron-main/app.ts
src/vs/code/electron-main/app.ts
+5
-5
src/vs/code/electron-main/menus.ts
src/vs/code/electron-main/menus.ts
+1
-1
src/vs/code/electron-main/sharedProcess.ts
src/vs/code/electron-main/sharedProcess.ts
+1
-1
src/vs/code/electron-main/window.ts
src/vs/code/electron-main/window.ts
+2
-2
src/vs/code/electron-main/windows.ts
src/vs/code/electron-main/windows.ts
+1
-1
src/vs/editor/editor.main.ts
src/vs/editor/editor.main.ts
+1
-1
src/vs/workbench/browser/composite.ts
src/vs/workbench/browser/composite.ts
+1
-1
src/vs/workbench/electron-browser/actions.ts
src/vs/workbench/electron-browser/actions.ts
+1
-1
src/vs/workbench/parts/preferences/browser/preferencesRenderers.ts
...rkbench/parts/preferences/browser/preferencesRenderers.ts
+1
-1
未找到文件。
src/vs/base/common/worker/simpleWorker.ts
浏览文件 @
58aca31e
...
...
@@ -244,7 +244,7 @@ export class SimpleWorkerClient<T> extends Disposable {
this
.
_onModuleLoaded
.
then
((
availableMethods
:
string
[])
=>
{
let
proxy
=
<
T
>
{};
for
(
let
i
=
0
;
i
<
availableMethods
.
length
;
i
++
)
{
proxy
[
availableMethods
[
i
]]
=
createProxyMethod
(
availableMethods
[
i
],
proxyMethodRequest
);
(
proxy
as
any
)
[
availableMethods
[
i
]]
=
createProxyMethod
(
availableMethods
[
i
],
proxyMethodRequest
);
}
lazyProxyFulfill
(
proxy
);
},
(
e
)
=>
{
...
...
src/vs/base/node/config.ts
浏览文件 @
58aca31e
...
...
@@ -153,7 +153,7 @@ export class ConfigWatcher<T> implements IConfigWatcher<T>, IDisposable {
try
{
const
watcher
=
extfs
.
watch
(
path
,
(
type
,
file
)
=>
this
.
onConfigFileChange
(
type
,
file
,
isParentFolder
));
watcher
.
on
(
'
error
'
,
(
code
,
signal
)
=>
this
.
options
.
onError
(
`Error watching
${
path
}
for configuration changes (
${
code
}
,
${
signal
}
)`
));
watcher
.
on
(
'
error
'
,
(
code
:
number
,
signal
:
string
)
=>
this
.
options
.
onError
(
`Error watching
${
path
}
for configuration changes (
${
code
}
,
${
signal
}
)`
));
this
.
disposables
.
push
(
toDisposable
(()
=>
{
watcher
.
removeAllListeners
();
...
...
@@ -209,7 +209,7 @@ export class ConfigWatcher<T> implements IConfigWatcher<T>, IDisposable {
return
fallback
;
}
const
value
=
this
.
cache
?
this
.
cache
[
key
]
:
void
0
;
const
value
=
this
.
cache
?
(
this
.
cache
as
any
)
[
key
]
:
void
0
;
return
typeof
value
!==
'
undefined
'
?
value
:
fallback
;
}
...
...
src/vs/code/electron-browser/sharedProcessMain.ts
浏览文件 @
58aca31e
...
...
@@ -177,7 +177,7 @@ function setupIPC(hook: string): TPromise<Server> {
function
startHandshake
():
TPromise
<
ISharedProcessInitData
>
{
return
new
TPromise
<
ISharedProcessInitData
>
((
c
,
e
)
=>
{
ipcRenderer
.
once
(
'
handshake:hey there
'
,
(
_
,
r
)
=>
c
(
r
));
ipcRenderer
.
once
(
'
handshake:hey there
'
,
(
_
:
any
,
r
:
ISharedProcessInitData
)
=>
c
(
r
));
ipcRenderer
.
send
(
'
handshake:hello
'
);
});
}
...
...
src/vs/code/electron-main/app.ts
浏览文件 @
58aca31e
...
...
@@ -130,7 +130,7 @@ export class CodeApplication {
const
isValidWebviewSource
=
(
source
:
string
)
=>
!
source
||
(
URI
.
parse
(
source
.
toLowerCase
()).
toString
()
as
any
).
startsWith
(
URI
.
file
(
this
.
environmentService
.
appRoot
.
toLowerCase
()).
toString
());
app
.
on
(
'
web-contents-created
'
,
(
event
,
contents
)
=>
{
app
.
on
(
'
web-contents-created
'
,
(
_event
:
any
,
contents
)
=>
{
contents
.
on
(
'
will-attach-webview
'
,
(
event
:
Electron
.
Event
,
webPreferences
,
params
)
=>
{
delete
webPreferences
.
preload
;
webPreferences
.
nodeIntegration
=
false
;
...
...
@@ -185,19 +185,19 @@ export class CodeApplication {
this
.
windowsMainService
.
openNewWindow
(
OpenContext
.
DESKTOP
);
//macOS native tab "+" button
});
ipc
.
on
(
'
vscode:exit
'
,
(
event
,
code
:
number
)
=>
{
ipc
.
on
(
'
vscode:exit
'
,
(
_event
:
any
,
code
:
number
)
=>
{
this
.
logService
.
log
(
'
IPC#vscode:exit
'
,
code
);
this
.
dispose
();
this
.
lifecycleService
.
kill
(
code
);
});
ipc
.
on
(
machineIdIpcChannel
,
(
event
,
machineId
:
string
)
=>
{
ipc
.
on
(
machineIdIpcChannel
,
(
_event
:
any
,
machineId
:
string
)
=>
{
this
.
logService
.
log
(
'
IPC#vscode-machineId
'
);
this
.
storageService
.
setItem
(
machineIdStorageKey
,
machineId
);
});
ipc
.
on
(
'
vscode:fetchShellEnv
'
,
(
event
,
windowId
)
=>
{
ipc
.
on
(
'
vscode:fetchShellEnv
'
,
(
_event
:
any
,
windowId
:
number
)
=>
{
const
{
webContents
}
=
BrowserWindow
.
fromId
(
windowId
);
getShellEnvironment
().
then
(
shellEnv
=>
{
if
(
!
webContents
.
isDestroyed
())
{
...
...
@@ -212,7 +212,7 @@ export class CodeApplication {
});
});
ipc
.
on
(
'
vscode:broadcast
'
,
(
event
,
windowId
:
number
,
broadcast
:
{
channel
:
string
;
payload
:
any
;
})
=>
{
ipc
.
on
(
'
vscode:broadcast
'
,
(
_event
:
any
,
windowId
:
number
,
broadcast
:
{
channel
:
string
;
payload
:
any
;
})
=>
{
if
(
this
.
windowsMainService
&&
broadcast
.
channel
&&
!
isUndefinedOrNull
(
broadcast
.
payload
))
{
this
.
logService
.
log
(
'
IPC#vscode:broadcast
'
,
broadcast
.
channel
,
broadcast
.
payload
);
...
...
src/vs/code/electron-main/menus.ts
浏览文件 @
58aca31e
...
...
@@ -99,7 +99,7 @@ export class CodeMenu {
this
.
windowsService
.
onWindowClose
(()
=>
this
.
updateWorkspaceMenuItems
());
// Listen to extension viewlets
ipc
.
on
(
'
vscode:extensionViewlets
'
,
(
event
,
rawExtensionViewlets
)
=>
{
ipc
.
on
(
'
vscode:extensionViewlets
'
,
(
_event
:
any
,
rawExtensionViewlets
:
string
)
=>
{
let
extensionViewlets
:
IExtensionViewlet
[]
=
[];
try
{
extensionViewlets
=
JSON
.
parse
(
rawExtensionViewlets
);
...
...
src/vs/code/electron-main/sharedProcess.ts
浏览文件 @
58aca31e
...
...
@@ -65,7 +65,7 @@ export class SharedProcess implements ISharedProcess {
}));
return
new
TPromise
<
void
>
((
c
,
e
)
=>
{
ipcMain
.
once
(
'
handshake:hello
'
,
({
sender
})
=>
{
ipcMain
.
once
(
'
handshake:hello
'
,
({
sender
}
:
{
sender
:
any
}
)
=>
{
sender
.
send
(
'
handshake:hey there
'
,
{
sharedIPCHandle
:
this
.
environmentService
.
sharedIPCHandle
,
args
:
this
.
environmentService
.
args
...
...
src/vs/code/electron-main/window.ts
浏览文件 @
58aca31e
...
...
@@ -339,7 +339,7 @@ export class CodeWindow implements ICodeWindow {
'
X-Market-User-Id
'
:
this
.
environmentService
.
machineUUID
};
this
.
_win
.
webContents
.
session
.
webRequest
.
onBeforeSendHeaders
({
urls
},
(
details
,
cb
)
=>
{
this
.
_win
.
webContents
.
session
.
webRequest
.
onBeforeSendHeaders
({
urls
},
(
details
:
any
,
cb
:
any
)
=>
{
cb
({
cancel
:
false
,
requestHeaders
:
objects
.
assign
(
details
.
requestHeaders
,
headers
)
});
});
...
...
@@ -355,7 +355,7 @@ export class CodeWindow implements ICodeWindow {
return
callback
({});
});
this
.
_win
.
webContents
.
session
.
webRequest
.
onHeadersReceived
(
null
,
(
details
,
callback
)
=>
{
this
.
_win
.
webContents
.
session
.
webRequest
.
onHeadersReceived
(
null
,
(
details
:
any
,
callback
:
any
)
=>
{
const
contentType
:
string
[]
=
(
details
.
responseHeaders
[
'
content-type
'
]
||
details
.
responseHeaders
[
'
Content-Type
'
])
as
any
;
if
(
contentType
&&
Array
.
isArray
(
contentType
)
&&
contentType
.
some
(
x
=>
x
.
toLowerCase
().
indexOf
(
'
image/svg
'
)
>=
0
))
{
return
callback
({
cancel
:
true
});
...
...
src/vs/code/electron-main/windows.ts
浏览文件 @
58aca31e
...
...
@@ -201,7 +201,7 @@ export class WindowsManager implements IWindowsMainService {
});
// React to workbench loaded events from windows
ipc
.
on
(
'
vscode:workbenchLoaded
'
,
(
event
,
windowId
:
number
)
=>
{
ipc
.
on
(
'
vscode:workbenchLoaded
'
,
(
_event
:
any
,
windowId
:
number
)
=>
{
this
.
logService
.
log
(
'
IPC#vscode-workbenchLoaded
'
);
const
win
=
this
.
getWindowById
(
windowId
);
...
...
src/vs/editor/editor.main.ts
浏览文件 @
58aca31e
...
...
@@ -38,7 +38,7 @@ if (typeof global.Promise === 'undefined') {
let
base
=
createMonacoBaseAPI
();
for
(
let
prop
in
base
)
{
if
(
base
.
hasOwnProperty
(
prop
))
{
exports
[
prop
]
=
base
[
prop
];
exports
[
prop
]
=
(
base
as
any
)
[
prop
];
}
}
exports
.
editor
=
createMonacoEditorAPI
();
...
...
src/vs/workbench/browser/composite.ts
浏览文件 @
58aca31e
...
...
@@ -234,7 +234,7 @@ export abstract class CompositeDescriptor<T extends Composite> {
public
name
:
string
;
public
cssClass
:
string
;
public
order
:
number
;
public
keybindingId
;
public
keybindingId
:
string
;
private
ctor
:
IConstructorSignature0
<
T
>
;
...
...
src/vs/workbench/electron-browser/actions.ts
浏览文件 @
58aca31e
...
...
@@ -439,7 +439,7 @@ export class ShowStartupPerformance extends Action {
}
private
analyzeLoaderStats
():
{
[
type
:
string
]:
any
[]
}
{
const
stats
=
<
ILoaderEvent
[]
>
(
<
any
>
require
).
getStats
().
slice
(
0
).
sort
((
a
,
b
)
=>
{
const
stats
=
<
ILoaderEvent
[]
>
(
<
any
>
require
).
getStats
().
slice
(
0
).
sort
((
a
:
ILoaderEvent
,
b
:
ILoaderEvent
)
=>
{
if
(
a
.
detail
<
b
.
detail
)
{
return
-
1
;
}
else
if
(
a
.
detail
>
b
.
detail
)
{
...
...
src/vs/workbench/parts/preferences/browser/preferencesRenderers.ts
浏览文件 @
58aca31e
...
...
@@ -593,7 +593,7 @@ export class FeedbackWidgetRenderer extends Disposable {
const
result
=
this
.
_currentResult
;
const
actualResultNames
=
Object
.
keys
(
result
.
metadata
.
scoredResults
);
const
feedbackQuery
=
{};
const
feedbackQuery
:
any
=
{};
feedbackQuery
[
'
comment
'
]
=
FeedbackWidgetRenderer
.
DEFAULT_COMMENT_TEXT
;
feedbackQuery
[
'
queryString
'
]
=
result
.
query
;
feedbackQuery
[
'
resultScores
'
]
=
{};
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录