Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
9d43bdac
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,发现更多精彩内容 >>
提交
9d43bdac
编写于
4月 11, 2019
作者:
M
Matt Bierner
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Register features with Promise.all instead of sequentially
上级
c6a9536e
变更
1
显示空白变更内容
内联
并排
Showing
1 changed file
with
24 addition
and
22 deletion
+24
-22
extensions/typescript-language-features/src/languageProvider.ts
...ions/typescript-language-features/src/languageProvider.ts
+24
-22
未找到文件。
extensions/typescript-language-features/src/languageProvider.ts
浏览文件 @
9d43bdac
...
...
@@ -55,28 +55,30 @@ export default class LanguageProvider extends Disposable {
const
cachedResponse
=
new
CachedResponse
();
this
.
_register
((
await
import
(
'
./features/completions
'
)).
register
(
selector
,
this
.
description
.
id
,
this
.
client
,
this
.
typingsStatus
,
this
.
fileConfigurationManager
,
this
.
commandManager
,
this
.
telemetryReporter
,
this
.
onCompletionAccepted
));
this
.
_register
((
await
import
(
'
./features/definitions
'
)).
register
(
selector
,
this
.
client
));
this
.
_register
((
await
import
(
'
./features/directiveCommentCompletions
'
)).
register
(
selector
,
this
.
client
));
this
.
_register
((
await
import
(
'
./features/documentHighlight
'
)).
register
(
selector
,
this
.
client
));
this
.
_register
((
await
import
(
'
./features/documentSymbol
'
)).
register
(
selector
,
this
.
client
,
cachedResponse
));
this
.
_register
((
await
import
(
'
./features/folding
'
)).
register
(
selector
,
this
.
client
));
this
.
_register
((
await
import
(
'
./features/formatting
'
)).
register
(
selector
,
this
.
description
.
id
,
this
.
client
,
this
.
fileConfigurationManager
));
this
.
_register
((
await
import
(
'
./features/hover
'
)).
register
(
selector
,
this
.
client
));
this
.
_register
((
await
import
(
'
./features/implementations
'
)).
register
(
selector
,
this
.
client
));
this
.
_register
((
await
import
(
'
./features/implementationsCodeLens
'
)).
register
(
selector
,
this
.
description
.
id
,
this
.
client
,
cachedResponse
));
this
.
_register
((
await
import
(
'
./features/jsDocCompletions
'
)).
register
(
selector
,
this
.
description
.
id
,
this
.
client
));
this
.
_register
((
await
import
(
'
./features/organizeImports
'
)).
register
(
selector
,
this
.
client
,
this
.
commandManager
,
this
.
fileConfigurationManager
,
this
.
telemetryReporter
));
this
.
_register
((
await
import
(
'
./features/quickFix
'
)).
register
(
selector
,
this
.
client
,
this
.
fileConfigurationManager
,
this
.
commandManager
,
this
.
client
.
diagnosticsManager
,
this
.
telemetryReporter
));
this
.
_register
((
await
import
(
'
./features/fixAll
'
)).
register
(
selector
,
this
.
client
,
this
.
fileConfigurationManager
,
this
.
client
.
diagnosticsManager
));
this
.
_register
((
await
import
(
'
./features/refactor
'
)).
register
(
selector
,
this
.
client
,
this
.
fileConfigurationManager
,
this
.
commandManager
,
this
.
telemetryReporter
));
this
.
_register
((
await
import
(
'
./features/references
'
)).
register
(
selector
,
this
.
client
));
this
.
_register
((
await
import
(
'
./features/referencesCodeLens
'
)).
register
(
selector
,
this
.
description
.
id
,
this
.
client
,
cachedResponse
));
this
.
_register
((
await
import
(
'
./features/rename
'
)).
register
(
selector
,
this
.
client
,
this
.
fileConfigurationManager
));
this
.
_register
((
await
import
(
'
./features/smartSelect
'
)).
register
(
selector
,
this
.
client
));
this
.
_register
((
await
import
(
'
./features/signatureHelp
'
)).
register
(
selector
,
this
.
client
));
this
.
_register
((
await
import
(
'
./features/tagClosing
'
)).
register
(
selector
,
this
.
description
.
id
,
this
.
client
));
this
.
_register
((
await
import
(
'
./features/typeDefinitions
'
)).
register
(
selector
,
this
.
client
));
await
Promise
.
all
([
import
(
'
./features/completions
'
).
then
(
provider
=>
this
.
_register
(
provider
.
register
(
selector
,
this
.
description
.
id
,
this
.
client
,
this
.
typingsStatus
,
this
.
fileConfigurationManager
,
this
.
commandManager
,
this
.
telemetryReporter
,
this
.
onCompletionAccepted
))),
import
(
'
./features/definitions
'
).
then
(
provider
=>
this
.
_register
(
provider
.
register
(
selector
,
this
.
client
))),
import
(
'
./features/directiveCommentCompletions
'
).
then
(
provider
=>
this
.
_register
(
provider
.
register
(
selector
,
this
.
client
))),
import
(
'
./features/documentHighlight
'
).
then
(
provider
=>
this
.
_register
(
provider
.
register
(
selector
,
this
.
client
))),
import
(
'
./features/documentSymbol
'
).
then
(
provider
=>
this
.
_register
(
provider
.
register
(
selector
,
this
.
client
,
cachedResponse
))),
import
(
'
./features/folding
'
).
then
(
provider
=>
this
.
_register
(
provider
.
register
(
selector
,
this
.
client
))),
import
(
'
./features/formatting
'
).
then
(
provider
=>
this
.
_register
(
provider
.
register
(
selector
,
this
.
description
.
id
,
this
.
client
,
this
.
fileConfigurationManager
))),
import
(
'
./features/hover
'
).
then
(
provider
=>
this
.
_register
(
provider
.
register
(
selector
,
this
.
client
))),
import
(
'
./features/implementations
'
).
then
(
provider
=>
this
.
_register
(
provider
.
register
(
selector
,
this
.
client
))),
import
(
'
./features/implementationsCodeLens
'
).
then
(
provider
=>
this
.
_register
(
provider
.
register
(
selector
,
this
.
description
.
id
,
this
.
client
,
cachedResponse
))),
import
(
'
./features/jsDocCompletions
'
).
then
(
provider
=>
this
.
_register
(
provider
.
register
(
selector
,
this
.
description
.
id
,
this
.
client
))),
import
(
'
./features/organizeImports
'
).
then
(
provider
=>
this
.
_register
(
provider
.
register
(
selector
,
this
.
client
,
this
.
commandManager
,
this
.
fileConfigurationManager
,
this
.
telemetryReporter
))),
import
(
'
./features/quickFix
'
).
then
(
provider
=>
this
.
_register
(
provider
.
register
(
selector
,
this
.
client
,
this
.
fileConfigurationManager
,
this
.
commandManager
,
this
.
client
.
diagnosticsManager
,
this
.
telemetryReporter
))),
import
(
'
./features/fixAll
'
).
then
(
provider
=>
this
.
_register
(
provider
.
register
(
selector
,
this
.
client
,
this
.
fileConfigurationManager
,
this
.
client
.
diagnosticsManager
))),
import
(
'
./features/refactor
'
).
then
(
provider
=>
this
.
_register
(
provider
.
register
(
selector
,
this
.
client
,
this
.
fileConfigurationManager
,
this
.
commandManager
,
this
.
telemetryReporter
))),
import
(
'
./features/references
'
).
then
(
provider
=>
this
.
_register
(
provider
.
register
(
selector
,
this
.
client
))),
import
(
'
./features/referencesCodeLens
'
).
then
(
provider
=>
this
.
_register
(
provider
.
register
(
selector
,
this
.
description
.
id
,
this
.
client
,
cachedResponse
))),
import
(
'
./features/rename
'
).
then
(
provider
=>
this
.
_register
(
provider
.
register
(
selector
,
this
.
client
,
this
.
fileConfigurationManager
))),
import
(
'
./features/smartSelect
'
).
then
(
provider
=>
this
.
_register
(
provider
.
register
(
selector
,
this
.
client
))),
import
(
'
./features/signatureHelp
'
).
then
(
provider
=>
this
.
_register
(
provider
.
register
(
selector
,
this
.
client
))),
import
(
'
./features/tagClosing
'
).
then
(
provider
=>
this
.
_register
(
provider
.
register
(
selector
,
this
.
description
.
id
,
this
.
client
))),
import
(
'
./features/typeDefinitions
'
).
then
(
provider
=>
this
.
_register
(
provider
.
register
(
selector
,
this
.
client
))),
]);
}
private
configurationChanged
():
void
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录