Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
lwm1986
roslyn
提交
ffa4e6d2
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,发现更多精彩内容 >>
未验证
提交
ffa4e6d2
编写于
9月 19, 2020
作者:
S
Sam Harwell
提交者:
GitHub
9月 19, 2020
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #47554 from sharwell/disallow-fail
Initialize FatalError handlers in VS and OOP
上级
6e4a7819
c560a934
变更
11
隐藏空白更改
内联
并排
Showing
11 changed file
with
21 addition
and
13 deletion
+21
-13
src/EditorFeatures/Test2/IntelliSense/CSharpCompletionCommandHandlerTests.vb
...Test2/IntelliSense/CSharpCompletionCommandHandlerTests.vb
+1
-1
src/VisualStudio/Core/Def/Implementation/ProjectSystem/VisualStudioWorkspace.cs
...Def/Implementation/ProjectSystem/VisualStudioWorkspace.cs
+6
-0
src/VisualStudio/Core/Test/Diagnostics/ExternalDiagnosticUpdateSourceTests.vb
...e/Test/Diagnostics/ExternalDiagnosticUpdateSourceTests.vb
+3
-1
src/VisualStudio/Core/Test/Venus/DocumentService_IntegrationTests.vb
...tudio/Core/Test/Venus/DocumentService_IntegrationTests.vb
+1
-3
src/VisualStudio/IntegrationTest/IntegrationTests/CSharp/CSharpReferenceHighlighting.cs
...st/IntegrationTests/CSharp/CSharpReferenceHighlighting.cs
+1
-2
src/VisualStudio/IntegrationTest/IntegrationTests/VisualBasic/BasicKeywordHighlighting.cs
.../IntegrationTests/VisualBasic/BasicKeywordHighlighting.cs
+1
-1
src/VisualStudio/IntegrationTest/TestUtilities/OutOfProcess/Editor_OutOfProc.cs
...rationTest/TestUtilities/OutOfProcess/Editor_OutOfProc.cs
+6
-0
src/VisualStudio/IntegrationTest/TestUtilities/WellKnownCommandNames.cs
...io/IntegrationTest/TestUtilities/WellKnownCommandNames.cs
+1
-0
src/Workspaces/Remote/ServiceHub/Microsoft.CodeAnalysis.Remote.ServiceHub.csproj
...erviceHub/Microsoft.CodeAnalysis.Remote.ServiceHub.csproj
+0
-1
src/Workspaces/Remote/ServiceHub/Services/BrokeredServiceBase.cs
...kspaces/Remote/ServiceHub/Services/BrokeredServiceBase.cs
+0
-2
src/Workspaces/Remote/ServiceHub/Services/ServiceBase.cs
src/Workspaces/Remote/ServiceHub/Services/ServiceBase.cs
+1
-2
未找到文件。
src/EditorFeatures/Test2/IntelliSense/CSharpCompletionCommandHandlerTests.vb
浏览文件 @
ffa4e6d2
...
...
@@ -2502,7 +2502,7 @@ public class Goo
End
Function
<
WorkItem
(
544940
,
"http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/544940"
)
>
<
WpfTheory
,
CombinatorialData
>
<
WpfTheory
(
Skip
:
=
"https://github.com/dotnet/roslyn/issues/47610"
)
,
CombinatorialData
>
<
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
Completion
)
>
Public
Async
Function
LocalFunctionAttributeNamedPropertyCompletionCommitWithTab
(
showCompletionInArgumentLists
As
Boolean
)
As
Task
Using
state
=
TestStateFactory
.
CreateCSharpTestState
(
...
...
src/VisualStudio/Core/Def/Implementation/ProjectSystem/VisualStudioWorkspace.cs
浏览文件 @
ffa4e6d2
...
...
@@ -8,6 +8,7 @@
using
System.Collections.Generic
;
using
System.Threading
;
using
Microsoft.CodeAnalysis
;
using
Microsoft.CodeAnalysis.ErrorReporting
;
using
Microsoft.CodeAnalysis.FindSymbols
;
using
Microsoft.CodeAnalysis.Host
;
using
Microsoft.CodeAnalysis.Shared.Extensions
;
...
...
@@ -24,6 +25,11 @@ public abstract class VisualStudioWorkspace : Workspace
private
BackgroundCompiler
?
_backgroundCompiler
;
private
readonly
BackgroundParser
_backgroundParser
;
static
VisualStudioWorkspace
()
{
WatsonReporter
.
InitializeFatalErrorHandlers
();
}
internal
VisualStudioWorkspace
(
HostServices
hostServices
)
:
base
(
hostServices
,
WorkspaceKind
.
Host
)
{
...
...
src/VisualStudio/Core/Test/Diagnostics/ExternalDiagnosticUpdateSourceTests.vb
浏览文件 @
ffa4e6d2
...
...
@@ -327,9 +327,11 @@ Namespace Microsoft.VisualStudio.LanguageServices.UnitTests.Diagnostics
source
.
AddNewErrors
(
projectId1
,
GetDiagnosticData
(
projectId1
))
Await
waiter
.
ExpeditedWaitAsync
()
Dim
numberOfUpdateCalls
=
0
AddHandler
source
.
BuildProgressChanged
,
Sub
(
o
,
progress
)
If
progress
=
ExternalErrorDiagnosticUpdateSource
.
BuildProgress
.
Updated
Then
Assert
.
Equal
(
1
,
source
.
GetBuildErrors
().
Length
)
numberOfUpdateCalls
+=
1
Assert
.
Equal
(
numberOfUpdateCalls
,
source
.
GetBuildErrors
().
Length
)
ElseIf
progress
=
ExternalErrorDiagnosticUpdateSource
.
BuildProgress
.
Done
Then
Assert
.
Equal
(
2
,
source
.
GetBuildErrors
().
Length
)
End
If
...
...
src/VisualStudio/Core/Test/Venus/DocumentService_IntegrationTests.vb
浏览文件 @
ffa4e6d2
...
...
@@ -401,15 +401,13 @@ class { }
Public
Sub
AddCommandTarget
(
target
As
IOleCommandTarget
,
ByRef
[
next
]
As
IOleCommandTarget
)
Implements
IFindAllReferencesWindow
.
AddCommandTarget
Throw
New
NotImplementedException
()
End
Sub
#End Region
Public
Sub
SetProgress
(
progress
As
Double
)
Implements
IFindAllReferencesWindow
.
SetProgress
Throw
New
NotImplementedException
()
End
Sub
Public
Sub
SetProgress
(
completed
As
Integer
,
maximum
As
Integer
)
Implements
IFindAllReferencesWindow
.
SetProgress
Throw
New
NotImplementedException
()
End
Sub
#End Region
End
Class
Private
Class
TableDataSink
...
...
src/VisualStudio/IntegrationTest/IntegrationTests/CSharp/CSharpReferenceHighlighting.cs
浏览文件 @
ffa4e6d2
...
...
@@ -79,8 +79,7 @@ void M()
}"
;
VisualStudio
.
Editor
.
SetText
(
text
);
VisualStudio
.
Editor
.
PlaceCaret
(
"x"
);
VisualStudio
.
Workspace
.
WaitForAsyncOperations
(
Helper
.
HangMitigatingTimeout
,
FeatureAttribute
.
ReferenceHighlighting
);
VisualStudio
.
ExecuteCommand
(
"Edit.NextHighlightedReference"
);
VisualStudio
.
Editor
.
InvokeNavigateToNextHighlightedReference
();
VisualStudio
.
Workspace
.
WaitForAsyncOperations
(
Helper
.
HangMitigatingTimeout
,
FeatureAttribute
.
ReferenceHighlighting
);
VisualStudio
.
Editor
.
Verify
.
CurrentLineText
(
"x$$ = 3;"
,
assertCaretPosition
:
true
,
trimWhitespace
:
true
);
}
...
...
src/VisualStudio/IntegrationTest/IntegrationTests/VisualBasic/BasicKeywordHighlighting.cs
浏览文件 @
ffa4e6d2
...
...
@@ -35,7 +35,7 @@ End Sub
End Class"
);
Verify
(
"To"
,
4
);
VisualStudio
.
E
xecuteCommand
(
"Edit.NextHighlightedReference"
);
VisualStudio
.
E
ditor
.
InvokeNavigateToNextHighlightedReference
(
);
VisualStudio
.
Editor
.
Verify
.
CurrentLineText
(
"For a = 0 To 1 Step$$ 1"
,
assertCaretPosition
:
true
,
trimWhitespace
:
true
);
}
...
...
src/VisualStudio/IntegrationTest/TestUtilities/OutOfProcess/Editor_OutOfProc.cs
浏览文件 @
ffa4e6d2
...
...
@@ -86,6 +86,12 @@ public ImmutableArray<TextSpan> GetTagSpans(string tagId)
return
builder
.
ToImmutableAndFree
();
}
public
void
InvokeNavigateToNextHighlightedReference
()
{
_instance
.
Workspace
.
WaitForAsyncOperations
(
Helper
.
HangMitigatingTimeout
,
FeatureAttribute
.
ReferenceHighlighting
);
_instance
.
ExecuteCommand
(
WellKnownCommandNames
.
Edit_NextHighlightedReference
);
}
public
string
GetCurrentCompletionItem
()
{
WaitForCompletionSet
();
...
...
src/VisualStudio/IntegrationTest/TestUtilities/WellKnownCommandNames.cs
浏览文件 @
ffa4e6d2
...
...
@@ -25,6 +25,7 @@ public static class WellKnownCommandNames
public
const
string
Edit_LineEnd
=
"Edit.LineEnd"
;
public
const
string
Edit_LineStartExtend
=
"Edit.LineStartExtend"
;
public
const
string
Edit_LineEndExtend
=
"Edit.LineEndExtend"
;
public
const
string
Edit_NextHighlightedReference
=
"Edit.NextHighlightedReference"
;
public
const
string
Edit_SelectAll
=
"Edit.SelectAll"
;
public
const
string
Edit_Copy
=
"Edit.Copy"
;
public
const
string
Edit_Cut
=
"Edit.Cut"
;
...
...
src/Workspaces/Remote/ServiceHub/Microsoft.CodeAnalysis.Remote.ServiceHub.csproj
浏览文件 @
ffa4e6d2
...
...
@@ -41,7 +41,6 @@
<ItemGroup>
<Compile
Include=
"..\..\..\VisualStudio\Core\Def\Implementation\Watson\WatsonExtensions.cs"
Link=
"Services\WorkspaceTelemetry\WatsonExtensions.cs"
/>
<Compile
Include=
"..\..\..\VisualStudio\Core\Def\Implementation\Watson\WatsonReporter.cs"
Link=
"Services\WorkspaceTelemetry\WatsonReporter.cs"
/>
<Compile
Include=
"..\..\..\VisualStudio\Core\Def\Implementation\Watson\WatsonTraceListener.cs"
Link=
"Services\WorkspaceTelemetry\WatsonTraceListener.cs"
/>
<Compile
Include=
"..\..\..\VisualStudio\Core\Def\Telemetry\VSTelemetryCache.cs"
Link=
"Services\WorkspaceTelemetry\VSTelemetryCache.cs"
/>
<Compile
Include=
"..\..\..\VisualStudio\Core\Def\Telemetry\VSTelemetryLogger.cs"
Link=
"Services\WorkspaceTelemetry\VSTelemetryLogger.cs"
/>
<Compile
Include=
"..\..\..\VisualStudio\Core\Def\Telemetry\AbstractWorkspaceTelemetryService.cs"
Link=
"Services\WorkspaceTelemetry\AbstractWorkspaceTelemetryService.cs"
/>
...
...
src/Workspaces/Remote/ServiceHub/Services/BrokeredServiceBase.cs
浏览文件 @
ffa4e6d2
...
...
@@ -35,8 +35,6 @@ internal abstract partial class BrokeredServiceBase : IDisposable
static
BrokeredServiceBase
()
{
// Use a TraceListener hook to intercept assertion failures and report them through FatalError.
WatsonTraceListener
.
Install
();
}
protected
BrokeredServiceBase
(
in
ServiceConstructionArguments
arguments
)
...
...
src/Workspaces/Remote/ServiceHub/Services/ServiceBase.cs
浏览文件 @
ffa4e6d2
...
...
@@ -43,8 +43,7 @@ internal abstract class ServiceBase : IDisposable
static
ServiceBase
()
{
// Use a TraceListener hook to intercept assertion failures and report them through FatalError.
WatsonTraceListener
.
Install
();
WatsonReporter
.
InitializeFatalErrorHandlers
();
}
protected
ServiceBase
(
IServiceProvider
serviceProvider
,
Stream
stream
,
IEnumerable
<
JsonConverter
>?
jsonConverters
=
null
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录