Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
lwm1986
roslyn
提交
a5ae0043
R
roslyn
项目概览
lwm1986
/
roslyn
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
roslyn
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
a5ae0043
编写于
2月 13, 2020
作者:
M
msftbot[bot]
提交者:
GitHub
2月 13, 2020
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #41620 from dotnet/merges/release/dev16.5-to-master
Merge release/dev16.5 to master
上级
9bb70e7b
d06542ab
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
18 addition
and
5 deletion
+18
-5
src/EditorFeatures/TestUtilities/Remote/InProcRemostHostClient.cs
...orFeatures/TestUtilities/Remote/InProcRemostHostClient.cs
+2
-0
src/VisualStudio/Core/Def/Implementation/Remote/RemoteHostClientServiceFactory.RemoteHostClientService.cs
...RemoteHostClientServiceFactory.RemoteHostClientService.cs
+1
-5
src/VisualStudio/Core/Def/Implementation/Remote/RemoteHostOptions.cs
...tudio/Core/Def/Implementation/Remote/RemoteHostOptions.cs
+6
-0
src/VisualStudio/Core/Def/Implementation/Remote/ServiceHubRemoteHostClient.cs
...e/Def/Implementation/Remote/ServiceHubRemoteHostClient.cs
+1
-0
src/Workspaces/Core/Portable/ExternalAccess/Pythia/Api/PythiaRemoteHostClient.cs
...table/ExternalAccess/Pythia/Api/PythiaRemoteHostClient.cs
+5
-0
src/Workspaces/Core/Portable/Remote/RemoteHostClient.cs
src/Workspaces/Core/Portable/Remote/RemoteHostClient.cs
+3
-0
未找到文件。
src/EditorFeatures/TestUtilities/Remote/InProcRemostHostClient.cs
浏览文件 @
a5ae0043
...
...
@@ -14,6 +14,7 @@
using
Microsoft.CodeAnalysis
;
using
Microsoft.CodeAnalysis.Remote
;
using
Microsoft.CodeAnalysis.Remote.Services
;
using
Microsoft.CodeAnalysis.Test.Utilities.RemoteHost
;
using
Microsoft.VisualStudio.LanguageServices.Remote
;
using
Nerdbank
;
using
Roslyn.Utilities
;
...
...
@@ -90,6 +91,7 @@ public Task<Stream> RequestServiceAsync(string serviceName)
}
public
override
string
ClientId
{
get
;
}
public
override
bool
IsRemoteHost64Bit
=>
IntPtr
.
Size
==
8
;
public
override
async
Task
<
Connection
?>
TryCreateConnectionAsync
(
string
serviceName
,
object
?
callbackTarget
,
CancellationToken
cancellationToken
)
...
...
src/VisualStudio/Core/Def/Implementation/Remote/RemoteHostClientServiceFactory.RemoteHostClientService.cs
浏览文件 @
a5ae0043
...
...
@@ -190,11 +190,7 @@ bool IRemoteHostClientService.IsEnabled()
private
void
SetRemoteHostBitness
()
{
var
x64
=
_workspace
.
Options
.
GetOption
(
RemoteHostOptions
.
OOP64Bit
);
if
(!
x64
)
{
x64
=
_workspace
.
Services
.
GetRequiredService
<
IExperimentationService
>().
IsExperimentEnabled
(
WellKnownExperimentNames
.
RoslynOOP64bit
);
}
bool
x64
=
RemoteHostOptions
.
IsServiceHubProcess64Bit
(
_workspace
);
// log OOP bitness
Logger
.
Log
(
FunctionId
.
RemoteHost_Bitness
,
KeyValueLogMessage
.
Create
(
LogType
.
Trace
,
m
=>
m
[
"64bit"
]
=
x64
));
...
...
src/VisualStudio/Core/Def/Implementation/Remote/RemoteHostOptions.cs
浏览文件 @
a5ae0043
...
...
@@ -4,7 +4,9 @@
using
System.Collections.Immutable
;
using
System.Composition
;
using
Microsoft.CodeAnalysis
;
using
Microsoft.CodeAnalysis.Editor.Shared.Options
;
using
Microsoft.CodeAnalysis.Experiments
;
using
Microsoft.CodeAnalysis.Options
;
using
Microsoft.CodeAnalysis.Options.Providers
;
...
...
@@ -53,6 +55,10 @@ internal static class RemoteHostOptions
public
static
readonly
Option
<
int
>
MaxPoolConnection
=
new
Option
<
int
>(
nameof
(
InternalFeatureOnOffOptions
),
nameof
(
MaxPoolConnection
),
defaultValue
:
15
,
storageLocations
:
new
LocalUserProfileStorageLocation
(
InternalFeatureOnOffOptions
.
LocalRegistryPath
+
nameof
(
MaxPoolConnection
)));
public
static
bool
IsServiceHubProcess64Bit
(
Workspace
workspace
)
=>
workspace
.
Options
.
GetOption
(
OOP64Bit
)
||
workspace
.
Services
.
GetRequiredService
<
IExperimentationService
>().
IsExperimentEnabled
(
WellKnownExperimentNames
.
RoslynOOP64bit
);
}
[
ExportOptionProvider
,
Shared
]
...
...
src/VisualStudio/Core/Def/Implementation/Remote/ServiceHubRemoteHostClient.cs
浏览文件 @
a5ae0043
...
...
@@ -160,6 +160,7 @@ static bool ReportNonFatalWatson(Exception e, CancellationToken cancellationToke
}
public
override
string
ClientId
=>
_connectionManager
.
HostGroup
.
Id
;
public
override
bool
IsRemoteHost64Bit
=>
RemoteHostOptions
.
IsServiceHubProcess64Bit
(
Workspace
);
public
override
Task
<
Connection
?>
TryCreateConnectionAsync
(
string
serviceName
,
object
?
callbackTarget
,
CancellationToken
cancellationToken
)
{
...
...
src/Workspaces/Core/Portable/ExternalAccess/Pythia/Api/PythiaRemoteHostClient.cs
浏览文件 @
a5ae0043
...
...
@@ -22,6 +22,11 @@ public static async Task<Optional<T>> TryRunRemoteAsync<T>(Workspace workspace,
return
default
;
}
if
(
client
.
IsRemoteHost64Bit
)
{
serviceName
+=
"64"
;
}
using
var
connection
=
await
client
.
TryCreateConnectionAsync
(
serviceName
,
callbackTarget
:
null
,
cancellationToken
).
ConfigureAwait
(
false
);
if
(
connection
==
null
)
{
...
...
src/Workspaces/Core/Portable/Remote/RemoteHostClient.cs
浏览文件 @
a5ae0043
...
...
@@ -52,6 +52,8 @@ protected RemoteHostClient(Workspace workspace)
/// </summary>
public
abstract
Task
<
Connection
?>
TryCreateConnectionAsync
(
string
serviceName
,
object
?
callbackTarget
,
CancellationToken
cancellationToken
);
public
abstract
bool
IsRemoteHost64Bit
{
get
;
}
protected
abstract
void
OnStarted
();
protected
void
Started
()
...
...
@@ -196,6 +198,7 @@ public NoOpClient(Workspace workspace)
}
public
override
string
ClientId
=>
nameof
(
NoOpClient
);
public
override
bool
IsRemoteHost64Bit
=>
false
;
public
override
Task
<
Connection
?>
TryCreateConnectionAsync
(
string
serviceName
,
object
?
callbackTarget
,
CancellationToken
cancellationToken
)
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录