Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
lwm1986
roslyn
提交
2bd5f92a
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,体验更适合开发者的 AI 搜索 >>
提交
2bd5f92a
编写于
10月 06, 2020
作者:
C
Cyrus Najmabadi
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Update UI
上级
64e59923
变更
23
隐藏空白更改
内联
并排
Showing
23 changed file
with
142 addition
and
58 deletion
+142
-58
src/EditorFeatures/Core/InlineHints/InlineParameterNameHintsDataTaggerProvider.cs
...InlineHints/InlineParameterNameHintsDataTaggerProvider.cs
+2
-1
src/Features/Core/Portable/InlineHints/AbstractInlineParameterNameHintsService.cs
...le/InlineHints/AbstractInlineParameterNameHintsService.cs
+2
-2
src/Features/Core/Portable/InlineHints/InlineHintsOptions.cs
src/Features/Core/Portable/InlineHints/InlineHintsOptions.cs
+3
-3
src/VisualStudio/CSharp/Impl/Options/AdvancedOptionPageControl.xaml
...Studio/CSharp/Impl/Options/AdvancedOptionPageControl.xaml
+27
-24
src/VisualStudio/CSharp/Impl/Options/AdvancedOptionPageControl.xaml.cs
...dio/CSharp/Impl/Options/AdvancedOptionPageControl.xaml.cs
+4
-2
src/VisualStudio/CSharp/Impl/Options/AdvancedOptionPageStrings.cs
...alStudio/CSharp/Impl/Options/AdvancedOptionPageStrings.cs
+3
-0
src/VisualStudio/Core/Def/ServicesVSResources.resx
src/VisualStudio/Core/Def/ServicesVSResources.resx
+3
-0
src/VisualStudio/Core/Def/xlf/ServicesVSResources.cs.xlf
src/VisualStudio/Core/Def/xlf/ServicesVSResources.cs.xlf
+5
-0
src/VisualStudio/Core/Def/xlf/ServicesVSResources.de.xlf
src/VisualStudio/Core/Def/xlf/ServicesVSResources.de.xlf
+5
-0
src/VisualStudio/Core/Def/xlf/ServicesVSResources.es.xlf
src/VisualStudio/Core/Def/xlf/ServicesVSResources.es.xlf
+5
-0
src/VisualStudio/Core/Def/xlf/ServicesVSResources.fr.xlf
src/VisualStudio/Core/Def/xlf/ServicesVSResources.fr.xlf
+5
-0
src/VisualStudio/Core/Def/xlf/ServicesVSResources.it.xlf
src/VisualStudio/Core/Def/xlf/ServicesVSResources.it.xlf
+5
-0
src/VisualStudio/Core/Def/xlf/ServicesVSResources.ja.xlf
src/VisualStudio/Core/Def/xlf/ServicesVSResources.ja.xlf
+5
-0
src/VisualStudio/Core/Def/xlf/ServicesVSResources.ko.xlf
src/VisualStudio/Core/Def/xlf/ServicesVSResources.ko.xlf
+5
-0
src/VisualStudio/Core/Def/xlf/ServicesVSResources.pl.xlf
src/VisualStudio/Core/Def/xlf/ServicesVSResources.pl.xlf
+5
-0
src/VisualStudio/Core/Def/xlf/ServicesVSResources.pt-BR.xlf
src/VisualStudio/Core/Def/xlf/ServicesVSResources.pt-BR.xlf
+5
-0
src/VisualStudio/Core/Def/xlf/ServicesVSResources.ru.xlf
src/VisualStudio/Core/Def/xlf/ServicesVSResources.ru.xlf
+5
-0
src/VisualStudio/Core/Def/xlf/ServicesVSResources.tr.xlf
src/VisualStudio/Core/Def/xlf/ServicesVSResources.tr.xlf
+5
-0
src/VisualStudio/Core/Def/xlf/ServicesVSResources.zh-Hans.xlf
...VisualStudio/Core/Def/xlf/ServicesVSResources.zh-Hans.xlf
+5
-0
src/VisualStudio/Core/Def/xlf/ServicesVSResources.zh-Hant.xlf
...VisualStudio/Core/Def/xlf/ServicesVSResources.zh-Hant.xlf
+5
-0
src/VisualStudio/VisualBasic/Impl/Options/AdvancedOptionPageControl.xaml
...o/VisualBasic/Impl/Options/AdvancedOptionPageControl.xaml
+26
-24
src/VisualStudio/VisualBasic/Impl/Options/AdvancedOptionPageControl.xaml.vb
...isualBasic/Impl/Options/AdvancedOptionPageControl.xaml.vb
+4
-2
src/VisualStudio/VisualBasic/Impl/Options/AdvancedOptionPageStrings.vb
...dio/VisualBasic/Impl/Options/AdvancedOptionPageStrings.vb
+3
-0
未找到文件。
src/EditorFeatures/Core/InlineHints/InlineParameterNameHintsDataTaggerProvider.cs
浏览文件 @
2bd5f92a
...
...
@@ -61,7 +61,8 @@ protected override ITaggerEventSource CreateEventSource(ITextView textViewOpt, I
TaggerEventSources
.
OnOptionChanged
(
subjectBuffer
,
InlineHintsOptions
.
ForLiteralParameters
,
TaggerDelay
.
NearImmediate
),
TaggerEventSources
.
OnOptionChanged
(
subjectBuffer
,
InlineHintsOptions
.
ForObjectCreationParameters
,
TaggerDelay
.
NearImmediate
),
TaggerEventSources
.
OnOptionChanged
(
subjectBuffer
,
InlineHintsOptions
.
ForOtherParameters
,
TaggerDelay
.
NearImmediate
),
TaggerEventSources
.
OnOptionChanged
(
subjectBuffer
,
InlineHintsOptions
.
HideForParametersThatMatchMethodIntent
,
TaggerDelay
.
NearImmediate
));
TaggerEventSources
.
OnOptionChanged
(
subjectBuffer
,
InlineHintsOptions
.
HideForParametersThatMatchMethodIntent
,
TaggerDelay
.
NearImmediate
),
TaggerEventSources
.
OnOptionChanged
(
subjectBuffer
,
InlineHintsOptions
.
HideForParametersThatDifferOnlyBySuffix
,
TaggerDelay
.
NearImmediate
));
}
protected
override
IEnumerable
<
SnapshotSpan
>
GetSpansToTag
(
ITextView
textView
,
ITextBuffer
subjectBuffer
)
...
...
src/Features/Core/Portable/InlineHints/AbstractInlineParameterNameHintsService.cs
浏览文件 @
2bd5f92a
...
...
@@ -35,7 +35,7 @@ public async Task<ImmutableArray<InlineParameterHint>> GetInlineParameterNameHin
if
(!
literalParameters
&&
!
objectCreationParameters
&&
!
otherParameters
)
return
ImmutableArray
<
InlineParameterHint
>.
Empty
;
var
hideForParametersThatDiffer
BySuffix
=
options
.
GetOption
(
InlineHintsOptions
.
HideForParametersThatDiffer
BySuffix
);
var
hideForParametersThatDiffer
OnlyBySuffix
=
options
.
GetOption
(
InlineHintsOptions
.
HideForParametersThatDifferOnly
BySuffix
);
var
hideForParametersThatMatchMethodIntent
=
options
.
GetOption
(
InlineHintsOptions
.
HideForParametersThatMatchMethodIntent
);
var
root
=
await
document
.
GetRequiredSyntaxRootAsync
(
cancellationToken
).
ConfigureAwait
(
false
);
...
...
@@ -60,7 +60,7 @@ public async Task<ImmutableArray<InlineParameterHint>> GetInlineParameterNameHin
void
AddHintsIfAppropriate
()
{
if
(
hideForParametersThatDifferBySuffix
&&
ParametersDifferOnlyBySuffix
(
buffer
))
if
(
hideForParametersThatDiffer
Only
BySuffix
&&
ParametersDifferOnlyBySuffix
(
buffer
))
return
;
foreach
(
var
hint
in
buffer
)
...
...
src/Features/Core/Portable/InlineHints/InlineHintsOptions.cs
浏览文件 @
2bd5f92a
...
...
@@ -39,11 +39,11 @@ internal static class InlineHintsOptions
defaultValue
:
false
,
storageLocations
:
new
RoamingProfileStorageLocation
(
"TextEditor.%LANGUAGE%.Specific.InlineParameterNameHints.ForOtherParameters"
));
public
static
readonly
PerLanguageOption2
<
bool
>
HideForParametersThatDifferBySuffix
=
public
static
readonly
PerLanguageOption2
<
bool
>
HideForParametersThatDiffer
Only
BySuffix
=
new
(
nameof
(
InlineHintsOptions
),
nameof
(
HideForParametersThatDifferBySuffix
),
nameof
(
HideForParametersThatDiffer
Only
BySuffix
),
defaultValue
:
true
,
storageLocations
:
new
RoamingProfileStorageLocation
(
"TextEditor.%LANGUAGE%.Specific.InlineParameterNameHints.HideForParametersThatDifferBySuffix"
));
storageLocations
:
new
RoamingProfileStorageLocation
(
"TextEditor.%LANGUAGE%.Specific.InlineParameterNameHints.HideForParametersThatDiffer
Only
BySuffix"
));
public
static
readonly
PerLanguageOption2
<
bool
>
HideForParametersThatMatchMethodIntent
=
new
(
nameof
(
InlineHintsOptions
),
...
...
src/VisualStudio/CSharp/Impl/Options/AdvancedOptionPageControl.xaml
浏览文件 @
2bd5f92a
...
...
@@ -107,30 +107,6 @@
</StackPanel>
</GroupBox>
<GroupBox x:Uid="InlineHintsGroupBox"
Header="{x:Static local:AdvancedOptionPageStrings.Option_Inline_Hints_experimental}">
<StackPanel>
<CheckBox x:Name="DisplayInlineParameterNameHints"
Content="{x:Static local:AdvancedOptionPageStrings.Option_Display_inline_parameter_name_hints}"
Checked="DisplayInlineParameterNameHints_Checked"
Unchecked="DisplayInlineParameterNameHints_Unchecked"/>
<StackPanel Margin="15, 0, 0, 0">
<CheckBox x:Uid="ShowHintsForLiterals"
x:Name="ShowHintsForLiterals"
Content="{x:Static local:AdvancedOptionPageStrings.Option_Show_hints_for_literals}" />
<CheckBox x:Uid="ShowHintsForNewExpressions"
x:Name="ShowHintsForNewExpressions"
Content="{x:Static local:AdvancedOptionPageStrings.Option_Show_hints_for_new_expressions}" />
<CheckBox x:Uid="ShowHintsForEverythingElse"
x:Name="ShowHintsForEverythingElse"
Content="{x:Static local:AdvancedOptionPageStrings.Option_Show_hints_for_everything_else}" />
<CheckBox x:Uid="HideHintsWhenClearBasedonMethodAndParameterName"
x:Name="HideHintsWhenClearBasedonMethodAndParameterName"
Content="{x:Static local:AdvancedOptionPageStrings.Option_Hide_hints_when_clear_based_on_method_and_parameter_name}" />
</StackPanel>
</StackPanel>
</GroupBox>
<GroupBox x:Uid="EditorHelpGroupBox"
Header="{x:Static local:AdvancedOptionPageStrings.Option_EditorHelp}">
<StackPanel>
...
...
@@ -210,6 +186,33 @@
</StackPanel>
</StackPanel>
</GroupBox>
<GroupBox x:Uid="InlineHintsGroupBox"
Header="{x:Static local:AdvancedOptionPageStrings.Option_Inline_Hints_experimental}">
<StackPanel>
<CheckBox x:Name="DisplayInlineParameterNameHints"
Content="{x:Static local:AdvancedOptionPageStrings.Option_Display_inline_parameter_name_hints}"
Checked="DisplayInlineParameterNameHints_Checked"
Unchecked="DisplayInlineParameterNameHints_Unchecked"/>
<StackPanel Margin="15, 0, 0, 0">
<CheckBox x:Uid="ShowHintsForLiterals"
x:Name="ShowHintsForLiterals"
Content="{x:Static local:AdvancedOptionPageStrings.Option_Show_hints_for_literals}" />
<CheckBox x:Uid="ShowHintsForNewExpressions"
x:Name="ShowHintsForNewExpressions"
Content="{x:Static local:AdvancedOptionPageStrings.Option_Show_hints_for_new_expressions}" />
<CheckBox x:Uid="ShowHintsForEverythingElse"
x:Name="ShowHintsForEverythingElse"
Content="{x:Static local:AdvancedOptionPageStrings.Option_Show_hints_for_everything_else}" />
<CheckBox x:Uid="HideHintsWhenClearBasedOnMethodAndParameterName"
x:Name="HideHintsWhenClearBasedOnMethodAndParameterName"
Content="{x:Static local:AdvancedOptionPageStrings.Option_Hide_hints_when_clear_based_on_method_and_parameter_name}" />
<CheckBox x:Uid="HideHintsWhenParameterNamesDifferOnlyBySuffix"
x:Name="HideHintsWhenParameterNamesDifferOnlyBySuffix"
Content="{x:Static local:AdvancedOptionPageStrings.Option_Hide_hints_when_parameter_names_differ_only_by_suffix}" />
</StackPanel>
</StackPanel>
</GroupBox>
</StackPanel>
</ScrollViewer>
</options:AbstractOptionPageControl>
\ No newline at end of file
src/VisualStudio/CSharp/Impl/Options/AdvancedOptionPageControl.xaml.cs
浏览文件 @
2bd5f92a
...
...
@@ -69,7 +69,8 @@ public AdvancedOptionPageControl(OptionStore optionStore, IComponentModel compon
BindToOption
(
ShowHintsForLiterals
,
InlineHintsOptions
.
ForLiteralParameters
,
LanguageNames
.
CSharp
);
BindToOption
(
ShowHintsForNewExpressions
,
InlineHintsOptions
.
ForObjectCreationParameters
,
LanguageNames
.
CSharp
);
BindToOption
(
ShowHintsForEverythingElse
,
InlineHintsOptions
.
ForOtherParameters
,
LanguageNames
.
CSharp
);
BindToOption
(
HideHintsWhenClearBasedonMethodAndParameterName
,
InlineHintsOptions
.
HideForParametersThatMatchMethodIntent
,
LanguageNames
.
CSharp
);
BindToOption
(
HideHintsWhenClearBasedOnMethodAndParameterName
,
InlineHintsOptions
.
HideForParametersThatMatchMethodIntent
,
LanguageNames
.
CSharp
);
BindToOption
(
HideHintsWhenParameterNamesDifferOnlyBySuffix
,
InlineHintsOptions
.
HideForParametersThatDifferOnlyBySuffix
,
LanguageNames
.
CSharp
);
BindToOption
(
ShowRemarksInQuickInfo
,
QuickInfoOptions
.
ShowRemarksInQuickInfo
,
LanguageNames
.
CSharp
);
BindToOption
(
DisplayLineSeparators
,
FeatureOnOffOptions
.
LineSeparator
,
LanguageNames
.
CSharp
);
...
...
@@ -117,7 +118,8 @@ private void UpdateInlineHintsOptions()
ShowHintsForLiterals
.
IsEnabled
=
enabledForParameters
;
ShowHintsForNewExpressions
.
IsEnabled
=
enabledForParameters
;
ShowHintsForEverythingElse
.
IsEnabled
=
enabledForParameters
;
HideHintsWhenClearBasedonMethodAndParameterName
.
IsEnabled
=
enabledForParameters
;
HideHintsWhenClearBasedOnMethodAndParameterName
.
IsEnabled
=
enabledForParameters
;
HideHintsWhenParameterNamesDifferOnlyBySuffix
.
IsEnabled
=
enabledForParameters
;
}
private
void
DisplayInlineParameterNameHints_Checked
(
object
sender
,
RoutedEventArgs
e
)
...
...
src/VisualStudio/CSharp/Impl/Options/AdvancedOptionPageStrings.cs
浏览文件 @
2bd5f92a
...
...
@@ -49,6 +49,9 @@ public static string Option_Show_hints_for_everything_else
public
static
string
Option_Hide_hints_when_clear_based_on_method_and_parameter_name
=>
ServicesVSResources
.
Hide_hints_when_clear_based_on_method_and_parameter_name
;
public
static
string
Option_Hide_hints_when_parameter_names_differ_only_by_suffix
=>
ServicesVSResources
.
Hide_hints_when_parameter_names_differ_only_by_suffix
;
public
static
string
Option_RenameTrackingPreview
=>
CSharpVSResources
.
Show_preview_for_rename_tracking
;
public
static
string
Option_Split_string_literals_on_enter
=>
CSharpVSResources
.
Split_string_literals_on_enter
;
...
...
src/VisualStudio/Core/Def/ServicesVSResources.resx
浏览文件 @
2bd5f92a
...
...
@@ -1569,4 +1569,7 @@ I agree to all of the foregoing:</value>
<data
name=
"Hide_hints_when_clear_based_on_method_and_parameter_name"
xml:space=
"preserve"
>
<value>
Hide hints when clear based on method and parameter name
</value>
</data>
<data
name=
"Hide_hints_when_parameter_names_differ_only_by_suffix"
xml:space=
"preserve"
>
<value>
Hide hints when parameter names differ only by suffix
</value>
</data>
</root>
\ No newline at end of file
src/VisualStudio/Core/Def/xlf/ServicesVSResources.cs.xlf
浏览文件 @
2bd5f92a
...
...
@@ -247,6 +247,11 @@
<target
state=
"new"
>
Hide hints when clear based on method and parameter name
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Hide_hints_when_parameter_names_differ_only_by_suffix"
>
<source>
Hide hints when parameter names differ only by suffix
</source>
<target
state=
"new"
>
Hide hints when parameter names differ only by suffix
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Highlight_related_components_under_cursor"
>
<source>
Highlight related components under cursor
</source>
<target
state=
"translated"
>
Zvýrazňovat související komponenty pod kurzorem
</target>
...
...
src/VisualStudio/Core/Def/xlf/ServicesVSResources.de.xlf
浏览文件 @
2bd5f92a
...
...
@@ -247,6 +247,11 @@
<target
state=
"new"
>
Hide hints when clear based on method and parameter name
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Hide_hints_when_parameter_names_differ_only_by_suffix"
>
<source>
Hide hints when parameter names differ only by suffix
</source>
<target
state=
"new"
>
Hide hints when parameter names differ only by suffix
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Highlight_related_components_under_cursor"
>
<source>
Highlight related components under cursor
</source>
<target
state=
"translated"
>
Zugehörige Komponenten unter dem Cursor markieren
</target>
...
...
src/VisualStudio/Core/Def/xlf/ServicesVSResources.es.xlf
浏览文件 @
2bd5f92a
...
...
@@ -247,6 +247,11 @@
<target
state=
"new"
>
Hide hints when clear based on method and parameter name
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Hide_hints_when_parameter_names_differ_only_by_suffix"
>
<source>
Hide hints when parameter names differ only by suffix
</source>
<target
state=
"new"
>
Hide hints when parameter names differ only by suffix
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Highlight_related_components_under_cursor"
>
<source>
Highlight related components under cursor
</source>
<target
state=
"translated"
>
Resaltar componentes relacionados bajo el cursor
</target>
...
...
src/VisualStudio/Core/Def/xlf/ServicesVSResources.fr.xlf
浏览文件 @
2bd5f92a
...
...
@@ -247,6 +247,11 @@
<target
state=
"new"
>
Hide hints when clear based on method and parameter name
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Hide_hints_when_parameter_names_differ_only_by_suffix"
>
<source>
Hide hints when parameter names differ only by suffix
</source>
<target
state=
"new"
>
Hide hints when parameter names differ only by suffix
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Highlight_related_components_under_cursor"
>
<source>
Highlight related components under cursor
</source>
<target
state=
"translated"
>
Surligner les composants liés sous le curseur
</target>
...
...
src/VisualStudio/Core/Def/xlf/ServicesVSResources.it.xlf
浏览文件 @
2bd5f92a
...
...
@@ -247,6 +247,11 @@
<target
state=
"new"
>
Hide hints when clear based on method and parameter name
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Hide_hints_when_parameter_names_differ_only_by_suffix"
>
<source>
Hide hints when parameter names differ only by suffix
</source>
<target
state=
"new"
>
Hide hints when parameter names differ only by suffix
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Highlight_related_components_under_cursor"
>
<source>
Highlight related components under cursor
</source>
<target
state=
"translated"
>
Evidenzia i componenti correlati sotto il cursore
</target>
...
...
src/VisualStudio/Core/Def/xlf/ServicesVSResources.ja.xlf
浏览文件 @
2bd5f92a
...
...
@@ -247,6 +247,11 @@
<target
state=
"new"
>
Hide hints when clear based on method and parameter name
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Hide_hints_when_parameter_names_differ_only_by_suffix"
>
<source>
Hide hints when parameter names differ only by suffix
</source>
<target
state=
"new"
>
Hide hints when parameter names differ only by suffix
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Highlight_related_components_under_cursor"
>
<source>
Highlight related components under cursor
</source>
<target
state=
"translated"
>
カーソルの下にある関連コンポーネントをハイライトする
</target>
...
...
src/VisualStudio/Core/Def/xlf/ServicesVSResources.ko.xlf
浏览文件 @
2bd5f92a
...
...
@@ -247,6 +247,11 @@
<target
state=
"new"
>
Hide hints when clear based on method and parameter name
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Hide_hints_when_parameter_names_differ_only_by_suffix"
>
<source>
Hide hints when parameter names differ only by suffix
</source>
<target
state=
"new"
>
Hide hints when parameter names differ only by suffix
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Highlight_related_components_under_cursor"
>
<source>
Highlight related components under cursor
</source>
<target
state=
"translated"
>
커서 아래의 관련 구성 요소 강조
</target>
...
...
src/VisualStudio/Core/Def/xlf/ServicesVSResources.pl.xlf
浏览文件 @
2bd5f92a
...
...
@@ -247,6 +247,11 @@
<target
state=
"new"
>
Hide hints when clear based on method and parameter name
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Hide_hints_when_parameter_names_differ_only_by_suffix"
>
<source>
Hide hints when parameter names differ only by suffix
</source>
<target
state=
"new"
>
Hide hints when parameter names differ only by suffix
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Highlight_related_components_under_cursor"
>
<source>
Highlight related components under cursor
</source>
<target
state=
"translated"
>
Wyróżnij powiązane składniki pod kursorem
</target>
...
...
src/VisualStudio/Core/Def/xlf/ServicesVSResources.pt-BR.xlf
浏览文件 @
2bd5f92a
...
...
@@ -247,6 +247,11 @@
<target
state=
"new"
>
Hide hints when clear based on method and parameter name
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Hide_hints_when_parameter_names_differ_only_by_suffix"
>
<source>
Hide hints when parameter names differ only by suffix
</source>
<target
state=
"new"
>
Hide hints when parameter names differ only by suffix
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Highlight_related_components_under_cursor"
>
<source>
Highlight related components under cursor
</source>
<target
state=
"translated"
>
Realçar componentes relacionados usando o cursor
</target>
...
...
src/VisualStudio/Core/Def/xlf/ServicesVSResources.ru.xlf
浏览文件 @
2bd5f92a
...
...
@@ -247,6 +247,11 @@
<target
state=
"new"
>
Hide hints when clear based on method and parameter name
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Hide_hints_when_parameter_names_differ_only_by_suffix"
>
<source>
Hide hints when parameter names differ only by suffix
</source>
<target
state=
"new"
>
Hide hints when parameter names differ only by suffix
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Highlight_related_components_under_cursor"
>
<source>
Highlight related components under cursor
</source>
<target
state=
"translated"
>
Выделить связанные компоненты под курсором
</target>
...
...
src/VisualStudio/Core/Def/xlf/ServicesVSResources.tr.xlf
浏览文件 @
2bd5f92a
...
...
@@ -247,6 +247,11 @@
<target
state=
"new"
>
Hide hints when clear based on method and parameter name
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Hide_hints_when_parameter_names_differ_only_by_suffix"
>
<source>
Hide hints when parameter names differ only by suffix
</source>
<target
state=
"new"
>
Hide hints when parameter names differ only by suffix
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Highlight_related_components_under_cursor"
>
<source>
Highlight related components under cursor
</source>
<target
state=
"translated"
>
İmlecin altında ilgili bileşenleri vurgula
</target>
...
...
src/VisualStudio/Core/Def/xlf/ServicesVSResources.zh-Hans.xlf
浏览文件 @
2bd5f92a
...
...
@@ -247,6 +247,11 @@
<target
state=
"new"
>
Hide hints when clear based on method and parameter name
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Hide_hints_when_parameter_names_differ_only_by_suffix"
>
<source>
Hide hints when parameter names differ only by suffix
</source>
<target
state=
"new"
>
Hide hints when parameter names differ only by suffix
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Highlight_related_components_under_cursor"
>
<source>
Highlight related components under cursor
</source>
<target
state=
"translated"
>
突出显示光标下的相关组件
</target>
...
...
src/VisualStudio/Core/Def/xlf/ServicesVSResources.zh-Hant.xlf
浏览文件 @
2bd5f92a
...
...
@@ -247,6 +247,11 @@
<target
state=
"new"
>
Hide hints when clear based on method and parameter name
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Hide_hints_when_parameter_names_differ_only_by_suffix"
>
<source>
Hide hints when parameter names differ only by suffix
</source>
<target
state=
"new"
>
Hide hints when parameter names differ only by suffix
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Highlight_related_components_under_cursor"
>
<source>
Highlight related components under cursor
</source>
<target
state=
"translated"
>
反白資料指標下的相關元件
</target>
...
...
src/VisualStudio/VisualBasic/Impl/Options/AdvancedOptionPageControl.xaml
浏览文件 @
2bd5f92a
...
...
@@ -101,30 +101,6 @@
</StackPanel>
</GroupBox>
<GroupBox x:Uid="InlineHintsGroupBox"
Header="{x:Static local:AdvancedOptionPageStrings.Option_Inline_Hints_experimental}">
<StackPanel>
<CheckBox x:Name="DisplayInlineParameterNameHints"
Content="{x:Static local:AdvancedOptionPageStrings.Option_Display_inline_parameter_name_hints}"
Checked="DisplayInlineParameterNameHints_Checked"
Unchecked="DisplayInlineParameterNameHints_Unchecked"/>
<StackPanel Margin="15, 0, 0, 0">
<CheckBox x:Uid="ShowHintsForLiterals"
x:Name="ShowHintsForLiterals"
Content="{x:Static local:AdvancedOptionPageStrings.Option_Show_hints_for_literals}" />
<CheckBox x:Uid="ShowHintsForNewExpressions"
x:Name="ShowHintsForNewExpressions"
Content="{x:Static local:AdvancedOptionPageStrings.Option_Show_hints_for_New_expressions}" />
<CheckBox x:Uid="ShowHintsForEverythingElse"
x:Name="ShowHintsForEverythingElse"
Content="{x:Static local:AdvancedOptionPageStrings.Option_Show_hints_for_everything_else}" />
<CheckBox x:Uid="HideHintsWhenClearBasedonMethodAndParameterName"
x:Name="HideHintsWhenClearBasedonMethodAndParameterName"
Content="{x:Static local:AdvancedOptionPageStrings.Option_Hide_hints_when_clear_based_on_method_and_parameter_name}" />
</StackPanel>
</StackPanel>
</GroupBox>
<GroupBox x:Uid="EditorHelpGroupBox"
Header="{x:Static local:AdvancedOptionPageStrings.Option_EditorHelp}">
<StackPanel>
...
...
@@ -217,6 +193,32 @@
</StackPanel>
</GroupBox>
<GroupBox x:Uid="InlineHintsGroupBox"
Header="{x:Static local:AdvancedOptionPageStrings.Option_Inline_Hints_experimental}">
<StackPanel>
<CheckBox x:Name="DisplayInlineParameterNameHints"
Content="{x:Static local:AdvancedOptionPageStrings.Option_Display_inline_parameter_name_hints}"
Checked="DisplayInlineParameterNameHints_Checked"
Unchecked="DisplayInlineParameterNameHints_Unchecked"/>
<StackPanel Margin="15, 0, 0, 0">
<CheckBox x:Uid="ShowHintsForLiterals"
x:Name="ShowHintsForLiterals"
Content="{x:Static local:AdvancedOptionPageStrings.Option_Show_hints_for_literals}" />
<CheckBox x:Uid="ShowHintsForNewExpressions"
x:Name="ShowHintsForNewExpressions"
Content="{x:Static local:AdvancedOptionPageStrings.Option_Show_hints_for_New_expressions}" />
<CheckBox x:Uid="ShowHintsForEverythingElse"
x:Name="ShowHintsForEverythingElse"
Content="{x:Static local:AdvancedOptionPageStrings.Option_Show_hints_for_everything_else}" />
<CheckBox x:Uid="HideHintsWhenClearBasedOnMethodAndParameterName"
x:Name="HideHintsWhenClearBasedOnMethodAndParameterName"
Content="{x:Static local:AdvancedOptionPageStrings.Option_Hide_hints_when_clear_based_on_method_and_parameter_name}" />
<CheckBox x:Uid="HideHintsWhenParameterNamesDifferOnlyBySuffix"
x:Name="HideHintsWhenParameterNamesDifferOnlyBySuffix"
Content="{x:Static local:AdvancedOptionPageStrings.Option_Hide_hints_when_parameter_names_differ_only_by_suffix}" />
</StackPanel>
</StackPanel>
</GroupBox>
</StackPanel>
</ScrollViewer>
</options:AbstractOptionPageControl>
src/VisualStudio/VisualBasic/Impl/Options/AdvancedOptionPageControl.xaml.vb
浏览文件 @
2bd5f92a
...
...
@@ -63,7 +63,8 @@ Namespace Microsoft.VisualStudio.LanguageServices.VisualBasic.Options
BindToOption
(
ShowHintsForLiterals
,
InlineHintsOptions
.
ForLiteralParameters
,
LanguageNames
.
VisualBasic
)
BindToOption
(
ShowHintsForNewExpressions
,
InlineHintsOptions
.
ForObjectCreationParameters
,
LanguageNames
.
VisualBasic
)
BindToOption
(
ShowHintsForEverythingElse
,
InlineHintsOptions
.
ForOtherParameters
,
LanguageNames
.
VisualBasic
)
BindToOption
(
HideHintsWhenClearBasedonMethodAndParameterName
,
InlineHintsOptions
.
HideForParametersThatMatchMethodIntent
,
LanguageNames
.
VisualBasic
)
BindToOption
(
HideHintsWhenClearBasedOnMethodAndParameterName
,
InlineHintsOptions
.
HideForParametersThatMatchMethodIntent
,
LanguageNames
.
VisualBasic
)
BindToOption
(
HideHintsWhenParameterNamesDifferOnlyBySuffix
,
InlineHintsOptions
.
HideForParametersThatDifferOnlyBySuffix
,
LanguageNames
.
VisualBasic
)
BindToOption
(
EnableEndConstruct
,
FeatureOnOffOptions
.
EndConstruct
,
LanguageNames
.
VisualBasic
)
BindToOption
(
EnableLineCommit
,
FeatureOnOffOptions
.
PrettyListing
,
LanguageNames
.
VisualBasic
)
...
...
@@ -113,7 +114,8 @@ Namespace Microsoft.VisualStudio.LanguageServices.VisualBasic.Options
ShowHintsForLiterals
.
IsEnabled
=
enabledForParameters
ShowHintsForNewExpressions
.
IsEnabled
=
enabledForParameters
ShowHintsForEverythingElse
.
IsEnabled
=
enabledForParameters
HideHintsWhenClearBasedonMethodAndParameterName
.
IsEnabled
=
enabledForParameters
HideHintsWhenClearBasedOnMethodAndParameterName
.
IsEnabled
=
enabledForParameters
HideHintsWhenParameterNamesDifferOnlyBySuffix
.
IsEnabled
=
enabledForParameters
End
Sub
Private
Sub
DisplayInlineParameterNameHints_Checked
()
...
...
src/VisualStudio/VisualBasic/Impl/Options/AdvancedOptionPageStrings.vb
浏览文件 @
2bd5f92a
...
...
@@ -51,6 +51,9 @@ Namespace Microsoft.VisualStudio.LanguageServices.VisualBasic.Options
Public
ReadOnly
Property
Option_Hide_hints_when_clear_based_on_method_and_parameter_name
As
String
=
ServicesVSResources
.
Hide_hints_when_clear_based_on_method_and_parameter_name
Public
ReadOnly
Property
Option_Hide_hints_when_parameter_names_differ_only_by_suffix
As
String
=
ServicesVSResources
.
Hide_hints_when_parameter_names_differ_only_by_suffix
Public
ReadOnly
Property
Option_DontPutOutOrRefOnStruct
As
String
Get
Return
BasicVSResources
.
Don_t_put_ByRef_on_custom_structure
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录