Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
96e13e6c
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 搜索 >>
提交
96e13e6c
编写于
2月 06, 2019
作者:
M
Matt Bierner
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Unblock mainThread and extHost files from being strict null checked
上级
946a8750
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
27 addition
and
6 deletion
+27
-6
src/tsconfig.strictNullChecks.json
src/tsconfig.strictNullChecks.json
+21
-0
src/vs/workbench/api/electron-browser/mainThreadWorkspace.ts
src/vs/workbench/api/electron-browser/mainThreadWorkspace.ts
+3
-3
src/vs/workbench/api/node/extHost.protocol.ts
src/vs/workbench/api/node/extHost.protocol.ts
+3
-3
未找到文件。
src/tsconfig.strictNullChecks.json
浏览文件 @
96e13e6c
...
...
@@ -397,9 +397,30 @@
"./vs/vscode.proposed.d.ts"
,
"./vs/workbench/api/common/configurationExtensionPoint.ts"
,
"./vs/workbench/api/common/menusExtensionPoint.ts"
,
"./vs/workbench/api/electron-browser/extHostCustomers.ts"
,
"./vs/workbench/api/electron-browser/mainThreadClipboard.ts"
,
"./vs/workbench/api/electron-browser/mainThreadCommands.ts"
,
"./vs/workbench/api/electron-browser/mainThreadErrors.ts"
,
"./vs/workbench/api/electron-browser/mainThreadFileSystem.ts"
,
"./vs/workbench/api/electron-browser/mainThreadLanguages.ts"
,
"./vs/workbench/api/electron-browser/mainThreadLogService.ts"
,
"./vs/workbench/api/electron-browser/mainThreadStatusBar.ts"
,
"./vs/workbench/api/electron-browser/mainThreadTelemetry.ts"
,
"./vs/workbench/api/electron-browser/mainThreadUrls.ts"
,
"./vs/workbench/api/electron-browser/mainThreadWindow.ts"
,
"./vs/workbench/api/electron-browser/mainThreadWorkspace.ts"
,
"./vs/workbench/api/node/extHost.protocol.ts"
,
"./vs/workbench/api/node/extHostClipboard.ts"
,
"./vs/workbench/api/node/extHostDialogs.ts"
,
"./vs/workbench/api/node/extHostExtensionActivator.ts"
,
"./vs/workbench/api/node/extHostHeapService.ts"
,
"./vs/workbench/api/node/extHostLogService.ts"
,
"./vs/workbench/api/node/extHostMessageService.ts"
,
"./vs/workbench/api/node/extHostSearch.fileIndex.ts"
,
"./vs/workbench/api/node/extHostStorage.ts"
,
"./vs/workbench/api/node/extHostTypes.ts"
,
"./vs/workbench/api/node/extHostUrls.ts"
,
"./vs/workbench/api/node/extHostWindow.ts"
,
"./vs/workbench/api/shared/editor.ts"
,
"./vs/workbench/api/shared/tasks.ts"
,
"./vs/workbench/browser/actions.ts"
,
...
...
src/vs/workbench/api/electron-browser/mainThreadWorkspace.ts
浏览文件 @
96e13e6c
...
...
@@ -103,7 +103,7 @@ export class MainThreadWorkspace implements MainThreadWorkspaceShape {
private
_onDidChangeWorkspace
():
void
{
const
workspace
=
this
.
_contextService
.
getWorkbenchState
()
===
WorkbenchState
.
EMPTY
?
null
:
this
.
_contextService
.
getWorkspace
();
this
.
_proxy
.
$acceptWorkspaceData
(
workspace
?
{
configuration
:
workspace
.
configuration
,
configuration
:
workspace
.
configuration
||
undefined
,
folders
:
workspace
.
folders
,
id
:
workspace
.
id
,
name
:
this
.
_labelService
.
getWorkspaceLabel
(
workspace
)
...
...
@@ -112,7 +112,7 @@ export class MainThreadWorkspace implements MainThreadWorkspaceShape {
// --- search ---
$startFileSearch
(
includePattern
:
string
,
_includeFolder
:
UriComponents
,
excludePatternOrDisregardExcludes
:
string
|
false
,
maxResults
:
number
,
token
:
CancellationToken
):
Promise
<
URI
[]
>
{
$startFileSearch
(
includePattern
:
string
,
_includeFolder
:
UriComponents
,
excludePatternOrDisregardExcludes
:
string
|
false
,
maxResults
:
number
,
token
:
CancellationToken
):
Promise
<
URI
[]
>
|
undefined
{
const
includeFolder
=
URI
.
revive
(
_includeFolder
);
const
workspace
=
this
.
_contextService
.
getWorkspace
();
if
(
!
workspace
.
folders
.
length
)
{
...
...
@@ -196,7 +196,7 @@ export class MainThreadWorkspace implements MainThreadWorkspaceShape {
});
}
$resolveProxy
(
url
:
string
):
Promise
<
string
>
{
$resolveProxy
(
url
:
string
):
Promise
<
string
|
undefined
>
{
return
this
.
_windowService
.
resolveProxy
(
url
);
}
}
...
...
src/vs/workbench/api/node/extHost.protocol.ts
浏览文件 @
96e13e6c
...
...
@@ -505,12 +505,12 @@ export interface ExtHostUrlsShape {
}
export
interface
MainThreadWorkspaceShape
extends
IDisposable
{
$startFileSearch
(
includePattern
:
string
,
includeFolder
:
URI
,
excludePatternOrDisregardExcludes
:
string
|
false
,
maxResults
:
number
,
token
:
CancellationToken
):
Promise
<
UriComponents
[]
>
;
$startFileSearch
(
includePattern
:
string
,
includeFolder
:
URI
,
excludePatternOrDisregardExcludes
:
string
|
false
,
maxResults
:
number
,
token
:
CancellationToken
):
Promise
<
UriComponents
[]
>
|
undefined
;
$startTextSearch
(
query
:
IPatternInfo
,
options
:
ITextQueryBuilderOptions
,
requestId
:
number
,
token
:
CancellationToken
):
Promise
<
vscode
.
TextSearchComplete
>
;
$checkExists
(
includes
:
string
[],
token
:
CancellationToken
):
Promise
<
boolean
>
;
$saveAll
(
includeUntitled
?:
boolean
):
Promise
<
boolean
>
;
$updateWorkspaceFolders
(
extensionName
:
string
,
index
:
number
,
deleteCount
:
number
,
workspaceFoldersToAdd
:
{
uri
:
UriComponents
,
name
?:
string
}[]):
Promise
<
void
>
;
$resolveProxy
(
url
:
string
):
Promise
<
string
>
;
$resolveProxy
(
url
:
string
):
Promise
<
string
|
undefined
>
;
}
export
interface
IFileChangeDto
{
...
...
@@ -718,7 +718,7 @@ export interface ExtHostTreeViewsShape {
}
export
interface
ExtHostWorkspaceShape
{
$acceptWorkspaceData
(
workspace
:
IWorkspaceData
):
void
;
$acceptWorkspaceData
(
workspace
:
IWorkspaceData
|
null
):
void
;
$handleTextSearchResult
(
result
:
IRawFileMatch2
,
requestId
:
number
):
void
;
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录