Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
fc727b7b
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,体验更适合开发者的 AI 搜索 >>
提交
fc727b7b
编写于
7月 31, 2019
作者:
A
Alex Dima
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Do not send isBuilt
上级
ec78f9ee
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
3 addition
and
15 deletion
+3
-15
src/vs/code/electron-main/app.ts
src/vs/code/electron-main/app.ts
+0
-3
src/vs/platform/remote/common/remoteAgentConnection.ts
src/vs/platform/remote/common/remoteAgentConnection.ts
+1
-6
src/vs/workbench/services/extensions/common/remoteExtensionHostClient.ts
...h/services/extensions/common/remoteExtensionHostClient.ts
+0
-1
src/vs/workbench/services/remote/browser/remoteAgentServiceImpl.ts
...rkbench/services/remote/browser/remoteAgentServiceImpl.ts
+1
-1
src/vs/workbench/services/remote/common/abstractRemoteAgentService.ts
...ench/services/remote/common/abstractRemoteAgentService.ts
+0
-2
src/vs/workbench/services/remote/electron-browser/remoteAgentServiceImpl.ts
...ervices/remote/electron-browser/remoteAgentServiceImpl.ts
+1
-1
src/vs/workbench/services/remote/node/tunnelService.ts
src/vs/workbench/services/remote/node/tunnelService.ts
+0
-1
未找到文件。
src/vs/code/electron-main/app.ts
浏览文件 @
fc727b7b
...
...
@@ -697,8 +697,6 @@ export class CodeApplication extends Disposable {
private
handleRemoteAuthorities
():
void
{
const
connectionPool
:
Map
<
string
,
ActiveConnection
>
=
new
Map
<
string
,
ActiveConnection
>
();
const
isBuilt
=
this
.
environmentService
.
isBuilt
;
class
ActiveConnection
{
private
readonly
_authority
:
string
;
private
readonly
_connection
:
Promise
<
ManagementPersistentConnection
>
;
...
...
@@ -708,7 +706,6 @@ export class CodeApplication extends Disposable {
this
.
_authority
=
authority
;
const
options
:
IConnectionOptions
=
{
isBuilt
,
commit
:
product
.
commit
,
socketFactory
:
nodeSocketFactory
,
addressProvider
:
{
...
...
src/vs/platform/remote/common/remoteAgentConnection.ts
浏览文件 @
fc727b7b
...
...
@@ -35,7 +35,6 @@ export interface ConnectionTypeRequest {
signedData
?:
string
;
desiredConnectionType
?:
ConnectionType
;
args
?:
any
;
isBuilt
:
boolean
;
}
export
interface
ErrorMessage
{
...
...
@@ -51,7 +50,6 @@ export type HandshakeMessage = AuthRequest | SignRequest | ConnectionTypeRequest
interface
ISimpleConnectionOptions
{
isBuilt
:
boolean
;
commit
:
string
|
undefined
;
host
:
string
;
port
:
number
;
...
...
@@ -110,8 +108,7 @@ async function connectToRemoteExtensionHostAgent(options: ISimpleConnectionOptio
type
:
'
connectionType
'
,
commit
:
options
.
commit
,
signedData
:
signed
,
desiredConnectionType
:
connectionType
,
isBuilt
:
options
.
isBuilt
desiredConnectionType
:
connectionType
};
if
(
args
)
{
connTypeRequest
.
args
=
args
;
...
...
@@ -200,7 +197,6 @@ async function doConnectRemoteAgentTunnel(options: ISimpleConnectionOptions, sta
}
export
interface
IConnectionOptions
{
isBuilt
:
boolean
;
commit
:
string
|
undefined
;
socketFactory
:
ISocketFactory
;
addressProvider
:
IAddressProvider
;
...
...
@@ -210,7 +206,6 @@ export interface IConnectionOptions {
async
function
resolveConnectionOptions
(
options
:
IConnectionOptions
,
reconnectionToken
:
string
,
reconnectionProtocol
:
PersistentProtocol
|
null
):
Promise
<
ISimpleConnectionOptions
>
{
const
{
host
,
port
}
=
await
options
.
addressProvider
.
getAddress
();
return
{
isBuilt
:
options
.
isBuilt
,
commit
:
options
.
commit
,
host
:
host
,
port
:
port
,
...
...
src/vs/workbench/services/extensions/common/remoteExtensionHostClient.ts
浏览文件 @
fc727b7b
...
...
@@ -71,7 +71,6 @@ export class RemoteExtensionHostClient extends Disposable implements IExtensionH
public
start
():
Promise
<
IMessagePassingProtocol
>
{
const
options
:
IConnectionOptions
=
{
isBuilt
:
this
.
_environmentService
.
isBuilt
,
commit
:
this
.
_productService
.
commit
,
socketFactory
:
this
.
_socketFactory
,
addressProvider
:
{
...
...
src/vs/workbench/services/remote/browser/remoteAgentServiceImpl.ts
浏览文件 @
fc727b7b
...
...
@@ -28,7 +28,7 @@ export class RemoteAgentService extends AbstractRemoteAgentService implements IR
super
(
environmentService
);
this
.
socketFactory
=
new
BrowserSocketFactory
(
webSocketFactory
);
this
.
_connection
=
this
.
_register
(
new
RemoteAgentConnection
(
environmentService
.
configuration
.
remoteAuthority
!
,
productService
.
commit
,
this
.
socketFactory
,
environmentService
,
remoteAuthorityResolverService
,
signService
));
this
.
_connection
=
this
.
_register
(
new
RemoteAgentConnection
(
environmentService
.
configuration
.
remoteAuthority
!
,
productService
.
commit
,
this
.
socketFactory
,
remoteAuthorityResolverService
,
signService
));
}
getConnection
():
IRemoteAgentConnection
|
null
{
...
...
src/vs/workbench/services/remote/common/abstractRemoteAgentService.ts
浏览文件 @
fc727b7b
...
...
@@ -84,7 +84,6 @@ export class RemoteAgentConnection extends Disposable implements IRemoteAgentCon
remoteAuthority
:
string
,
private
readonly
_commit
:
string
|
undefined
,
private
readonly
_socketFactory
:
ISocketFactory
,
private
readonly
_environmentService
:
IEnvironmentService
,
private
readonly
_remoteAuthorityResolverService
:
IRemoteAuthorityResolverService
,
private
readonly
_signService
:
ISignService
)
{
...
...
@@ -111,7 +110,6 @@ export class RemoteAgentConnection extends Disposable implements IRemoteAgentCon
private
async
_createConnection
():
Promise
<
Client
<
RemoteAgentConnectionContext
>>
{
let
firstCall
=
true
;
const
options
:
IConnectionOptions
=
{
isBuilt
:
this
.
_environmentService
.
isBuilt
,
commit
:
this
.
_commit
,
socketFactory
:
this
.
_socketFactory
,
addressProvider
:
{
...
...
src/vs/workbench/services/remote/electron-browser/remoteAgentServiceImpl.ts
浏览文件 @
fc727b7b
...
...
@@ -27,7 +27,7 @@ export class RemoteAgentService extends AbstractRemoteAgentService implements IR
super
(
environmentService
);
this
.
socketFactory
=
nodeSocketFactory
;
if
(
remoteAuthority
)
{
this
.
_connection
=
this
.
_register
(
new
RemoteAgentConnection
(
remoteAuthority
,
product
.
commit
,
nodeSocketFactory
,
environmentService
,
remoteAuthorityResolverService
,
signService
));
this
.
_connection
=
this
.
_register
(
new
RemoteAgentConnection
(
remoteAuthority
,
product
.
commit
,
nodeSocketFactory
,
remoteAuthorityResolverService
,
signService
));
}
}
...
...
src/vs/workbench/services/remote/node/tunnelService.ts
浏览文件 @
fc727b7b
...
...
@@ -100,7 +100,6 @@ export class TunnelService implements ITunnelService {
}
const
options
:
IConnectionOptions
=
{
isBuilt
:
this
.
environmentService
.
isBuilt
,
commit
:
product
.
commit
,
socketFactory
:
nodeSocketFactory
,
addressProvider
:
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录