Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
lwm1986
roslyn
提交
1debaf87
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,发现更多精彩内容 >>
提交
1debaf87
编写于
4月 03, 2017
作者:
C
CyrusNajmabadi
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Enable OOP server to use sqlite storage provider.
上级
8ae04488
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
17 addition
and
5 deletion
+17
-5
src/Features/Core/Portable/NavigateTo/NavigateToOptions.cs
src/Features/Core/Portable/NavigateTo/NavigateToOptions.cs
+1
-1
src/VisualStudio/Core/Def/Implementation/ProjectSystem/VisualStudioProjectTracker.WorkspaceHostState.cs
...ctSystem/VisualStudioProjectTracker.WorkspaceHostState.cs
+1
-1
src/VisualStudio/Core/Next/Remote/ServiceHubRemoteHostClient.cs
...sualStudio/Core/Next/Remote/ServiceHubRemoteHostClient.cs
+13
-0
src/Workspaces/Core/Portable/FindSymbols/SymbolFinderOptions.cs
...rkspaces/Core/Portable/FindSymbols/SymbolFinderOptions.cs
+1
-1
src/Workspaces/Remote/Core/Storage/RemotePersistentStorageLocationService.cs
...te/Core/Storage/RemotePersistentStorageLocationService.cs
+1
-2
未找到文件。
src/Features/Core/Portable/NavigateTo/NavigateToOptions.cs
浏览文件 @
1debaf87
...
...
@@ -9,7 +9,7 @@ internal static class NavigateToOptions
private
const
string
LocalRegistryPath
=
@"Roslyn\Features\NavigateTo\"
;
public
static
readonly
Option
<
bool
>
OutOfProcessAllowed
=
new
Option
<
bool
>(
nameof
(
NavigateToOptions
),
nameof
(
OutOfProcessAllowed
),
defaultValue
:
fals
e
,
nameof
(
NavigateToOptions
),
nameof
(
OutOfProcessAllowed
),
defaultValue
:
tru
e
,
storageLocations
:
new
LocalUserProfileStorageLocation
(
LocalRegistryPath
+
nameof
(
OutOfProcessAllowed
)));
}
}
\ No newline at end of file
src/VisualStudio/Core/Def/Implementation/ProjectSystem/VisualStudioProjectTracker.WorkspaceHostState.cs
浏览文件 @
1debaf87
...
...
@@ -139,7 +139,7 @@ internal void SolutionClosed()
var
solutionInfo
=
SolutionInfo
.
Create
(
id
,
version
.
Value
,
solutionFilePath
,
projects
:
projectInfos
);
this
.
Host
.
OnSolutionAdded
(
solutionInfo
);
_tracker
.
NotifyWorkspaceHosts
(
host
=>
host
.
OnSolutionAdded
(
solutionInfo
)
);
_solutionAdded
=
true
;
}
...
...
src/VisualStudio/Core/Next/Remote/ServiceHubRemoteHostClient.cs
浏览文件 @
1debaf87
...
...
@@ -74,6 +74,10 @@ private static async Task RegisterWorkspaceHostAsync(Workspace workspace, Remote
// don't block UI thread while initialize workspace host
var
host
=
new
WorkspaceHost
(
vsWorkspace
,
client
);
// Initialize the remote side with whatever data we have currently for the workspace.
// As workspace changes happen, this host will get notified, and it can remote those
// changes appropriately over to the remote size.
await
host
.
InitializeAsync
().
ConfigureAwait
(
false
);
// RegisterWorkspaceHost is required to be called from UI thread so push the code
...
...
@@ -81,6 +85,15 @@ private static async Task RegisterWorkspaceHostAsync(Workspace workspace, Remote
await
Task
.
Factory
.
SafeStartNew
(()
=>
{
vsWorkspace
.
GetProjectTrackerAndInitializeIfNecessary
(
Shell
.
ServiceProvider
.
GlobalProvider
).
RegisterWorkspaceHost
(
host
);
// There may have been notifications fired by the workspace between the time we
// were created and now when we let it know about us. Because of that, we need
// to do another initialization pass to make sure all the current workpsace
// state is pushed over to the remote side.
//
// We can do this in a fire and forget manner. We don't want to block the UI
// thread while we're pushing this data over.
Task
.
Run
(()
=>
host
.
InitializeAsync
());
},
CancellationToken
.
None
,
ForegroundThreadAffinitizedObject
.
CurrentForegroundThreadData
.
TaskScheduler
).
ConfigureAwait
(
false
);
}
...
...
src/Workspaces/Core/Portable/FindSymbols/SymbolFinderOptions.cs
浏览文件 @
1debaf87
...
...
@@ -9,7 +9,7 @@ internal static class SymbolFinderOptions
private
const
string
LocalRegistryPath
=
@"Roslyn\Features\SymbolFinder\"
;
public
static
readonly
Option
<
bool
>
OutOfProcessAllowed
=
new
Option
<
bool
>(
nameof
(
SymbolFinderOptions
),
nameof
(
OutOfProcessAllowed
),
defaultValue
:
fals
e
,
nameof
(
SymbolFinderOptions
),
nameof
(
OutOfProcessAllowed
),
defaultValue
:
tru
e
,
storageLocations
:
new
LocalUserProfileStorageLocation
(
LocalRegistryPath
+
nameof
(
OutOfProcessAllowed
)));
}
}
\ No newline at end of file
src/Workspaces/Remote/Core/Storage/RemotePersistentStorageLocationService.cs
浏览文件 @
1debaf87
...
...
@@ -44,8 +44,7 @@ public static void UpdateStorageLocation(SolutionId id, string storageLocation)
}
else
{
// Store the esent database in a different location for the out of proc server.
_idToStorageLocation
[
id
]
=
Path
.
Combine
(
storageLocation
,
"Server"
);
_idToStorageLocation
[
id
]
=
storageLocation
;
}
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录