Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
lwm1986
roslyn
提交
618e0e1f
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,发现更多精彩内容 >>
提交
618e0e1f
编写于
8月 25, 2016
作者:
C
CyrusNajmabadi
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Rename type.
上级
a909c51b
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
12 addition
and
12 deletion
+12
-12
src/EditorFeatures/Core/EditorFeatures.csproj
src/EditorFeatures/Core/EditorFeatures.csproj
+2
-2
src/EditorFeatures/Core/Implementation/Outlining/VisualStudio14OutliningTaggerProvider.Tag.cs
...on/Outlining/VisualStudio14OutliningTaggerProvider.Tag.cs
+1
-1
src/EditorFeatures/Core/Implementation/Outlining/VisualStudio14OutliningTaggerProvider.cs
...tation/Outlining/VisualStudio14OutliningTaggerProvider.cs
+3
-3
src/EditorFeatures/Test/Outlining/OutliningTaggerTests.cs
src/EditorFeatures/Test/Outlining/OutliningTaggerTests.cs
+1
-1
src/EditorFeatures/Test/Tagging/AsynchronousTaggerTests.cs
src/EditorFeatures/Test/Tagging/AsynchronousTaggerTests.cs
+1
-1
src/VisualStudio/Core/Def/Implementation/LanguageService/AbstractLanguageService`3.cs
...plementation/LanguageService/AbstractLanguageService`3.cs
+1
-1
src/VisualStudio/Core/Def/Implementation/Workspace/VisualStudioSymbolNavigationService.cs
...entation/Workspace/VisualStudioSymbolNavigationService.cs
+2
-2
src/VisualStudio/Core/Def/Implementation/Workspace/VisualStudioSymbolNavigationServiceFactory.cs
...n/Workspace/VisualStudioSymbolNavigationServiceFactory.cs
+1
-1
未找到文件。
src/EditorFeatures/Core/EditorFeatures.csproj
浏览文件 @
618e0e1f
...
...
@@ -574,8 +574,8 @@
<Compile
Include=
"Implementation\Outlining\OutliningCommandHandler.cs"
/>
<Compile
Include=
"Implementation\Outlining\OutliningExtensions.cs"
/>
<Compile
Include=
"Implementation\Outlining\OutliningSpan.cs"
/>
<Compile
Include=
"Implementation\Outlining\OutliningTaggerProvider.cs"
/>
<Compile
Include=
"Implementation\Outlining\OutliningTaggerProvider.Tag.cs"
/>
<Compile
Include=
"Implementation\Outlining\
VisualStudio14
OutliningTaggerProvider.cs"
/>
<Compile
Include=
"Implementation\Outlining\
VisualStudio14
OutliningTaggerProvider.Tag.cs"
/>
<Compile
Include=
"Implementation\Outlining\RegionCollector.cs"
/>
<Compile
Include=
"Implementation\Peek\DefinitionPeekableItem.cs"
/>
<Compile
Include=
"Implementation\Peek\ExternalFilePeekableItem.cs"
/>
...
...
src/EditorFeatures/Core/Implementation/Outlining/OutliningTaggerProvider.Tag.cs
→
src/EditorFeatures/Core/Implementation/Outlining/
VisualStudio14
OutliningTaggerProvider.Tag.cs
浏览文件 @
618e0e1f
...
...
@@ -12,7 +12,7 @@
namespace
Microsoft.CodeAnalysis.Editor.Implementation.Outlining
{
internal
partial
class
OutliningTaggerProvider
internal
partial
class
VisualStudio14
OutliningTaggerProvider
{
// Our implementation of an outlining region tag. The collapsedHintForm
// is dynamically created using an elision buffer over the actual text
...
...
src/EditorFeatures/Core/Implementation/Outlining/OutliningTaggerProvider.cs
→
src/EditorFeatures/Core/Implementation/Outlining/
VisualStudio14
OutliningTaggerProvider.cs
浏览文件 @
618e0e1f
...
...
@@ -30,14 +30,14 @@ namespace Microsoft.CodeAnalysis.Editor.Implementation.Outlining
/// persist them to the SUO file to persist this data across sessions.
/// </summary>
[
Export
(
typeof
(
ITaggerProvider
))]
[
Export
(
typeof
(
OutliningTaggerProvider
))]
[
Export
(
typeof
(
VisualStudio14
OutliningTaggerProvider
))]
[
TagType
(
typeof
(
IOutliningRegionTag
))]
[
ContentType
(
ContentTypeNames
.
RoslynContentType
)]
internal
partial
class
OutliningTaggerProvider
:
internal
partial
class
VisualStudio14
OutliningTaggerProvider
:
AbstractOutliningTaggerProvider
<
IOutliningRegionTag
>
{
[
ImportingConstructor
]
public
OutliningTaggerProvider
(
public
VisualStudio14
OutliningTaggerProvider
(
IForegroundNotificationService
notificationService
,
ITextEditorFactoryService
textEditorFactoryService
,
IEditorOptionsFactoryService
editorOptionsFactoryService
,
...
...
src/EditorFeatures/Test/Outlining/OutliningTaggerTests.cs
浏览文件 @
618e0e1f
...
...
@@ -128,7 +128,7 @@ private static async Task<List<IOutliningRegionTag>> GetTagsFromWorkspaceAsync(T
var
editorService
=
workspace
.
GetService
<
IEditorOptionsFactoryService
>();
var
projectionService
=
workspace
.
GetService
<
IProjectionBufferFactoryService
>();
var
provider
=
new
OutliningTaggerProvider
(
var
provider
=
new
VisualStudio14
OutliningTaggerProvider
(
workspace
.
ExportProvider
.
GetExportedValue
<
IForegroundNotificationService
>(),
textService
,
editorService
,
projectionService
,
AggregateAsynchronousOperationListener
.
EmptyListeners
);
...
...
src/EditorFeatures/Test/Tagging/AsynchronousTaggerTests.cs
浏览文件 @
618e0e1f
...
...
@@ -98,7 +98,7 @@ public async Task TestSynchronousOutlining()
{
WpfTestCase
.
RequireWpfFact
(
$"
{
nameof
(
AsynchronousTaggerTests
)}
.
{
nameof
(
TestSynchronousOutlining
)}
creates asynchronous taggers"
);
var
tagProvider
=
new
OutliningTaggerProvider
(
var
tagProvider
=
new
VisualStudio14
OutliningTaggerProvider
(
workspace
.
GetService
<
IForegroundNotificationService
>(),
workspace
.
GetService
<
ITextEditorFactoryService
>(),
workspace
.
GetService
<
IEditorOptionsFactoryService
>(),
...
...
src/VisualStudio/Core/Def/Implementation/LanguageService/AbstractLanguageService`3.cs
浏览文件 @
618e0e1f
...
...
@@ -221,7 +221,7 @@ private bool StartsWithRegionTag(ITextSnapshotLine line)
private
void
EnsureOutliningTagsComputed
(
IWpfTextView
wpfTextView
)
{
// We need to get our outlining tag source to notify it to start blocking
var
outliningTaggerProvider
=
this
.
Package
.
ComponentModel
.
GetService
<
OutliningTaggerProvider
>();
var
outliningTaggerProvider
=
this
.
Package
.
ComponentModel
.
GetService
<
VisualStudio14
OutliningTaggerProvider
>();
var
subjectBuffer
=
wpfTextView
.
TextBuffer
;
var
snapshot
=
subjectBuffer
.
CurrentSnapshot
;
...
...
src/VisualStudio/Core/Def/Implementation/Workspace/VisualStudioSymbolNavigationService.cs
浏览文件 @
618e0e1f
...
...
@@ -35,11 +35,11 @@ internal partial class VisualStudioSymbolNavigationService : ForegroundThreadAff
private
readonly
ITextEditorFactoryService
_textEditorFactoryService
;
private
readonly
ITextDocumentFactoryService
_textDocumentFactoryService
;
private
readonly
IMetadataAsSourceFileService
_metadataAsSourceFileService
;
private
readonly
OutliningTaggerProvider
_outliningTaggerProvider
;
private
readonly
VisualStudio14
OutliningTaggerProvider
_outliningTaggerProvider
;
public
VisualStudioSymbolNavigationService
(
SVsServiceProvider
serviceProvider
,
OutliningTaggerProvider
outliningTaggerProvider
)
VisualStudio14
OutliningTaggerProvider
outliningTaggerProvider
)
{
_serviceProvider
=
serviceProvider
;
_outliningTaggerProvider
=
outliningTaggerProvider
;
...
...
src/VisualStudio/Core/Def/Implementation/Workspace/VisualStudioSymbolNavigationServiceFactory.cs
浏览文件 @
618e0e1f
...
...
@@ -17,7 +17,7 @@ internal class VisualStudioSymbolNavigationServiceFactory : IWorkspaceServiceFac
[
ImportingConstructor
]
private
VisualStudioSymbolNavigationServiceFactory
(
SVsServiceProvider
serviceProvider
,
[
Import
]
OutliningTaggerProvider
outliningTaggerProvider
)
[
Import
]
VisualStudio14
OutliningTaggerProvider
outliningTaggerProvider
)
{
_singleton
=
new
VisualStudioSymbolNavigationService
(
serviceProvider
,
outliningTaggerProvider
);
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录