Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
lwm1986
roslyn
提交
0116b53e
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,发现更多精彩内容 >>
提交
0116b53e
编写于
9月 22, 2020
作者:
C
Cyrus Najmabadi
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix tests
上级
2500ab70
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
0 addition
and
64 deletion
+0
-64
src/EditorFeatures/Core/Implementation/TodoComment/ITodoListProvider.cs
...ures/Core/Implementation/TodoComment/ITodoListProvider.cs
+0
-6
src/EditorFeatures/Core/Implementation/TodoComment/TodoItemBucket.cs
...eatures/Core/Implementation/TodoComment/TodoItemBucket.cs
+0
-39
src/VisualStudio/Core/Def/Implementation/TableDataSource/VisualStudioBaseTodoListTable.cs
...entation/TableDataSource/VisualStudioBaseTodoListTable.cs
+0
-8
src/VisualStudio/Core/Def/Implementation/TodoComments/VisualStudioTodoCommentsService.cs
...mentation/TodoComments/VisualStudioTodoCommentsService.cs
+0
-7
src/VisualStudio/Core/Test/Diagnostics/TodoListTableDataSourceTests.vb
...dio/Core/Test/Diagnostics/TodoListTableDataSourceTests.vb
+0
-4
未找到文件。
src/EditorFeatures/Core/Implementation/TodoComment/ITodoListProvider.cs
浏览文件 @
0116b53e
...
...
@@ -23,11 +23,5 @@ internal interface ITodoListProvider
event
EventHandler
<
TodoItemsUpdatedArgs
>
TodoListUpdated
;
ImmutableArray
<
TodoCommentData
>
GetTodoItems
(
Workspace
workspace
,
DocumentId
documentId
,
CancellationToken
cancellationToken
);
/// <summary>
/// Get current buckets stored our todo items are grouped into. Specific buckets can be retrieved by calling
/// <see cref="GetTodoItems"/>.
/// </summary>
ImmutableArray
<
TodoItemBucket
>
GetTodoItemBuckets
(
Workspace
workspace
,
CancellationToken
cancellationToken
);
}
}
src/EditorFeatures/Core/Implementation/TodoComment/TodoItemBucket.cs
已删除
100644 → 0
浏览文件 @
2500ab70
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
#
nullable
enable
namespace
Microsoft.CodeAnalysis.Editor
{
internal
readonly
struct
TodoItemBucket
{
/// <summary>
/// The identity of bucket group.
/// </summary>
public
readonly
object
Id
;
/// <summary>
/// <see cref="Workspace"/> this bucket is associated with.
/// </summary>
public
readonly
Workspace
Workspace
;
/// <summary>
/// <see cref="ProjectId"/> this bucket is associated with, or <see langword="null"/>.
/// </summary>
public
readonly
ProjectId
?
ProjectId
;
/// <summary>
/// <see cref="DocumentId"/> this bucket is associated with, or <see langword="null"/>.
/// </summary>
public
readonly
DocumentId
?
DocumentId
;
public
TodoItemBucket
(
object
id
,
Workspace
workspace
,
ProjectId
?
projectId
,
DocumentId
?
documentId
)
{
Id
=
id
;
Workspace
=
workspace
;
ProjectId
=
projectId
;
DocumentId
=
documentId
;
}
}
}
src/VisualStudio/Core/Def/Implementation/TableDataSource/VisualStudioBaseTodoListTable.cs
浏览文件 @
0116b53e
...
...
@@ -82,8 +82,6 @@ public TableDataSource(Workspace workspace, ITodoListProvider todoListProvider,
_todoListProvider
=
todoListProvider
;
_todoListProvider
.
TodoListUpdated
+=
OnTodoListUpdated
;
PopulateInitialData
(
workspace
,
_todoListProvider
);
}
public
override
string
DisplayName
=>
ServicesVSResources
.
CSharp_VB_Todo_List_Table_Data_Source
;
...
...
@@ -146,12 +144,6 @@ public override IEnumerable<TodoTableItem> Order(IEnumerable<TodoTableItem> grou
.
ThenBy
(
d
=>
d
.
Data
.
OriginalColumn
);
}
private
void
PopulateInitialData
(
Workspace
workspace
,
ITodoListProvider
todoListService
)
{
foreach
(
var
bucket
in
todoListService
.
GetTodoItemBuckets
(
workspace
,
cancellationToken
:
CancellationToken
.
None
))
OnDataAddedOrChanged
(
new
TodoItemsUpdatedArgs
(
bucket
.
Id
,
bucket
.
Workspace
,
solution
:
null
,
bucket
.
ProjectId
,
bucket
.
DocumentId
,
ImmutableArray
<
TodoCommentData
>.
Empty
));
}
private
void
OnTodoListUpdated
(
object
sender
,
TodoItemsUpdatedArgs
e
)
{
if
(
_workspace
!=
e
.
Workspace
)
...
...
src/VisualStudio/Core/Def/Implementation/TodoComments/VisualStudioTodoCommentsService.cs
浏览文件 @
0116b53e
...
...
@@ -211,13 +211,6 @@ public ImmutableArray<TodoCommentData> GetTodoItems(Workspace workspace, Documen
:
ImmutableArray
<
TodoCommentData
>.
Empty
;
}
public
ImmutableArray
<
TodoItemBucket
>
GetTodoItemBuckets
(
Workspace
workspace
,
CancellationToken
cancellationToken
)
{
// Don't need to implement this. OOP pushes all items over to VS. So there's no need
return
SpecializedCollections
.
EmptyEnumerable
<
UpdatedEventArgs
>();
}
/// <summary>
/// Callback from the OOP service back into us.
/// </summary>
...
...
src/VisualStudio/Core/Test/Diagnostics/TodoListTableDataSourceTests.vb
浏览文件 @
0116b53e
...
...
@@ -390,10 +390,6 @@ Namespace Microsoft.VisualStudio.LanguageServices.UnitTests.Diagnostics
Return
Items
.
Where
(
Function
(
t
)
t
.
DocumentId
Is
documentId
).
ToImmutableArrayOrEmpty
()
End
Function
Public
Function
GetTodoItemsUpdatedEventArgs
(
workspace
As
Workspace
,
cancellationToken
As
CancellationToken
)
As
IEnumerable
(
Of
UpdatedEventArgs
)
Implements
ITodoListProvider
.
GetTodoItemsUpdatedEventArgs
Return
Items
.
Select
(
Function
(
t
)
New
UpdatedEventArgs
(
Tuple
.
Create
(
Me
,
t
.
DocumentId
),
workspace
,
t
.
DocumentId
.
ProjectId
,
t
.
DocumentId
)).
ToImmutableArray
()
End
Function
Public
Sub
RaiseTodoListUpdated
(
workspace
As
Workspace
)
Dim
map
=
Items
.
ToLookup
(
Function
(
t
)
t
.
DocumentId
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录