Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
cb54db18
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,发现更多精彩内容 >>
提交
cb54db18
编写于
4月 10, 2019
作者:
J
Johannes Rieken
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
move extHostLogService
上级
bb4baaa8
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
13 addition
and
7 deletion
+13
-7
src/vs/workbench/api/common/extHostLogService.ts
src/vs/workbench/api/common/extHostLogService.ts
+6
-2
src/vs/workbench/api/node/extHost.api.impl.ts
src/vs/workbench/api/node/extHost.api.impl.ts
+1
-1
src/vs/workbench/api/node/extHostExtensionService.ts
src/vs/workbench/api/node/extHostExtensionService.ts
+1
-1
src/vs/workbench/services/extensions/node/extensionHostMain.ts
...s/workbench/services/extensions/node/extensionHostMain.ts
+4
-2
src/vs/workbench/services/extensions/node/proxyResolver.ts
src/vs/workbench/services/extensions/node/proxyResolver.ts
+1
-1
未找到文件。
src/vs/workbench/api/
node
/extHostLogService.ts
→
src/vs/workbench/api/
common
/extHostLogService.ts
浏览文件 @
cb54db18
...
...
@@ -5,12 +5,15 @@
import
{
join
}
from
'
vs/base/common/path
'
;
import
{
ILogService
,
DelegatedLogService
,
LogLevel
}
from
'
vs/platform/log/common/log
'
;
import
{
createSpdLogService
}
from
'
vs/platform/log/node/spdlogService
'
;
import
{
ExtHostLogServiceShape
}
from
'
vs/workbench/api/common/extHost.protocol
'
;
import
{
ExtensionHostLogFileName
}
from
'
vs/workbench/services/extensions/common/extensions
'
;
import
{
URI
}
from
'
vs/base/common/uri
'
;
import
{
ExtensionIdentifier
}
from
'
vs/platform/extensions/common/extensions
'
;
export
interface
ILogServiceCreateFn
{
():
ILogService
;
}
export
class
ExtHostLogService
extends
DelegatedLogService
implements
ILogService
,
ExtHostLogServiceShape
{
private
_logsPath
:
string
;
...
...
@@ -19,8 +22,9 @@ export class ExtHostLogService extends DelegatedLogService implements ILogServic
constructor
(
logLevel
:
LogLevel
,
logsPath
:
string
,
factory
:
ILogServiceCreateFn
)
{
super
(
createSpdLogService
(
ExtensionHostLogFileName
,
logLevel
,
logsPath
));
super
(
factory
(
));
this
.
_logsPath
=
logsPath
;
this
.
logFile
=
URI
.
file
(
join
(
logsPath
,
`
${
ExtensionHostLogFileName
}
.log`
));
}
...
...
src/vs/workbench/api/node/extHost.api.impl.ts
浏览文件 @
cb54db18
...
...
@@ -37,7 +37,7 @@ import { ExtHostFileSystemEventService } from 'vs/workbench/api/common/extHostFi
import
{
ExtHostHeapService
}
from
'
vs/workbench/api/common/extHostHeapService
'
;
import
{
ExtHostLanguageFeatures
,
ISchemeTransformer
}
from
'
vs/workbench/api/common/extHostLanguageFeatures
'
;
import
{
ExtHostLanguages
}
from
'
vs/workbench/api/common/extHostLanguages
'
;
import
{
ExtHostLogService
}
from
'
vs/workbench/api/
node
/extHostLogService
'
;
import
{
ExtHostLogService
}
from
'
vs/workbench/api/
common
/extHostLogService
'
;
import
{
ExtHostMessageService
}
from
'
vs/workbench/api/common/extHostMessageService
'
;
import
{
ExtHostOutputService
}
from
'
vs/workbench/api/common/extHostOutput
'
;
import
{
LogOutputChannelFactory
}
from
'
vs/workbench/api/node/extHostOutputService
'
;
...
...
src/vs/workbench/api/node/extHostExtensionService.ts
浏览文件 @
cb54db18
...
...
@@ -16,7 +16,7 @@ import { createApiFactory, IExtensionApiFactory, NodeModuleRequireInterceptor, V
import
{
ExtHostExtensionServiceShape
,
IEnvironment
,
IInitData
,
IMainContext
,
MainContext
,
MainThreadExtensionServiceShape
,
MainThreadTelemetryShape
,
MainThreadWorkspaceShape
,
IStaticWorkspaceData
}
from
'
vs/workbench/api/common/extHost.protocol
'
;
import
{
ExtHostConfiguration
}
from
'
vs/workbench/api/common/extHostConfiguration
'
;
import
{
ActivatedExtension
,
EmptyExtension
,
ExtensionActivatedByAPI
,
ExtensionActivatedByEvent
,
ExtensionActivationReason
,
ExtensionActivationTimes
,
ExtensionActivationTimesBuilder
,
ExtensionsActivator
,
IExtensionAPI
,
IExtensionContext
,
IExtensionMemento
,
IExtensionModule
,
HostExtension
}
from
'
vs/workbench/api/common/extHostExtensionActivator
'
;
import
{
ExtHostLogService
}
from
'
vs/workbench/api/
node
/extHostLogService
'
;
import
{
ExtHostLogService
}
from
'
vs/workbench/api/
common
/extHostLogService
'
;
import
{
ExtHostStorage
}
from
'
vs/workbench/api/common/extHostStorage
'
;
import
{
ExtHostWorkspace
}
from
'
vs/workbench/api/common/extHostWorkspace
'
;
import
{
ExtensionActivationError
}
from
'
vs/workbench/services/extensions/common/extensions
'
;
...
...
src/vs/workbench/services/extensions/node/extensionHostMain.ts
浏览文件 @
cb54db18
...
...
@@ -13,11 +13,13 @@ import { IMessagePassingProtocol } from 'vs/base/parts/ipc/common/ipc';
import
{
IEnvironment
,
IInitData
,
MainContext
,
MainThreadConsoleShape
}
from
'
vs/workbench/api/common/extHost.protocol
'
;
import
{
ExtHostConfiguration
}
from
'
vs/workbench/api/common/extHostConfiguration
'
;
import
{
ExtHostExtensionService
}
from
'
vs/workbench/api/node/extHostExtensionService
'
;
import
{
ExtHostLogService
}
from
'
vs/workbench/api/
node
/extHostLogService
'
;
import
{
ExtHostLogService
}
from
'
vs/workbench/api/
common
/extHostLogService
'
;
import
{
ExtHostWorkspace
}
from
'
vs/workbench/api/common/extHostWorkspace
'
;
import
{
RPCProtocol
}
from
'
vs/workbench/services/extensions/common/rpcProtocol
'
;
import
{
IExtensionDescription
}
from
'
vs/platform/extensions/common/extensions
'
;
import
{
withNullAsUndefined
}
from
'
vs/base/common/types
'
;
import
{
ExtensionHostLogFileName
}
from
'
vs/workbench/services/extensions/common/extensions
'
;
import
{
createSpdLogService
}
from
'
vs/platform/log/node/spdlogService
'
;
// we don't (yet) throw when extensions parse
// uris that have no scheme
...
...
@@ -70,7 +72,7 @@ export class ExtensionHostMain {
this
.
_patchPatchedConsole
(
rpcProtocol
.
getProxy
(
MainContext
.
MainThreadConsole
));
// services
this
.
_extHostLogService
=
new
ExtHostLogService
(
initData
.
logLevel
,
initData
.
logsLocation
.
fsPath
);
this
.
_extHostLogService
=
new
ExtHostLogService
(
initData
.
logLevel
,
initData
.
logsLocation
.
fsPath
,
()
=>
createSpdLogService
(
ExtensionHostLogFileName
,
initData
.
logLevel
,
initData
.
logsLocation
.
fsPath
)
);
this
.
disposables
.
push
(
this
.
_extHostLogService
);
this
.
_searchRequestIdProvider
=
new
Counter
();
...
...
src/vs/workbench/services/extensions/node/proxyResolver.ts
浏览文件 @
cb54db18
...
...
@@ -17,7 +17,7 @@ import { IExtHostWorkspaceProvider } from 'vs/workbench/api/common/extHostWorksp
import
{
ExtHostConfigProvider
}
from
'
vs/workbench/api/common/extHostConfiguration
'
;
import
{
ProxyAgent
}
from
'
vscode-proxy-agent
'
;
import
{
MainThreadTelemetryShape
}
from
'
vs/workbench/api/common/extHost.protocol
'
;
import
{
ExtHostLogService
}
from
'
vs/workbench/api/
node
/extHostLogService
'
;
import
{
ExtHostLogService
}
from
'
vs/workbench/api/
common
/extHostLogService
'
;
import
{
toErrorMessage
}
from
'
vs/base/common/errorMessage
'
;
import
{
ExtHostExtensionService
}
from
'
vs/workbench/api/node/extHostExtensionService
'
;
import
{
URI
}
from
'
vs/base/common/uri
'
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录