Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
2a74e670
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,发现更多精彩内容 >>
提交
2a74e670
编写于
5月 23, 2019
作者:
A
Alex Dima
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Reduce usage of product.json and package.json
上级
2cc98f3a
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
20 addition
and
12 deletion
+20
-12
src/vs/platform/product/common/product.ts
src/vs/platform/product/common/product.ts
+4
-1
src/vs/platform/product/node/productService.ts
src/vs/platform/product/node/productService.ts
+5
-1
src/vs/workbench/browser/web.simpleservices.ts
src/vs/workbench/browser/web.simpleservices.ts
+3
-2
src/vs/workbench/services/extensions/electron-browser/remoteExtensionHostClient.ts
.../extensions/electron-browser/remoteExtensionHostClient.ts
+8
-8
未找到文件。
src/vs/platform/product/common/product.ts
浏览文件 @
2a74e670
...
...
@@ -10,8 +10,11 @@ export const IProductService = createDecorator<IProductService>('productService'
export
interface
IProductService
{
_serviceBrand
:
any
;
version
?
:
string
;
version
:
string
;
commit
?:
string
;
nameLong
:
string
;
urlProtocol
:
string
;
enableTelemetry
:
boolean
;
}
\ No newline at end of file
src/vs/platform/product/node/productService.ts
浏览文件 @
2a74e670
...
...
@@ -11,9 +11,13 @@ export class ProductService implements IProductService {
_serviceBrand
:
any
;
get
version
():
string
|
undefined
{
return
pkg
.
version
;
}
get
version
():
string
{
return
pkg
.
version
;
}
get
commit
():
string
|
undefined
{
return
product
.
commit
;
}
get
nameLong
():
string
{
return
product
.
nameLong
;
}
get
urlProtocol
():
string
{
return
product
.
urlProtocol
;
}
get
enableTelemetry
():
boolean
{
return
product
.
enableTelemetry
;
}
}
\ No newline at end of file
src/vs/workbench/browser/web.simpleservices.ts
浏览文件 @
2a74e670
...
...
@@ -659,9 +659,10 @@ export class SimpleProductService implements IProductService {
_serviceBrand
:
any
;
version
?:
string
;
version
:
string
=
'
0.0.0
'
;
commit
?:
string
;
nameLong
:
string
=
''
;
urlProtocol
:
string
=
''
;
enableTelemetry
:
boolean
=
false
;
}
...
...
src/vs/workbench/services/extensions/electron-browser/remoteExtensionHostClient.ts
浏览文件 @
2a74e670
...
...
@@ -9,8 +9,6 @@ import { IMessagePassingProtocol } from 'vs/base/parts/ipc/common/ipc';
import
{
IEnvironmentService
}
from
'
vs/platform/environment/common/environment
'
;
import
{
ILabelService
}
from
'
vs/platform/label/common/label
'
;
import
{
ILogService
}
from
'
vs/platform/log/common/log
'
;
import
product
from
'
vs/platform/product/node/product
'
;
import
pkg
from
'
vs/platform/product/node/package
'
;
import
{
connectRemoteAgentExtensionHost
,
IRemoteExtensionHostStartParams
,
IConnectionOptions
}
from
'
vs/platform/remote/common/remoteAgentConnection
'
;
import
{
ITelemetryService
}
from
'
vs/platform/telemetry/common/telemetry
'
;
import
{
IWindowService
}
from
'
vs/platform/windows/common/windows
'
;
...
...
@@ -30,6 +28,7 @@ import { IExtensionDescription } from 'vs/platform/extensions/common/extensions'
import
{
VSBuffer
}
from
'
vs/base/common/buffer
'
;
import
{
nodeWebSocketFactory
}
from
'
vs/platform/remote/node/nodeWebSocketFactory
'
;
import
{
IExtensionHostDebugService
}
from
'
vs/workbench/services/extensions/common/extensionHostDebug
'
;
import
{
IProductService
}
from
'
vs/platform/product/common/product
'
;
export
interface
IInitDataProvider
{
readonly
remoteAuthority
:
string
;
...
...
@@ -59,7 +58,8 @@ export class RemoteExtensionHostClient extends Disposable implements IExtensionH
@
ILogService
private
readonly
_logService
:
ILogService
,
@
ILabelService
private
readonly
_labelService
:
ILabelService
,
@
IRemoteAuthorityResolverService
private
readonly
remoteAuthorityResolverService
:
IRemoteAuthorityResolverService
,
@
IExtensionHostDebugService
private
readonly
_extensionHostDebugService
:
IExtensionHostDebugService
@
IExtensionHostDebugService
private
readonly
_extensionHostDebugService
:
IExtensionHostDebugService
,
@
IProductService
private
readonly
_productService
:
IProductService
)
{
super
();
this
.
_protocol
=
null
;
...
...
@@ -75,7 +75,7 @@ export class RemoteExtensionHostClient extends Disposable implements IExtensionH
public
start
():
Promise
<
IMessagePassingProtocol
>
{
const
options
:
IConnectionOptions
=
{
isBuilt
:
this
.
_environmentService
.
isBuilt
,
commit
:
product
.
commit
,
commit
:
this
.
_productService
.
commit
,
webSocketFactory
:
nodeWebSocketFactory
,
addressProvider
:
{
getAddress
:
async
()
=>
{
...
...
@@ -191,15 +191,15 @@ export class RemoteExtensionHostClient extends Disposable implements IExtensionH
const
hostExtensions
=
allExtensions
.
filter
(
extension
=>
extension
.
main
&&
extension
.
api
===
'
none
'
).
map
(
extension
=>
extension
.
identifier
);
const
workspace
=
this
.
_contextService
.
getWorkspace
();
const
r
:
IInitData
=
{
commit
:
product
.
commit
,
version
:
pkg
.
version
,
commit
:
this
.
_productService
.
commit
,
version
:
this
.
_productService
.
version
,
parentPid
:
remoteExtensionHostData
.
pid
,
environment
:
{
isExtensionDevelopmentDebug
,
appRoot
:
remoteExtensionHostData
.
appRoot
,
appSettingsHome
:
remoteExtensionHostData
.
appSettingsHome
,
appName
:
product
.
nameLong
,
appUriScheme
:
product
.
urlProtocol
,
appName
:
this
.
_productService
.
nameLong
,
appUriScheme
:
this
.
_productService
.
urlProtocol
,
appLanguage
:
platform
.
language
,
extensionDevelopmentLocationURI
:
this
.
_environmentService
.
extensionDevelopmentLocationURI
,
extensionTestsLocationURI
:
this
.
_environmentService
.
extensionTestsLocationURI
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录