Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
lwm1986
roslyn
提交
14a66241
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,发现更多精彩内容 >>
提交
14a66241
编写于
9月 08, 2015
作者:
J
Jason Malinowski
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #5024 from jasonmalinowski/async-loading-with-property-pages
Async loading with property pages
上级
7d24d820
381a9548
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
31 addition
and
6 deletion
+31
-6
src/VisualStudio/Core/Def/Implementation/ProjectSystem/DocumentProvider.cs
...Core/Def/Implementation/ProjectSystem/DocumentProvider.cs
+18
-6
src/VisualStudio/Core/Def/Implementation/ProjectSystem/IVisualStudioHostProjectContainer.cs
...tation/ProjectSystem/IVisualStudioHostProjectContainer.cs
+2
-0
src/VisualStudio/Core/Def/Implementation/ProjectSystem/MiscellaneousFilesWorkspace.cs
...plementation/ProjectSystem/MiscellaneousFilesWorkspace.cs
+5
-0
src/VisualStudio/Core/Def/Implementation/ProjectSystem/VisualStudioProjectTracker.cs
...mplementation/ProjectSystem/VisualStudioProjectTracker.cs
+6
-0
未找到文件。
src/VisualStudio/Core/Def/Implementation/ProjectSystem/DocumentProvider.cs
浏览文件 @
14a66241
...
...
@@ -215,15 +215,15 @@ private void TryProcessOpenForDocCookie(uint docCookie)
uint
itemid
;
RunningDocumentTable
.
GetDocumentHierarchyItem
(
docCookie
,
out
hierarchy
,
out
itemid
);
foreach
(
var
project
in
_projectContainer
.
GetProjects
())
{
var
documentKey
=
new
DocumentKey
(
project
,
moniker
);
var
shimTextBuffer
=
RunningDocumentTable
.
GetDocumentData
(
docCookie
)
as
IVsTextBuffer
;
if
(
_documentMap
.
ContainsKey
(
documentKey
))
if
(
shimTextBuffer
!=
null
)
{
foreach
(
var
project
in
_projectContainer
.
GetProjects
())
{
var
shimTextBuffer
=
RunningDocumentTable
.
GetDocumentData
(
docCookie
)
as
IVsTextBuffer
;
var
documentKey
=
new
DocumentKey
(
project
,
moniker
)
;
if
(
shimTextBuffer
!=
null
)
if
(
_documentMap
.
ContainsKey
(
documentKey
)
)
{
var
textBuffer
=
EditorAdaptersFactoryService
.
GetDocumentBuffer
(
shimTextBuffer
);
...
...
@@ -257,6 +257,18 @@ private void TryProcessOpenForDocCookie(uint docCookie)
}
}
}
else
{
// This is opening some other designer or property page. If it's tied to our IVsHierarchy, we should
// let the workspace know
foreach
(
var
project
in
_projectContainer
.
GetProjects
())
{
if
(
hierarchy
==
project
.
Hierarchy
)
{
_projectContainer
.
NotifyNonDocumentOpenedForProject
(
project
);
}
}
}
}
private
void
OnBeforeDocumentWindowShow
(
IVsWindowFrame
frame
,
uint
docCookie
,
bool
firstShow
)
...
...
src/VisualStudio/Core/Def/Implementation/ProjectSystem/IVisualStudioHostProjectContainer.cs
浏览文件 @
14a66241
...
...
@@ -11,5 +11,7 @@ namespace Microsoft.VisualStudio.LanguageServices.Implementation.ProjectSystem
internal
interface
IVisualStudioHostProjectContainer
{
IEnumerable
<
IVisualStudioHostProject
>
GetProjects
();
void
NotifyNonDocumentOpenedForProject
(
IVisualStudioHostProject
project
);
}
}
src/VisualStudio/Core/Def/Implementation/ProjectSystem/MiscellaneousFilesWorkspace.cs
浏览文件 @
14a66241
...
...
@@ -350,6 +350,11 @@ IEnumerable<IVisualStudioHostProject> IVisualStudioHostProjectContainer.GetProje
return
_hostProjects
.
Values
;
}
void
IVisualStudioHostProjectContainer
.
NotifyNonDocumentOpenedForProject
(
IVisualStudioHostProject
project
)
{
// Since the MiscellaneousFilesWorkspace doesn't do anything lazily, this is a no-op
}
private
class
LanguageInformation
{
public
LanguageInformation
(
string
languageName
,
string
scriptExtension
,
ParseOptions
parseOptions
)
...
...
src/VisualStudio/Core/Def/Implementation/ProjectSystem/VisualStudioProjectTracker.cs
浏览文件 @
14a66241
...
...
@@ -57,6 +57,12 @@ IEnumerable<IVisualStudioHostProject> IVisualStudioHostProjectContainer.GetProje
return
this
.
Projects
;
}
void
IVisualStudioHostProjectContainer
.
NotifyNonDocumentOpenedForProject
(
IVisualStudioHostProject
project
)
{
var
abstractProject
=
(
AbstractProject
)
project
;
StartPushingToWorkspaceAndNotifyOfOpenDocuments
(
SpecializedCollections
.
SingletonEnumerable
(
abstractProject
));
}
private
uint
?
_solutionEventsCookie
;
public
VisualStudioProjectTracker
(
IServiceProvider
serviceProvider
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录