Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
538ff07c
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,发现更多精彩内容 >>
提交
538ff07c
编写于
7月 20, 2020
作者:
M
Matt Bierner
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Move logDirectoryProvide into server
上级
90fbd0eb
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
53 addition
and
6 deletion
+53
-6
extensions/typescript-language-features/src/extension.browser.ts
...ons/typescript-language-features/src/extension.browser.ts
+47
-0
extensions/typescript-language-features/src/extension.ts
extensions/typescript-language-features/src/extension.ts
+1
-1
extensions/typescript-language-features/src/lazyClientHost.ts
...nsions/typescript-language-features/src/lazyClientHost.ts
+1
-1
extensions/typescript-language-features/src/tsServer/logDirectoryProvider.electron.ts
...ge-features/src/tsServer/logDirectoryProvider.electron.ts
+1
-1
extensions/typescript-language-features/src/tsServer/logDirectoryProvider.ts
...pt-language-features/src/tsServer/logDirectoryProvider.ts
+0
-0
extensions/typescript-language-features/src/tsServer/spawner.ts
...ions/typescript-language-features/src/tsServer/spawner.ts
+1
-1
extensions/typescript-language-features/src/typeScriptServiceClientHost.ts
...ript-language-features/src/typeScriptServiceClientHost.ts
+1
-1
extensions/typescript-language-features/src/typescriptServiceClient.ts
...pescript-language-features/src/typescriptServiceClient.ts
+1
-1
未找到文件。
extensions/typescript-language-features/src/extension.browser.ts
0 → 100644
浏览文件 @
538ff07c
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import
*
as
vscode
from
'
vscode
'
;
import
{
noopLogDirectoryProvider
}
from
'
./tsServer/logDirectoryProvider
'
;
import
{
Api
,
getExtensionApi
}
from
'
./api
'
;
import
{
registerCommands
}
from
'
./commands/index
'
;
import
{
LanguageConfigurationManager
}
from
'
./features/languageConfiguration
'
;
import
{
createLazyClientHost
,
lazilyActivateClient
}
from
'
./lazyClientHost
'
;
import
{
CommandManager
}
from
'
./utils/commandManager
'
;
import
{
PluginManager
}
from
'
./utils/plugins
'
;
import
{
noopRequestCanceller
}
from
'
./tsServer/cancellation
'
;
export
function
activate
(
context
:
vscode
.
ExtensionContext
):
Api
{
const
pluginManager
=
new
PluginManager
();
context
.
subscriptions
.
push
(
pluginManager
);
const
commandManager
=
new
CommandManager
();
context
.
subscriptions
.
push
(
commandManager
);
const
onCompletionAccepted
=
new
vscode
.
EventEmitter
<
vscode
.
CompletionItem
>
();
context
.
subscriptions
.
push
(
onCompletionAccepted
);
const
lazyClientHost
=
createLazyClientHost
(
context
,
pluginManager
,
commandManager
,
noopLogDirectoryProvider
,
{
create
:
()
=>
noopRequestCanceller
},
item
=>
{
onCompletionAccepted
.
fire
(
item
);
});
registerCommands
(
commandManager
,
lazyClientHost
,
pluginManager
);
// context.subscriptions.push(task.register(lazyClientHost.map(x => x.serviceClient)));
context
.
subscriptions
.
push
(
new
LanguageConfigurationManager
());
import
(
'
./features/tsconfig
'
).
then
(
module
=>
{
context
.
subscriptions
.
push
(
module
.
register
());
});
context
.
subscriptions
.
push
(
lazilyActivateClient
(
lazyClientHost
,
pluginManager
));
return
getExtensionApi
(
onCompletionAccepted
.
event
,
pluginManager
);
}
extensions/typescript-language-features/src/extension.ts
浏览文件 @
538ff07c
...
...
@@ -5,6 +5,7 @@
import
*
as
rimraf
from
'
rimraf
'
;
import
*
as
vscode
from
'
vscode
'
;
import
{
NodeLogDirectoryProvider
}
from
'
./tsServer/logDirectoryProvider.electron
'
;
import
{
Api
,
getExtensionApi
}
from
'
./api
'
;
import
{
registerCommands
}
from
'
./commands/index
'
;
import
{
LanguageConfigurationManager
}
from
'
./features/languageConfiguration
'
;
...
...
@@ -13,7 +14,6 @@ import { createLazyClientHost, lazilyActivateClient } from './lazyClientHost';
import
{
NodeRequestCanceller
}
from
'
./tsServer/cancellation.electron
'
;
import
{
CommandManager
}
from
'
./utils/commandManager
'
;
import
*
as
electron
from
'
./utils/electron
'
;
import
{
NodeLogDirectoryProvider
}
from
'
./utils/logDirectoryProvider.electron
'
;
import
{
PluginManager
}
from
'
./utils/plugins
'
;
export
function
activate
(
...
...
extensions/typescript-language-features/src/lazyClientHost.ts
浏览文件 @
538ff07c
...
...
@@ -12,7 +12,7 @@ import * as fileSchemes from './utils/fileSchemes';
import
{
standardLanguageDescriptions
}
from
'
./utils/languageDescription
'
;
import
*
as
ProjectStatus
from
'
./utils/largeProjectStatus
'
;
import
{
lazy
,
Lazy
}
from
'
./utils/lazy
'
;
import
{
ILogDirectoryProvider
}
from
'
./
utils
/logDirectoryProvider
'
;
import
{
ILogDirectoryProvider
}
from
'
./
tsServer
/logDirectoryProvider
'
;
import
ManagedFileContextManager
from
'
./utils/managedFileContext
'
;
import
{
PluginManager
}
from
'
./utils/plugins
'
;
...
...
extensions/typescript-language-features/src/
utils
/logDirectoryProvider.electron.ts
→
extensions/typescript-language-features/src/
tsServer
/logDirectoryProvider.electron.ts
浏览文件 @
538ff07c
...
...
@@ -7,7 +7,7 @@ import * as fs from 'fs';
import
*
as
path
from
'
path
'
;
import
*
as
vscode
from
'
vscode
'
;
import
{
ILogDirectoryProvider
}
from
'
./logDirectoryProvider
'
;
import
{
memoize
}
from
'
./memoize
'
;
import
{
memoize
}
from
'
.
./utils
/memoize
'
;
export
class
NodeLogDirectoryProvider
implements
ILogDirectoryProvider
{
public
constructor
(
...
...
extensions/typescript-language-features/src/
utils
/logDirectoryProvider.ts
→
extensions/typescript-language-features/src/
tsServer
/logDirectoryProvider.ts
浏览文件 @
538ff07c
文件已移动
extensions/typescript-language-features/src/tsServer/spawner.ts
浏览文件 @
538ff07c
...
...
@@ -10,7 +10,7 @@ import { ClientCapabilities, ClientCapability } from '../typescriptService';
import
API
from
'
../utils/api
'
;
import
{
SeparateSyntaxServerConfiguration
,
TsServerLogLevel
,
TypeScriptServiceConfiguration
}
from
'
../utils/configuration
'
;
import
*
as
electron
from
'
../utils/electron
'
;
import
{
ILogDirectoryProvider
}
from
'
.
./utils
/logDirectoryProvider
'
;
import
{
ILogDirectoryProvider
}
from
'
./logDirectoryProvider
'
;
import
Logger
from
'
../utils/logger
'
;
import
{
TypeScriptPluginPathsProvider
}
from
'
../utils/pluginPathsProvider
'
;
import
{
PluginManager
}
from
'
../utils/plugins
'
;
...
...
extensions/typescript-language-features/src/typeScriptServiceClientHost.ts
浏览文件 @
538ff07c
...
...
@@ -21,7 +21,7 @@ import { CommandManager } from './utils/commandManager';
import
{
Disposable
}
from
'
./utils/dispose
'
;
import
*
as
errorCodes
from
'
./utils/errorCodes
'
;
import
{
DiagnosticLanguage
,
LanguageDescription
}
from
'
./utils/languageDescription
'
;
import
{
ILogDirectoryProvider
}
from
'
./
utils
/logDirectoryProvider
'
;
import
{
ILogDirectoryProvider
}
from
'
./
tsServer
/logDirectoryProvider
'
;
import
{
PluginManager
}
from
'
./utils/plugins
'
;
import
*
as
typeConverters
from
'
./utils/typeConverters
'
;
import
TypingsStatus
,
{
AtaProgressReporter
}
from
'
./utils/typingsStatus
'
;
...
...
extensions/typescript-language-features/src/typescriptServiceClient.ts
浏览文件 @
538ff07c
...
...
@@ -21,7 +21,7 @@ import { TsServerLogLevel, TypeScriptServiceConfiguration } from './utils/config
import
{
Disposable
}
from
'
./utils/dispose
'
;
import
*
as
fileSchemes
from
'
./utils/fileSchemes
'
;
import
{
onCaseInsenitiveFileSystem
}
from
'
./utils/fileSystem
'
;
import
{
ILogDirectoryProvider
}
from
'
./
utils
/logDirectoryProvider
'
;
import
{
ILogDirectoryProvider
}
from
'
./
tsServer
/logDirectoryProvider
'
;
import
Logger
from
'
./utils/logger
'
;
import
{
TypeScriptPluginPathsProvider
}
from
'
./utils/pluginPathsProvider
'
;
import
{
PluginManager
}
from
'
./utils/plugins
'
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录