Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
lwm1986
roslyn
提交
02c3c21a
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,发现更多精彩内容 >>
提交
02c3c21a
编写于
11月 25, 2015
作者:
D
Dustin Campbell
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
CR Feedback: 'Class View' should not be localized and simplify a lambda parameter
上级
96e30295
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
19 addition
and
17 deletion
+19
-17
src/VisualStudio/Core/Def/Implementation/Library/ClassView/AbstractSyncClassViewCommandHandler.cs
.../Library/ClassView/AbstractSyncClassViewCommandHandler.cs
+4
-2
src/VisualStudio/Core/Def/ServicesVSResources.Designer.cs
src/VisualStudio/Core/Def/ServicesVSResources.Designer.cs
+4
-4
src/VisualStudio/Core/Def/ServicesVSResources.resx
src/VisualStudio/Core/Def/ServicesVSResources.resx
+3
-3
src/VisualStudio/Core/Test/ClassView/MockNavigationTool.vb
src/VisualStudio/Core/Test/ClassView/MockNavigationTool.vb
+2
-2
src/VisualStudio/Core/Test/Utilities/VsNavInfoHelpers.vb
src/VisualStudio/Core/Test/Utilities/VsNavInfoHelpers.vb
+4
-4
src/VisualStudio/Core/Test/VsNavInfo/VsNavInfoTests.vb
src/VisualStudio/Core/Test/VsNavInfo/VsNavInfoTests.vb
+2
-2
未找到文件。
src/VisualStudio/Core/Def/Implementation/Library/ClassView/AbstractSyncClassViewCommandHandler.cs
浏览文件 @
02c3c21a
...
...
@@ -19,6 +19,8 @@ namespace Microsoft.VisualStudio.LanguageServices.Implementation.Library.ClassVi
internal
abstract
class
AbstractSyncClassViewCommandHandler
:
ForegroundThreadAffinitizedObject
,
ICommandHandler
<
SyncClassViewCommandArgs
>
{
private
const
string
ClassView
=
"Class View"
;
private
readonly
IServiceProvider
_serviceProvider
;
private
readonly
IWaitIndicator
_waitIndicator
;
...
...
@@ -47,8 +49,8 @@ public void ExecuteCommand(SyncClassViewCommandArgs args, Action nextHandler)
var
snapshot
=
args
.
SubjectBuffer
.
CurrentSnapshot
;
_waitIndicator
.
Wait
(
title
:
ServicesVSResources
.
SynchronizeClassView
,
message
:
ServicesVSResources
.
SynchronizingClassView
,
title
:
string
.
Format
(
ServicesVSResources
.
SynchronizeClassView
,
ClassView
)
,
message
:
string
.
Format
(
ServicesVSResources
.
SynchronizingWithClassView
,
ClassView
)
,
allowCancel
:
true
,
action
:
context
=>
{
...
...
src/VisualStudio/Core/Def/ServicesVSResources.Designer.cs
浏览文件 @
02c3c21a
...
...
@@ -1084,7 +1084,7 @@ internal class ServicesVSResources {
}
/// <summary>
/// Looks up a localized string similar to Synchronize
Class View
.
/// Looks up a localized string similar to Synchronize
{0}
.
/// </summary>
internal
static
string
SynchronizeClassView
{
get
{
...
...
@@ -1093,11 +1093,11 @@ internal class ServicesVSResources {
}
/// <summary>
/// Looks up a localized string similar to Synchronizing
Class View
....
/// Looks up a localized string similar to Synchronizing
with {0}
....
/// </summary>
internal
static
string
SynchronizingClassView
{
internal
static
string
Synchronizing
With
ClassView
{
get
{
return
ResourceManager
.
GetString
(
"SynchronizingClassView"
,
resourceCulture
);
return
ResourceManager
.
GetString
(
"Synchronizing
With
ClassView"
,
resourceCulture
);
}
}
...
...
src/VisualStudio/Core/Def/ServicesVSResources.resx
浏览文件 @
02c3c21a
...
...
@@ -508,9 +508,9 @@ Use the dropdown to view and switch to other projects this file may belong to.</
<value>
This workspace only supports opening documents on the UI thread.
</value>
</data>
<data
name=
"SynchronizeClassView"
xml:space=
"preserve"
>
<value>
Synchronize
Class View
</value>
<value>
Synchronize
{0}
</value>
</data>
<data
name=
"SynchronizingClassView"
xml:space=
"preserve"
>
<value>
Synchronizing
Class View
...
</value>
<data
name=
"Synchronizing
With
ClassView"
xml:space=
"preserve"
>
<value>
Synchronizing
with {0}
...
</value>
</data>
</root>
\ No newline at end of file
src/VisualStudio/Core/Test/ClassView/MockNavigationTool.vb
浏览文件 @
02c3c21a
...
...
@@ -36,14 +36,14 @@ Namespace Microsoft.VisualStudio.LanguageServices.UnitTests.ClassView
If
_canonicalNodes
IsNot
Nothing
Then
Dim
enumerator
As
IVsEnumNavInfoNodes
=
Nothing
IsOK
(
Function
()
_navInfo
.
EnumCanonicalNodes
(
enumerator
))
IsOK
(
_navInfo
.
EnumCanonicalNodes
(
enumerator
))
VerifyNodes
(
enumerator
,
_canonicalNodes
)
End
If
If
_presentationNodes
IsNot
Nothing
Then
Dim
enumerator
As
IVsEnumNavInfoNodes
=
Nothing
IsOK
(
Function
()
_navInfo
.
EnumPresentationNodes
(
CUInt
(
_LIB_LISTFLAGS
.
LLF_NONE
),
enumerator
))
IsOK
(
_navInfo
.
EnumPresentationNodes
(
CUInt
(
_LIB_LISTFLAGS
.
LLF_NONE
),
enumerator
))
VerifyNodes
(
enumerator
,
_presentationNodes
)
End
If
...
...
src/VisualStudio/Core/Test/Utilities/VsNavInfoHelpers.vb
浏览文件 @
02c3c21a
...
...
@@ -6,8 +6,8 @@ Imports Microsoft.VisualStudio.Shell.Interop
Namespace
Microsoft.VisualStudio.LanguageServices.UnitTests.Utilities.VsNavInfo
Friend
Module
VsNavInfoHelpers
Public
Sub
IsOK
(
comAction
As
Func
(
Of
Integer
)
)
Assert
.
Equal
(
VSConstants
.
S_OK
,
comAction
()
)
Public
Sub
IsOK
(
result
As
Integer
)
Assert
.
Equal
(
VSConstants
.
S_OK
,
result
)
End
Sub
Public
Delegate
Sub
NodeVerifier
(
vsNavInfoNode
As
IVsNavInfoNode
)
...
...
@@ -15,11 +15,11 @@ Namespace Microsoft.VisualStudio.LanguageServices.UnitTests.Utilities.VsNavInfo
Private
Function
Node
(
expectedListType
As
_LIB_LISTTYPE
,
expectedName
As
String
)
As
NodeVerifier
Return
Sub
(
vsNavInfoNode
)
Dim
listType
As
UInteger
IsOK
(
Function
()
vsNavInfoNode
.
get_Type
(
listType
))
IsOK
(
vsNavInfoNode
.
get_Type
(
listType
))
Assert
.
Equal
(
CUInt
(
expectedListType
),
listType
)
Dim
actualName
As
String
=
Nothing
IsOK
(
Function
()
vsNavInfoNode
.
get_Name
(
actualName
))
IsOK
(
vsNavInfoNode
.
get_Name
(
actualName
))
Assert
.
Equal
(
expectedName
,
actualName
)
End
Sub
End
Function
...
...
src/VisualStudio/Core/Test/VsNavInfo/VsNavInfoTests.vb
浏览文件 @
02c3c21a
...
...
@@ -836,14 +836,14 @@ Namespace Microsoft.VisualStudio.LanguageServices.UnitTests.VsNavInfo
If canonicalNodes IsNot Nothing Then
Dim enumerator As IVsEnumNavInfoNodes = Nothing
IsOK(
Function()
navInfo.EnumCanonicalNodes(enumerator))
IsOK(navInfo.EnumCanonicalNodes(enumerator))
VerifyNodes(enumerator, canonicalNodes)
End If
If presentationNodes IsNot Nothing Then
Dim enumerator As IVsEnumNavInfoNodes = Nothing
IsOK(
Function()
navInfo.EnumPresentationNodes(CUInt(_LIB_LISTFLAGS.LLF_NONE), enumerator))
IsOK(navInfo.EnumPresentationNodes(CUInt(_LIB_LISTFLAGS.LLF_NONE), enumerator))
VerifyNodes(enumerator, presentationNodes)
End If
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录