Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
lwm1986
roslyn
提交
d8363698
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,发现更多精彩内容 >>
提交
d8363698
编写于
3月 17, 2020
作者:
C
Cyrus Najmabadi
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Renames
上级
43ac3e52
变更
11
隐藏空白更改
内联
并排
Showing
11 changed file
with
17 addition
and
17 deletion
+17
-17
src/VisualStudio/Core/Def/Implementation/DesignerAttribute/IVisualStudioDesignerAttributeService.cs
...esignerAttribute/IVisualStudioDesignerAttributeService.cs
+1
-1
src/VisualStudio/Core/Def/Implementation/DesignerAttribute/VisualStudioDesignerAttributeService.cs
...DesignerAttribute/VisualStudioDesignerAttributeService.cs
+2
-2
src/VisualStudio/Core/Def/Implementation/DesignerAttribute/VisualStudioDesignerAttributeServiceFactory.cs
...rAttribute/VisualStudioDesignerAttributeServiceFactory.cs
+1
-1
src/VisualStudio/Core/Def/Implementation/ProjectTelemetry/IVisualStudioProjectTelemetryService.cs
.../ProjectTelemetry/IVisualStudioProjectTelemetryService.cs
+1
-1
src/VisualStudio/Core/Def/Implementation/ProjectTelemetry/VisualStudioProjectTelemetryService.cs
...n/ProjectTelemetry/VisualStudioProjectTelemetryService.cs
+2
-2
src/VisualStudio/Core/Def/Implementation/ProjectTelemetry/VisualStudioProjectTelemetryServiceFactory.cs
...ctTelemetry/VisualStudioProjectTelemetryServiceFactory.cs
+1
-1
src/VisualStudio/Core/Def/Implementation/TodoComments/IVisualStudioTodoCommentsService.cs
...entation/TodoComments/IVisualStudioTodoCommentsService.cs
+1
-1
src/VisualStudio/Core/Def/Implementation/TodoComments/VisualStudioTodoCommentsService.cs
...mentation/TodoComments/VisualStudioTodoCommentsService.cs
+3
-3
src/VisualStudio/Core/Def/Implementation/TodoComments/VisualStudioTodoCommentsServiceFactory.cs
...on/TodoComments/VisualStudioTodoCommentsServiceFactory.cs
+1
-1
src/VisualStudio/Core/Def/RoslynPackage.cs
src/VisualStudio/Core/Def/RoslynPackage.cs
+3
-3
src/VisualStudio/Core/Test.Next/Services/ServiceHubServicesTests.cs
...Studio/Core/Test.Next/Services/ServiceHubServicesTests.cs
+1
-1
未找到文件。
src/VisualStudio/Core/Def/Implementation/DesignerAttribute/IDesignerAttributeService.cs
→
src/VisualStudio/Core/Def/Implementation/DesignerAttribute/I
VisualStudio
DesignerAttributeService.cs
浏览文件 @
d8363698
...
...
@@ -11,7 +11,7 @@ namespace Microsoft.VisualStudio.LanguageServices.Implementation.DesignerAttribu
/// In process service responsible for listening to OOP notifications whether or not a file is
/// designable and then notifying the respective project systems about that information.
/// </summary>
internal
interface
IDesignerAttributeService
:
IWorkspaceService
internal
interface
I
VisualStudio
DesignerAttributeService
:
IWorkspaceService
{
/// <summary>
/// Called by a host to let this service know that it should start background
...
...
src/VisualStudio/Core/Def/Implementation/DesignerAttribute/VisualStudioDesignerAttributeService.cs
浏览文件 @
d8363698
...
...
@@ -28,7 +28,7 @@
namespace
Microsoft.VisualStudio.LanguageServices.Implementation.DesignerAttribute
{
internal
class
VisualStudioDesignerAttributeService
:
ForegroundThreadAffinitizedObject
,
IDesignerAttributeService
,
IDesignerAttributeListener
:
ForegroundThreadAffinitizedObject
,
I
VisualStudio
DesignerAttributeService
,
IDesignerAttributeListener
{
private
readonly
VisualStudioWorkspaceImpl
_workspace
;
...
...
@@ -85,7 +85,7 @@ private void OnWorkspaceChanged(object sender, WorkspaceChangeEventArgs e)
_cpsProjects
.
TryRemove
(
e
.
ProjectId
,
out
_
);
}
void
IDesignerAttributeService
.
Start
(
CancellationToken
cancellationToken
)
void
I
VisualStudio
DesignerAttributeService
.
Start
(
CancellationToken
cancellationToken
)
=>
_
=
StartAsync
(
cancellationToken
);
private
async
Task
StartAsync
(
CancellationToken
cancellationToken
)
...
...
src/VisualStudio/Core/Def/Implementation/DesignerAttribute/VisualStudioDesignerAttributeServiceFactory.cs
浏览文件 @
d8363698
...
...
@@ -11,7 +11,7 @@
namespace
Microsoft.VisualStudio.LanguageServices.Implementation.DesignerAttribute
{
[
ExportWorkspaceServiceFactory
(
typeof
(
IDesignerAttributeService
),
ServiceLayer
.
Host
),
Shared
]
[
ExportWorkspaceServiceFactory
(
typeof
(
I
VisualStudio
DesignerAttributeService
),
ServiceLayer
.
Host
),
Shared
]
internal
class
VisualStudioDesignerAttributeServiceFactory
:
IWorkspaceServiceFactory
{
private
readonly
IThreadingContext
_threadingContext
;
...
...
src/VisualStudio/Core/Def/Implementation/ProjectTelemetry/IProjectTelemetryService.cs
→
src/VisualStudio/Core/Def/Implementation/ProjectTelemetry/I
VisualStudio
ProjectTelemetryService.cs
浏览文件 @
d8363698
...
...
@@ -12,7 +12,7 @@ namespace Microsoft.VisualStudio.LanguageServices.Implementation.ProjectTelemetr
/// <summary>
/// In process service responsible for listening to OOP telemetry notifications.
/// </summary>
internal
interface
IProjectTelemetryService
:
IWorkspaceService
internal
interface
I
VisualStudio
ProjectTelemetryService
:
IWorkspaceService
{
/// <summary>
/// Called by a host to let this service know that it should start background
...
...
src/VisualStudio/Core/Def/Implementation/ProjectTelemetry/VisualStudioProjectTelemetryService.cs
浏览文件 @
d8363698
...
...
@@ -22,7 +22,7 @@
namespace
Microsoft.VisualStudio.LanguageServices.Implementation.ProjectTelemetry
{
internal
class
VisualStudioProjectTelemetryService
:
ForegroundThreadAffinitizedObject
,
IProjectTelemetryService
,
IProjectTelemetryListener
:
ForegroundThreadAffinitizedObject
,
I
VisualStudio
ProjectTelemetryService
,
IProjectTelemetryListener
{
private
const
string
EventPrefix
=
"VS/Compilers/Compilation/"
;
private
const
string
PropertyPrefix
=
"VS.Compilers.Compilation.Inputs."
;
...
...
@@ -55,7 +55,7 @@ internal class VisualStudioProjectTelemetryService
public
VisualStudioProjectTelemetryService
(
VisualStudioWorkspaceImpl
workspace
,
IThreadingContext
threadingContext
)
:
base
(
threadingContext
)
=>
_workspace
=
workspace
;
void
IProjectTelemetryService
.
Start
(
CancellationToken
cancellationToken
)
void
I
VisualStudio
ProjectTelemetryService
.
Start
(
CancellationToken
cancellationToken
)
=>
_
=
StartAsync
(
cancellationToken
);
private
async
Task
StartAsync
(
CancellationToken
cancellationToken
)
...
...
src/VisualStudio/Core/Def/Implementation/ProjectTelemetry/VisualStudioProjectTelemetryServiceFactory.cs
浏览文件 @
d8363698
...
...
@@ -13,7 +13,7 @@
namespace
Microsoft.VisualStudio.LanguageServices.Implementation.ProjectTelemetry
{
[
ExportWorkspaceServiceFactory
(
typeof
(
IProjectTelemetryService
),
ServiceLayer
.
Host
),
Shared
]
[
ExportWorkspaceServiceFactory
(
typeof
(
I
VisualStudio
ProjectTelemetryService
),
ServiceLayer
.
Host
),
Shared
]
internal
class
VisualStudioProjectTelemetryServiceFactory
:
IWorkspaceServiceFactory
{
private
readonly
IThreadingContext
_threadingContext
;
...
...
src/VisualStudio/Core/Def/Implementation/TodoComments/ITodoCommentsService.cs
→
src/VisualStudio/Core/Def/Implementation/TodoComments/I
VisualStudio
TodoCommentsService.cs
浏览文件 @
d8363698
...
...
@@ -12,7 +12,7 @@ namespace Microsoft.VisualStudio.LanguageServices.Implementation.TodoComments
/// <summary>
/// In process service responsible for listening to OOP todo comment notifications.
/// </summary>
internal
interface
ITodoCommentsService
:
IWorkspaceService
internal
interface
I
VisualStudio
TodoCommentsService
:
IWorkspaceService
{
/// <summary>
/// Called by a host to let this service know that it should start background
...
...
src/VisualStudio/Core/Def/Implementation/TodoComments/VisualStudioTodoCommentsService.cs
浏览文件 @
d8363698
...
...
@@ -26,7 +26,7 @@
namespace
Microsoft.VisualStudio.LanguageServices.Implementation.TodoComments
{
internal
class
VisualStudioTodoCommentsService
:
ForegroundThreadAffinitizedObject
,
ITodoCommentsService
,
ITodoCommentsListener
,
ITodoListProvider
:
ForegroundThreadAffinitizedObject
,
I
VisualStudio
TodoCommentsService
,
ITodoCommentsListener
,
ITodoListProvider
{
private
readonly
VisualStudioWorkspaceImpl
_workspace
;
private
readonly
EventListenerTracker
<
ITodoListProvider
>
_eventListenerTracker
;
...
...
@@ -65,7 +65,7 @@ private void OnWorkspaceChanged(object sender, WorkspaceChangeEventArgs e)
_documentToInfos
.
TryRemove
(
e
.
DocumentId
,
out
_
);
}
void
ITodoCommentsService
.
Start
(
CancellationToken
cancellationToken
)
void
I
VisualStudio
TodoCommentsService
.
Start
(
CancellationToken
cancellationToken
)
=>
_
=
StartAsync
(
cancellationToken
);
private
async
Task
StartAsync
(
CancellationToken
cancellationToken
)
...
...
@@ -120,7 +120,7 @@ private async Task StartWorkerAsync(CancellationToken cancellationToken)
/// <summary>
/// Callback from the OOP service back into us.
/// </summary>
public
Task
ReportTodoComment
s
Async
(
DocumentId
documentId
,
List
<
TodoCommentData
>
infos
,
CancellationToken
cancellationToken
)
public
Task
ReportTodoComment
Data
Async
(
DocumentId
documentId
,
List
<
TodoCommentData
>
infos
,
CancellationToken
cancellationToken
)
{
_workQueue
.
AddWork
(
new
DocumentAndComments
(
documentId
,
infos
.
ToImmutableArray
()));
return
Task
.
CompletedTask
;
...
...
src/VisualStudio/Core/Def/Implementation/TodoComments/VisualStudioTodoCommentsServiceFactory.cs
浏览文件 @
d8363698
...
...
@@ -16,7 +16,7 @@
namespace
Microsoft.VisualStudio.LanguageServices.Implementation.TodoComments
{
[
Export
(
typeof
(
ITodoListProvider
))]
[
ExportWorkspaceServiceFactory
(
typeof
(
ITodoCommentsService
),
ServiceLayer
.
Host
),
Shared
]
[
ExportWorkspaceServiceFactory
(
typeof
(
I
VisualStudio
TodoCommentsService
),
ServiceLayer
.
Host
),
Shared
]
internal
class
VisualStudioTodoCommentsServiceFactory
:
IWorkspaceServiceFactory
{
private
readonly
IThreadingContext
_threadingContext
;
...
...
src/VisualStudio/Core/Def/RoslynPackage.cs
浏览文件 @
d8363698
...
...
@@ -159,15 +159,15 @@ private async Task LoadComponentsBackgroundAsync(CancellationToken cancellationT
// Load the designer attribute service and tell it to start watching the solution for
// designable files.
var
designerAttributeService
=
_workspace
.
Services
.
GetRequiredService
<
IDesignerAttributeService
>();
var
designerAttributeService
=
_workspace
.
Services
.
GetRequiredService
<
I
VisualStudio
DesignerAttributeService
>();
designerAttributeService
.
Start
(
this
.
DisposalToken
);
// Load the telemetry service and tell it to start watching the solution for project info.
var
projectTelemetryService
=
_workspace
.
Services
.
GetRequiredService
<
IProjectTelemetryService
>();
var
projectTelemetryService
=
_workspace
.
Services
.
GetRequiredService
<
I
VisualStudio
ProjectTelemetryService
>();
projectTelemetryService
.
Start
(
this
.
DisposalToken
);
// Load the todo comments service and tell it to start watching the solution for new comments
var
todoCommentsService
=
_workspace
.
Services
.
GetRequiredService
<
ITodoCommentsService
>();
var
todoCommentsService
=
_workspace
.
Services
.
GetRequiredService
<
I
VisualStudio
TodoCommentsService
>();
todoCommentsService
.
Start
(
this
.
DisposalToken
);
}
...
...
src/VisualStudio/Core/Test.Next/Services/ServiceHubServicesTests.cs
浏览文件 @
d8363698
...
...
@@ -220,7 +220,7 @@ private class DesignerListener : IDesignerAttributeListener
private
readonly
TaskCompletionSource
<
IList
<
DesignerAttributeData
>>
_infosSource
=
new
TaskCompletionSource
<
IList
<
DesignerAttributeData
>>();
public
Task
<
IList
<
DesignerAttributeData
>>
Infos
=>
_infosSource
.
Task
;
public
Task
Re
gisterDesignerAttributes
Async
(
IList
<
DesignerAttributeData
>
infos
,
CancellationToken
cancellationToken
)
public
Task
Re
portDesignerAttributeData
Async
(
IList
<
DesignerAttributeData
>
infos
,
CancellationToken
cancellationToken
)
{
_infosSource
.
SetResult
(
infos
);
return
Task
.
CompletedTask
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录