Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
ba6576d3
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,发现更多精彩内容 >>
提交
ba6576d3
编写于
7月 22, 2020
作者:
M
Matt Bierner
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Move project status into host
上级
e91c4a1d
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
11 addition
and
16 deletion
+11
-16
extensions/typescript-language-features/src/lazyClientHost.ts
...nsions/typescript-language-features/src/lazyClientHost.ts
+1
-9
extensions/typescript-language-features/src/typeScriptServiceClientHost.ts
...ript-language-features/src/typeScriptServiceClientHost.ts
+3
-0
extensions/typescript-language-features/src/typescriptService.ts
...ons/typescript-language-features/src/typescriptService.ts
+3
-0
extensions/typescript-language-features/src/typescriptServiceClient.ts
...pescript-language-features/src/typescriptServiceClient.ts
+1
-2
extensions/typescript-language-features/src/utils/largeProjectStatus.ts
...escript-language-features/src/utils/largeProjectStatus.ts
+3
-5
未找到文件。
extensions/typescript-language-features/src/lazyClientHost.ts
浏览文件 @
ba6576d3
...
...
@@ -4,15 +4,14 @@
*--------------------------------------------------------------------------------------------*/
import
*
as
vscode
from
'
vscode
'
;
import
{
CommandManager
}
from
'
./commands/commandManager
'
;
import
{
OngoingRequestCancellerFactory
}
from
'
./tsServer/cancellation
'
;
import
{
ILogDirectoryProvider
}
from
'
./tsServer/logDirectoryProvider
'
;
import
{
TsServerProcessFactory
}
from
'
./tsServer/server
'
;
import
{
ITypeScriptVersionProvider
}
from
'
./tsServer/versionProvider
'
;
import
TypeScriptServiceClientHost
from
'
./typeScriptServiceClientHost
'
;
import
{
flatten
}
from
'
./utils/arrays
'
;
import
{
CommandManager
}
from
'
./commands/commandManager
'
;
import
{
standardLanguageDescriptions
}
from
'
./utils/languageDescription
'
;
import
*
as
ProjectStatus
from
'
./utils/largeProjectStatus
'
;
import
{
lazy
,
Lazy
}
from
'
./utils/lazy
'
;
import
ManagedFileContextManager
from
'
./utils/managedFileContext
'
;
import
{
PluginManager
}
from
'
./utils/plugins
'
;
...
...
@@ -40,13 +39,6 @@ export function createLazyClientHost(
context
.
subscriptions
.
push
(
clientHost
);
clientHost
.
serviceClient
.
onReady
(()
=>
{
context
.
subscriptions
.
push
(
ProjectStatus
.
create
(
clientHost
.
serviceClient
,
clientHost
.
serviceClient
.
telemetryReporter
));
});
return
clientHost
;
});
}
...
...
extensions/typescript-language-features/src/typeScriptServiceClientHost.ts
浏览文件 @
ba6576d3
...
...
@@ -28,6 +28,7 @@ import { DiagnosticLanguage, LanguageDescription } from './utils/languageDescrip
import
{
PluginManager
}
from
'
./utils/plugins
'
;
import
*
as
typeConverters
from
'
./utils/typeConverters
'
;
import
TypingsStatus
,
{
AtaProgressReporter
}
from
'
./utils/typingsStatus
'
;
import
*
as
ProjectStatus
from
'
./utils/largeProjectStatus
'
;
namespace
Experimental
{
export
interface
Diagnostic
extends
Proto
.
Diagnostic
{
...
...
@@ -95,6 +96,8 @@ export default class TypeScriptServiceClientHost extends Disposable {
this
.
_register
(
new
VersionStatus
(
this
.
client
,
services
.
commandManager
));
this
.
_register
(
new
AtaProgressReporter
(
this
.
client
));
this
.
typingsStatus
=
this
.
_register
(
new
TypingsStatus
(
this
.
client
));
this
.
_register
(
ProjectStatus
.
create
(
this
.
client
));
this
.
fileConfigurationManager
=
this
.
_register
(
new
FileConfigurationManager
(
this
.
client
,
onCaseInsenitiveFileSystem
));
for
(
const
description
of
descriptions
)
{
...
...
extensions/typescript-language-features/src/typescriptService.ts
浏览文件 @
ba6576d3
...
...
@@ -11,6 +11,7 @@ import { TypeScriptVersion } from './tsServer/versionProvider';
import
API
from
'
./utils/api
'
;
import
{
TypeScriptServiceConfiguration
}
from
'
./utils/configuration
'
;
import
{
PluginManager
}
from
'
./utils/plugins
'
;
import
{
TelemetryReporter
}
from
'
./utils/telemetry
'
;
export
namespace
ServerResponse
{
...
...
@@ -159,9 +160,11 @@ export interface ITypeScriptServiceClient {
showVersionPicker
():
void
;
readonly
apiVersion
:
API
;
readonly
pluginManager
:
PluginManager
;
readonly
configuration
:
TypeScriptServiceConfiguration
;
readonly
bufferSyncSupport
:
BufferSyncSupport
;
readonly
telemetryReporter
:
TelemetryReporter
;
execute
<
K
extends
keyof
StandardTsServerRequests
>
(
command
:
K
,
...
...
extensions/typescript-language-features/src/typescriptServiceClient.ts
浏览文件 @
ba6576d3
...
...
@@ -115,11 +115,10 @@ export default class TypeScriptServiceClient extends Disposable implements IType
private
readonly
loadingIndicator
=
new
ServerInitializingIndicator
();
public
readonly
telemetryReporter
:
TelemetryReporter
;
public
readonly
bufferSyncSupport
:
BufferSyncSupport
;
public
readonly
diagnosticsManager
:
DiagnosticsManager
;
public
readonly
pluginManager
:
PluginManager
;
private
readonly
logDirectoryProvider
:
ILogDirectoryProvider
;
private
readonly
cancellerFactory
:
OngoingRequestCancellerFactory
;
private
readonly
versionProvider
:
ITypeScriptVersionProvider
;
...
...
extensions/typescript-language-features/src/utils/largeProjectStatus.ts
浏览文件 @
ba6576d3
...
...
@@ -111,16 +111,15 @@ function onConfigureExcludesSelected(
export
function
create
(
client
:
ITypeScriptServiceClient
,
telemetryReporter
:
TelemetryReporter
)
{
):
vscode
.
Disposable
{
const
toDispose
:
vscode
.
Disposable
[]
=
[];
const
item
=
new
ExcludeHintItem
(
telemetryReporter
);
const
item
=
new
ExcludeHintItem
(
client
.
telemetryReporter
);
toDispose
.
push
(
vscode
.
commands
.
registerCommand
(
'
js.projectStatus.command
'
,
()
=>
{
if
(
item
.
configFileName
)
{
onConfigureExcludesSelected
(
client
,
item
.
configFileName
);
}
le
t
{
message
}
=
item
.
getCurrentHint
();
cons
t
{
message
}
=
item
.
getCurrentHint
();
return
vscode
.
window
.
showInformationMessage
(
message
);
}));
...
...
@@ -128,4 +127,3 @@ export function create(
return
vscode
.
Disposable
.
from
(...
toDispose
);
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录