Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
lwm1986
roslyn
提交
01d60a47
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,发现更多精彩内容 >>
未验证
提交
01d60a47
编写于
9月 30, 2019
作者:
J
Jinu
提交者:
GitHub
9月 30, 2019
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #38951 from nnpcYvIVl/spelling-15
Spelling fixes
上级
71a39cc2
1161e854
变更
14
隐藏空白更改
内联
并排
Showing
14 changed file
with
21 addition
and
21 deletion
+21
-21
src/EditorFeatures/CSharp/CompleteStatement/CompleteStatementCommandHandler.cs
...harp/CompleteStatement/CompleteStatementCommandHandler.cs
+1
-1
src/EditorFeatures/CSharpTest/ChangeSignature/ChangeSignatureTests.cs
...atures/CSharpTest/ChangeSignature/ChangeSignatureTests.cs
+1
-1
src/EditorFeatures/CSharpTest/CodeActions/ConvertLinq/ConvertLinqQueryToForEachTests.cs
...CodeActions/ConvertLinq/ConvertLinqQueryToForEachTests.cs
+1
-1
src/EditorFeatures/Core.Wpf/Classification/ClassificationTypeFormatDefinitions.cs
...Wpf/Classification/ClassificationTypeFormatDefinitions.cs
+3
-3
src/EditorFeatures/Core.Wpf/Options/LegacyEditorConfigDocumentOptionsProvider.DocumentOptions.cs
...acyEditorConfigDocumentOptionsProvider.DocumentOptions.cs
+1
-1
src/EditorFeatures/Core.Wpf/QuickInfo/IContentControlService.cs
...itorFeatures/Core.Wpf/QuickInfo/IContentControlService.cs
+2
-2
src/EditorFeatures/Core.Wpf/Structure/AbstractStructureTaggerProvider.cs
...res/Core.Wpf/Structure/AbstractStructureTaggerProvider.cs
+1
-1
src/EditorFeatures/Core/FindUsages/FindUsagesHelpers.cs
src/EditorFeatures/Core/FindUsages/FindUsagesHelpers.cs
+1
-1
src/EditorFeatures/Core/Host/IStreamingFindReferencesPresenter.cs
...orFeatures/Core/Host/IStreamingFindReferencesPresenter.cs
+1
-1
src/EditorFeatures/Core/Implementation/IntelliSense/AsyncCompletion/Helpers.cs
...re/Implementation/IntelliSense/AsyncCompletion/Helpers.cs
+2
-2
src/EditorFeatures/Core/Implementation/KeywordHighlighting/HighlighterViewTaggerProvider.cs
...tion/KeywordHighlighting/HighlighterViewTaggerProvider.cs
+1
-1
src/EditorFeatures/Core/Shared/Preview/PreviewSolutionCrawlerRegistrationService.cs
...ared/Preview/PreviewSolutionCrawlerRegistrationService.cs
+1
-1
src/EditorFeatures/Test/Diagnostics/DiagnosticsSquiggleTaggerProviderTests.cs
...est/Diagnostics/DiagnosticsSquiggleTaggerProviderTests.cs
+4
-4
src/EditorFeatures/Test/EditAndContinue/EditAndContinueWorkspaceServiceTests.cs
...t/EditAndContinue/EditAndContinueWorkspaceServiceTests.cs
+1
-1
未找到文件。
src/EditorFeatures/CSharp/CompleteStatement/CompleteStatementCommandHandler.cs
浏览文件 @
01d60a47
...
...
@@ -391,7 +391,7 @@ private static bool SemicolonIsMissing(SyntaxNode currentNode)
/// preceding the semicolon. These delimiters are not part of the expression, but they behave like an argument
/// list for the purposes of identifying relevant places for statement completion:</para>
/// <list type="bullet">
/// <item><description>The closing delimiter is typically inserted by the Automatic Brace Comp
el
tion feature.</description></item>
/// <item><description>The closing delimiter is typically inserted by the Automatic Brace Comp
le
tion feature.</description></item>
/// <item><description>It is not syntactically valid to place a semicolon <em>directly</em> within the delimiters.</description></item>
/// </list>
/// </remarks>
...
...
src/EditorFeatures/CSharpTest/ChangeSignature/ChangeSignatureTests.cs
浏览文件 @
01d60a47
...
...
@@ -280,7 +280,7 @@ public class C3
}
else
if
(
updatedDocument
.
Name
==
"C3.cs"
)
{
// shouldn't change unchangable document
// shouldn't change unchang
e
able document
Assert
.
Contains
(
"bool _x = C1.M(1, 2);"
,
(
await
updatedDocument
.
GetTextAsync
(
CancellationToken
.
None
)).
ToString
());
}
}
...
...
src/EditorFeatures/CSharpTest/CodeActions/ConvertLinq/ConvertLinqQueryToForEachTests.cs
浏览文件 @
01d60a47
...
...
@@ -1824,7 +1824,7 @@ List<int> M(IEnumerable<int> q)
}
"
;
// No support for expres
is
on bodied constructors yet.
// No support for expres
si
on bodied constructors yet.
await
TestMissingAsync
(
source
);
}
...
...
src/EditorFeatures/Core.Wpf/Classification/ClassificationTypeFormatDefinitions.cs
浏览文件 @
01d60a47
...
...
@@ -162,11 +162,11 @@ public SymbolStaticFormatDefinition()
// User Types - * and User Members - * are ordered after Keyword
// so that, in the case both classifications are applied to the same
// span, the styling for the identifier type would be cho
o
sen.
// span, the styling for the identifier type would be chosen.
// User Types - * and User Members - * are ordered before Symbol - Static
// so that the font styling cho
o
sen for static symbols would override the
// styling cho
o
sen for specific identifier types.
// so that the font styling chosen for static symbols would override the
// styling chosen for specific identifier types.
#
region
User
Types
-
Classes
[
Export
(
typeof
(
EditorFormatDefinition
))]
[
ClassificationType
(
ClassificationTypeNames
=
ClassificationTypeNames
.
ClassName
)]
...
...
src/EditorFeatures/Core.Wpf/Options/LegacyEditorConfigDocumentOptionsProvider.DocumentOptions.cs
浏览文件 @
01d60a47
...
...
@@ -35,7 +35,7 @@ public bool TryGetDocumentOption(OptionKey option, out object value)
return
false
;
}
// Temporarly map our old Dictionary<string, object> to a Dictionary<string, string>. This can go away once we either
// Temporar
i
ly map our old Dictionary<string, object> to a Dictionary<string, string>. This can go away once we either
// eliminate the legacy editorconfig support, or we change IEditorConfigStorageLocation.TryGetOption to take
// some interface that lets us pass both the Dictionary<string, string> we get from the new system, and the
// Dictionary<string, object> from the old system.
...
...
src/EditorFeatures/Core.Wpf/QuickInfo/IContentControlService.cs
浏览文件 @
01d60a47
...
...
@@ -19,7 +19,7 @@ internal interface IContentControlService : IWorkspaceService
/// get <see cref="DisposableToolTip"/> /> from the given <paramref name="textBuffer"/>'s <paramref name="contentSpan"/>
/// based on given <paramref name="baseDocument"/>
///
/// tooltip will show embeded textview which shows code from the content span of the text buffer with the context of the
/// tooltip will show embed
d
ed textview which shows code from the content span of the text buffer with the context of the
/// base document
/// </summary>
/// <param name="baseDocument">document to be used as a context for the code</param>
...
...
@@ -32,7 +32,7 @@ internal interface IContentControlService : IWorkspaceService
/// <summary>
/// get <see cref="DisposableToolTip"/> /> from the given <paramref name="textBuffer"/>
///
/// tooltip will show embeded textview with whole content from the buffer. if the buffer has associated tags
/// tooltip will show embed
d
ed textview with whole content from the buffer. if the buffer has associated tags
/// in its property bag, it will be picked up by taggers associated with the tooltip
/// </summary>
DisposableToolTip
CreateDisposableToolTip
(
ITextBuffer
textBuffer
,
object
backgroundResourceKey
);
...
...
src/EditorFeatures/Core.Wpf/Structure/AbstractStructureTaggerProvider.cs
浏览文件 @
01d60a47
...
...
@@ -166,7 +166,7 @@ protected sealed override ITaggerEventSource CreateEventSource(ITextView textVie
}
catch
(
TypeLoadException
)
{
// We're target
t
ing a version of the BlockTagging infrastructure in
// We're targeting a version of the BlockTagging infrastructure in
// VS that may not match the version that the user is currently
// developing against. Be resilient to this until everything moves
// forward to the right VS version.
...
...
src/EditorFeatures/Core/FindUsages/FindUsagesHelpers.cs
浏览文件 @
01d60a47
...
...
@@ -88,7 +88,7 @@ public static async Task<(ISymbol symbol, Project project, ImmutableArray<ISymbo
var
implementations
=
await
SymbolFinder
.
FindImplementationsAsync
(
symbol
,
solution
,
cancellationToken
:
cancellationToken
).
ConfigureAwait
(
false
);
// It's important we use a HashSet here -- we may have cases in an inherit
e
nce hierarchy where more than one method
// It's important we use a HashSet here -- we may have cases in an inherit
a
nce hierarchy where more than one method
// in an overrides chain implements the same interface method, and we want to duplicate those. The easiest way to do it
// is to just use a HashSet.
var
implementationsAndOverrides
=
new
HashSet
<
ISymbol
>();
...
...
src/EditorFeatures/Core/Host/IStreamingFindReferencesPresenter.cs
浏览文件 @
01d60a47
...
...
@@ -95,7 +95,7 @@ internal static class IStreamingFindUsagesPresenterExtensions
// Note: we don't need to put this in a finally. The only time we might not hit
// this is if cancellation or another error gets thrown. In the former case,
// that means that a new search has started. We don't care about telling the
// context it has completed. In the latter case somethi
gn
wrong has happened
// context it has completed. In the latter case somethi
ng
wrong has happened
// and we don't want to run any more code code in this particular context.
await
context
.
OnCompletedAsync
().
ConfigureAwait
(
false
);
}
...
...
src/EditorFeatures/Core/Implementation/IntelliSense/AsyncCompletion/Helpers.cs
浏览文件 @
01d60a47
...
...
@@ -127,12 +127,12 @@ internal static bool TryGetInitialTriggerLocation(EditorAsyncCompletion.IAsyncCo
}
// This is a temporarily method to support preference of IntelliCode items comparing to non-IntelliCode items.
// We expect that Editor will int
or
duce this support and we will get rid of relying on the "★" then.
// We expect that Editor will int
ro
duce this support and we will get rid of relying on the "★" then.
internal
static
bool
IsPreferredItem
(
this
RoslynCompletionItem
completionItem
)
=>
completionItem
.
DisplayText
.
StartsWith
(
"★"
);
// This is a temporarily method to support preference of IntelliCode items comparing to non-IntelliCode items.
// We expect that Editor will int
or
duce this support and we will get rid of relying on the "★" then.
// We expect that Editor will int
ro
duce this support and we will get rid of relying on the "★" then.
internal
static
bool
IsPreferredItem
(
this
VSCompletionItem
completionItem
)
=>
completionItem
.
DisplayText
.
StartsWith
(
"★"
);
}
...
...
src/EditorFeatures/Core/Implementation/KeywordHighlighting/HighlighterViewTaggerProvider.cs
浏览文件 @
01d60a47
...
...
@@ -62,7 +62,7 @@ protected override async Task ProduceTagsAsync(TaggerContext<KeywordHighlightTag
// It turns out a document might be associated with a project of wrong language, e.g. C# document in a Xaml project.
// Even though we couldn't repro the crash above, a fix is made in one of possibly multiple code paths that could cause
// us to end up in this situation.
// Regardless of the effective of the fix, we want to enhance the guard aginst such scenario here until an audit in
// Regardless of the effective of the fix, we want to enhance the guard ag
a
inst such scenario here until an audit in
// workspace is completed to eliminate the root cause.
if
(
document
?.
SupportsSyntaxTree
!=
true
)
{
...
...
src/EditorFeatures/Core/Shared/Preview/PreviewSolutionCrawlerRegistrationService.cs
浏览文件 @
01d60a47
...
...
@@ -33,7 +33,7 @@ public PreviewSolutionCrawlerRegistrationServiceFactory(IDiagnosticAnalyzerServi
public
IWorkspaceService
CreateService
(
HostWorkspaceServices
workspaceServices
)
{
// to make life time management easier, just create new sevice per new workspace
// to make life time management easier, just create new se
r
vice per new workspace
return
new
Service
(
this
,
workspaceServices
.
Workspace
);
}
...
...
src/EditorFeatures/Test/Diagnostics/DiagnosticsSquiggleTaggerProviderTests.cs
浏览文件 @
01d60a47
...
...
@@ -107,7 +107,7 @@ public async Task TaggerProviderCreatedAfterInitialDiagnosticsReported()
public
async
Task
TestWithMockDiagnosticService_TaggerProviderCreatedBeforeInitialDiagnosticsReported
()
{
// This test produces diagnostics from a mock service so that we are disconnected from
// all t
eh asynchrony of ht
e actual async analyzer engine. If this fails, then the
// all t
he asynchrony of th
e actual async analyzer engine. If this fails, then the
// issue is almost certainly in the DiagnosticsSquiggleTaggerProvider code. If this
// succeed, but other squiggle tests fail, then it is likely an issue with the
// diagnostics engine not actually reporting all diagnostics properly.
...
...
@@ -124,7 +124,7 @@ public async Task TestWithMockDiagnosticService_TaggerProviderCreatedBeforeIniti
// Create the tagger before the first diagnostic event has been fired.
var
tagger
=
provider
.
CreateTagger
<
IErrorTag
>(
workspace
.
Documents
.
First
().
GetTextBuffer
());
// Now product
ht
e first diagnostic and fire the events.
// Now product
th
e first diagnostic and fire the events.
var
tree
=
await
workspace
.
CurrentSolution
.
Projects
.
Single
().
Documents
.
Single
().
GetSyntaxTreeAsync
();
var
span
=
TextSpan
.
FromBounds
(
0
,
5
);
diagnosticService
.
CreateDiagnosticAndFireEvents
(
Location
.
Create
(
tree
,
span
));
...
...
@@ -143,7 +143,7 @@ public async Task TestWithMockDiagnosticService_TaggerProviderCreatedBeforeIniti
public
async
Task
TestWithMockDiagnosticService_TaggerProviderCreatedAfterInitialDiagnosticsReported
()
{
// This test produces diagnostics from a mock service so that we are disconnected from
// all t
eh asynchrony of ht
e actual async analyzer engine. If this fails, then the
// all t
he asynchrony of th
e actual async analyzer engine. If this fails, then the
// issue is almost certainly in the DiagnosticsSquiggleTaggerProvider code. If this
// succeed, but other squiggle tests fail, then it is likely an issue with the
// diagnostics engine not actually reporting all diagnostics properly.
...
...
@@ -157,7 +157,7 @@ public async Task TestWithMockDiagnosticService_TaggerProviderCreatedAfterInitia
workspace
.
ExportProvider
.
GetExportedValue
<
IThreadingContext
>(),
diagnosticService
,
workspace
.
GetService
<
IForegroundNotificationService
>(),
listenerProvider
);
// Create and fire the diagnostic events before
ht
e tagger is even made.
// Create and fire the diagnostic events before
th
e tagger is even made.
var
tree
=
await
workspace
.
CurrentSolution
.
Projects
.
Single
().
Documents
.
Single
().
GetSyntaxTreeAsync
();
var
span
=
TextSpan
.
FromBounds
(
0
,
5
);
diagnosticService
.
CreateDiagnosticAndFireEvents
(
Location
.
Create
(
tree
,
span
));
...
...
src/EditorFeatures/Test/EditAndContinue/EditAndContinueWorkspaceServiceTests.cs
浏览文件 @
01d60a47
...
...
@@ -1137,7 +1137,7 @@ public async Task BreakMode_ValidSignificantChange_EmitSuccessful_UpdateDeferred
_mockCompilationOutputsService
.
Outputs
.
Add
(
project
.
Id
,
new
CompilationOutputFiles
(
moduleFile
.
Path
,
pdbFile
.
Path
));
// set up an active statement in the first method, so that we can test preservaton of local signature.
// set up an active statement in the first method, so that we can test preservat
i
on of local signature.
_mockActiveStatementProvider
=
new
Mock
<
IActiveStatementProvider
>(
MockBehavior
.
Strict
);
_mockActiveStatementProvider
.
Setup
(
p
=>
p
.
GetActiveStatementsAsync
(
It
.
IsAny
<
CancellationToken
>())).
Returns
(
Task
.
FromResult
(
ImmutableArray
.
Create
(
new
ActiveStatementDebugInfo
(
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录