Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
lwm1986
roslyn
提交
501f7ee3
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,发现更多精彩内容 >>
提交
501f7ee3
编写于
6月 10, 2020
作者:
D
David Barbet
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
address more feedback
上级
39f62eb5
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
12 addition
and
10 deletion
+12
-10
src/EditorFeatures/TestUtilities/LanguageServer/AbstractLanguageServerProtocolTests.cs
...ies/LanguageServer/AbstractLanguageServerProtocolTests.cs
+0
-2
src/Features/LanguageServer/Protocol/Extensions/Extensions.cs
...Features/LanguageServer/Protocol/Extensions/Extensions.cs
+2
-2
src/Features/LanguageServer/Protocol/Handler/Definitions/AbstractGoToDefinitionHandler.cs
...ocol/Handler/Definitions/AbstractGoToDefinitionHandler.cs
+2
-2
src/Features/LanguageServer/Protocol/Handler/Definitions/GoToDefinitionHandler.cs
...ver/Protocol/Handler/Definitions/GoToDefinitionHandler.cs
+1
-1
src/Features/LanguageServer/Protocol/Handler/Definitions/GoToTypeDefinitionHandler.cs
...Protocol/Handler/Definitions/GoToTypeDefinitionHandler.cs
+1
-1
src/Features/LanguageServer/Protocol/Handler/ProjectContext/GetTextDocumentWithContextHandler.cs
...ndler/ProjectContext/GetTextDocumentWithContextHandler.cs
+1
-1
src/VisualStudio/Core/Def/Implementation/ProjectSystem/MiscellaneousFilesWorkspace.cs
...plementation/ProjectSystem/MiscellaneousFilesWorkspace.cs
+5
-1
未找到文件。
src/EditorFeatures/TestUtilities/LanguageServer/AbstractLanguageServerProtocolTests.cs
浏览文件 @
501f7ee3
...
...
@@ -72,8 +72,6 @@ protected virtual ExportProvider GetExportProvider()
typeof
(
IRequestHandler
).
Assembly
,
typeof
(
IRequestHandler
));
var
executeCommandHandlerTypes
=
DesktopTestHelpers
.
GetAllTypesImplementingGivenInterface
(
typeof
(
IExecuteWorkspaceCommandHandler
).
Assembly
,
typeof
(
IExecuteWorkspaceCommandHandler
));
var
solutionProviderTypes
=
DesktopTestHelpers
.
GetAllTypesImplementingGivenInterface
(
typeof
(
TestLspSolutionProvider
).
Assembly
,
typeof
(
ILspSolutionProvider
));
var
exportProviderFactory
=
ExportProviderCache
.
GetOrCreateExportProviderFactory
(
TestExportProvider
.
EntireAssemblyCatalogWithCSharpAndVisualBasic
.
WithPart
(
typeof
(
LanguageServerProtocol
))
...
...
src/Features/LanguageServer/Protocol/Extensions/Extensions.cs
浏览文件 @
501f7ee3
...
...
@@ -40,7 +40,7 @@ public static ImmutableArray<Document> GetDocuments(this Solution solution, Uri
return
documentIds
.
SelectAsArray
(
id
=>
solution
.
GetRequiredDocument
(
id
));
}
public
static
ImmutableArray
<
Document
>
GetDocuments
FromProvider
(
this
ILspSolutionProvider
solutionProvider
,
Uri
uri
,
string
?
clientName
=
null
)
public
static
ImmutableArray
<
Document
>
GetDocuments
(
this
ILspSolutionProvider
solutionProvider
,
Uri
uri
,
string
?
clientName
)
{
var
documents
=
solutionProvider
.
GetDocuments
(
uri
);
...
...
@@ -65,7 +65,7 @@ public static ImmutableArray<Document> GetDocumentsFromProvider(this ILspSolutio
public
static
Document
?
GetDocument
(
this
ILspSolutionProvider
solutionProvider
,
TextDocumentIdentifier
documentIdentifier
,
string
?
clientName
=
null
)
{
var
documents
=
solutionProvider
.
GetDocuments
FromProvider
(
documentIdentifier
.
Uri
,
clientName
);
var
documents
=
solutionProvider
.
GetDocuments
(
documentIdentifier
.
Uri
,
clientName
);
if
(
documents
.
Length
==
0
)
{
...
...
src/Features/LanguageServer/Protocol/Handler/Definitions/AbstractGoToDefinitionHandler
Base
.cs
→
src/Features/LanguageServer/Protocol/Handler/Definitions/AbstractGoToDefinitionHandler.cs
浏览文件 @
501f7ee3
...
...
@@ -17,11 +17,11 @@
namespace
Microsoft.CodeAnalysis.LanguageServer.Handler
{
internal
abstract
class
AbstractGoToDefinitionHandler
Base
<
RequestType
,
ResponseType
>
:
AbstractRequestHandler
<
RequestType
,
ResponseType
>
internal
abstract
class
AbstractGoToDefinitionHandler
<
RequestType
,
ResponseType
>
:
AbstractRequestHandler
<
RequestType
,
ResponseType
>
{
private
readonly
IMetadataAsSourceFileService
_metadataAsSourceFileService
;
public
AbstractGoToDefinitionHandler
Base
(
IMetadataAsSourceFileService
metadataAsSourceFileService
,
ILspSolutionProvider
solutionProvider
)
:
base
(
solutionProvider
)
public
AbstractGoToDefinitionHandler
(
IMetadataAsSourceFileService
metadataAsSourceFileService
,
ILspSolutionProvider
solutionProvider
)
:
base
(
solutionProvider
)
=>
_metadataAsSourceFileService
=
metadataAsSourceFileService
;
protected
async
Task
<
LSP
.
Location
[
]>
GetDefinitionAsync
(
LSP
.
TextDocumentPositionParams
request
,
bool
typeOnly
,
string
?
clientName
,
CancellationToken
cancellationToken
)
...
...
src/Features/LanguageServer/Protocol/Handler/Definitions/GoToDefinitionHandler.cs
浏览文件 @
501f7ee3
...
...
@@ -16,7 +16,7 @@ namespace Microsoft.CodeAnalysis.LanguageServer.Handler
{
[
Shared
]
[
ExportLspMethod
(
LSP
.
Methods
.
TextDocumentDefinitionName
)]
internal
class
GoToDefinitionHandler
:
AbstractGoToDefinitionHandler
Base
<
LSP
.
TextDocumentPositionParams
,
LSP
.
Location
[
]>
internal
class
GoToDefinitionHandler
:
AbstractGoToDefinitionHandler
<
LSP
.
TextDocumentPositionParams
,
LSP
.
Location
[
]>
{
[
ImportingConstructor
]
[
Obsolete
(
MefConstruction
.
ImportingConstructorMessage
,
error
:
true
)]
...
...
src/Features/LanguageServer/Protocol/Handler/Definitions/GoToTypeDefinitionHandler.cs
浏览文件 @
501f7ee3
...
...
@@ -16,7 +16,7 @@ namespace Microsoft.CodeAnalysis.LanguageServer.Handler
{
[
Shared
]
[
ExportLspMethod
(
LSP
.
Methods
.
TextDocumentTypeDefinitionName
)]
internal
class
GoToTypeDefinitionHandler
:
AbstractGoToDefinitionHandler
Base
<
LSP
.
TextDocumentPositionParams
,
LSP
.
Location
[
]>
internal
class
GoToTypeDefinitionHandler
:
AbstractGoToDefinitionHandler
<
LSP
.
TextDocumentPositionParams
,
LSP
.
Location
[
]>
{
[
ImportingConstructor
]
[
Obsolete
(
MefConstruction
.
ImportingConstructorMessage
,
error
:
true
)]
...
...
src/Features/LanguageServer/Protocol/Handler/ProjectContext/GetTextDocumentWithContextHandler.cs
浏览文件 @
501f7ee3
...
...
@@ -32,7 +32,7 @@ public GetTextDocumentWithContextHandler(ILspSolutionProvider solutionProvider)
string
?
clientName
,
CancellationToken
cancellationToken
)
{
var
documents
=
SolutionProvider
.
GetDocuments
FromProvider
(
request
.
TextDocument
.
Uri
,
clientName
);
var
documents
=
SolutionProvider
.
GetDocuments
(
request
.
TextDocument
.
Uri
,
clientName
);
if
(!
documents
.
Any
())
{
...
...
src/VisualStudio/Core/Def/Implementation/ProjectSystem/MiscellaneousFilesWorkspace.cs
浏览文件 @
501f7ee3
...
...
@@ -63,7 +63,11 @@ internal sealed partial class MiscellaneousFilesWorkspace : Workspace, IRunningD
_foregroundThreadAffinitization
=
new
ForegroundThreadAffinitizedObject
(
threadingContext
,
assertIsForeground
:
false
);
_fileTrackingMetadataAsSourceService
=
fileTrackingMetadataAsSourceService
;
_lazyTextManager
=
new
Lazy
<
IVsTextManager
>(()
=>
(
IVsTextManager
)
serviceProvider
.
GetService
(
typeof
(
SVsTextManager
)));
_lazyTextManager
=
new
Lazy
<
IVsTextManager
>(()
=>
{
_foregroundThreadAffinitization
.
AssertIsForeground
();
return
(
IVsTextManager
)
serviceProvider
.
GetService
(
typeof
(
SVsTextManager
));
});
var
runningDocumentTable
=
(
IVsRunningDocumentTable
)
serviceProvider
.
GetService
(
typeof
(
SVsRunningDocumentTable
));
_runningDocumentTableEventTracker
=
new
RunningDocumentTableEventTracker
(
threadingContext
,
editorAdaptersFactoryService
,
runningDocumentTable
,
this
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录