Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
lwm1986
roslyn
提交
855509af
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,发现更多精彩内容 >>
未验证
提交
855509af
编写于
10月 29, 2019
作者:
J
Jason Malinowski
提交者:
GitHub
10月 29, 2019
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #38689 from jasonmalinowski/delete-nullable-analysis-checkbox
Delete the checkbox to control nullable analysis in the IDE
上级
916e4925
b84a4d5c
变更
23
隐藏空白更改
内联
并排
Showing
23 changed file
with
2 addition
and
213 deletion
+2
-213
src/EditorFeatures/CSharpTest/QuickInfo/SemanticQuickInfoSourceTests.cs
...ures/CSharpTest/QuickInfo/SemanticQuickInfoSourceTests.cs
+2
-25
src/EditorFeatures/Core/Shared/Options/FeatureOnOffOptions.cs
...EditorFeatures/Core/Shared/Options/FeatureOnOffOptions.cs
+0
-10
src/VisualStudio/CSharp/Impl/Options/AdvancedOptionPageControl.xaml
...Studio/CSharp/Impl/Options/AdvancedOptionPageControl.xaml
+0
-3
src/VisualStudio/CSharp/Impl/Options/AdvancedOptionPageControl.xaml.cs
...dio/CSharp/Impl/Options/AdvancedOptionPageControl.xaml.cs
+0
-1
src/VisualStudio/CSharp/Impl/Options/AdvancedOptionPageStrings.cs
...alStudio/CSharp/Impl/Options/AdvancedOptionPageStrings.cs
+0
-3
src/VisualStudio/Core/Def/Implementation/ProjectSystem/VisualStudioProjectOptionsProcessor.cs
...tion/ProjectSystem/VisualStudioProjectOptionsProcessor.cs
+0
-44
src/VisualStudio/Core/Def/ServicesVSResources.Designer.cs
src/VisualStudio/Core/Def/ServicesVSResources.Designer.cs
+0
-9
src/VisualStudio/Core/Def/ServicesVSResources.resx
src/VisualStudio/Core/Def/ServicesVSResources.resx
+0
-3
src/VisualStudio/Core/Def/xlf/ServicesVSResources.cs.xlf
src/VisualStudio/Core/Def/xlf/ServicesVSResources.cs.xlf
+0
-5
src/VisualStudio/Core/Def/xlf/ServicesVSResources.de.xlf
src/VisualStudio/Core/Def/xlf/ServicesVSResources.de.xlf
+0
-5
src/VisualStudio/Core/Def/xlf/ServicesVSResources.es.xlf
src/VisualStudio/Core/Def/xlf/ServicesVSResources.es.xlf
+0
-5
src/VisualStudio/Core/Def/xlf/ServicesVSResources.fr.xlf
src/VisualStudio/Core/Def/xlf/ServicesVSResources.fr.xlf
+0
-5
src/VisualStudio/Core/Def/xlf/ServicesVSResources.it.xlf
src/VisualStudio/Core/Def/xlf/ServicesVSResources.it.xlf
+0
-5
src/VisualStudio/Core/Def/xlf/ServicesVSResources.ja.xlf
src/VisualStudio/Core/Def/xlf/ServicesVSResources.ja.xlf
+0
-5
src/VisualStudio/Core/Def/xlf/ServicesVSResources.ko.xlf
src/VisualStudio/Core/Def/xlf/ServicesVSResources.ko.xlf
+0
-5
src/VisualStudio/Core/Def/xlf/ServicesVSResources.pl.xlf
src/VisualStudio/Core/Def/xlf/ServicesVSResources.pl.xlf
+0
-5
src/VisualStudio/Core/Def/xlf/ServicesVSResources.pt-BR.xlf
src/VisualStudio/Core/Def/xlf/ServicesVSResources.pt-BR.xlf
+0
-5
src/VisualStudio/Core/Def/xlf/ServicesVSResources.ru.xlf
src/VisualStudio/Core/Def/xlf/ServicesVSResources.ru.xlf
+0
-5
src/VisualStudio/Core/Def/xlf/ServicesVSResources.tr.xlf
src/VisualStudio/Core/Def/xlf/ServicesVSResources.tr.xlf
+0
-5
src/VisualStudio/Core/Def/xlf/ServicesVSResources.zh-Hans.xlf
...VisualStudio/Core/Def/xlf/ServicesVSResources.zh-Hans.xlf
+0
-5
src/VisualStudio/Core/Def/xlf/ServicesVSResources.zh-Hant.xlf
...VisualStudio/Core/Def/xlf/ServicesVSResources.zh-Hant.xlf
+0
-5
src/VisualStudio/Core/Impl/Options/AbstractOptionPageControl.cs
...sualStudio/Core/Impl/Options/AbstractOptionPageControl.cs
+0
-39
src/Workspaces/Core/Portable/Utilities/CompilerFeatureFlags.cs
...orkspaces/Core/Portable/Utilities/CompilerFeatureFlags.cs
+0
-11
未找到文件。
src/EditorFeatures/CSharpTest/QuickInfo/SemanticQuickInfoSourceTests.cs
浏览文件 @
855509af
...
...
@@ -12,7 +12,6 @@
using
Microsoft.CodeAnalysis.Editor.UnitTests.Workspaces
;
using
Microsoft.CodeAnalysis.QuickInfo
;
using
Microsoft.CodeAnalysis.Test.Utilities
;
using
Microsoft.CodeAnalysis.Utilities
;
using
Roslyn.Test.Utilities
;
using
Roslyn.Utilities
;
using
Xunit
;
...
...
@@ -6569,31 +6568,9 @@ void N()
}
[
Fact
,
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
QuickInfo
)]
public
async
Task
NullableNotShown
WithoutFeatureFlag
()
public
async
Task
NullableNotShown
InNullableDisable
()
{
var
options
=
TestOptions
.
Regular8
.
WithFeature
(
CompilerFeatureFlags
.
RunNullableAnalysis
,
"false"
);
await
TestWithOptionsAsync
(
options
,
@"#nullable enable
using System.Collections.Generic;
class X
{
void N()
{
string s = """";
string s2 = $$s;
}
}"
,
MainDescription
(
$"(
{
FeaturesResources
.
local_variable
}
) string s"
),
NullabilityAnalysis
(
""
));
}
[
Fact
,
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
QuickInfo
)]
public
async
Task
NullableNotShownInNullableDisableContextEvenIfAnalysisIsRunning
()
{
var
options
=
TestOptions
.
Regular8
.
WithFeature
(
CompilerFeatureFlags
.
RunNullableAnalysis
,
"true"
);
await
TestWithOptionsAsync
(
options
,
await
TestWithOptionsAsync
(
TestOptions
.
Regular8
,
@"#nullable disable
using System.Collections.Generic;
...
...
src/EditorFeatures/Core/Shared/Options/FeatureOnOffOptions.cs
浏览文件 @
855509af
...
...
@@ -84,16 +84,6 @@ internal static class FeatureOnOffOptions
nameof
(
FeatureOnOffOptions
),
nameof
(
UseEnhancedColors
),
defaultValue
:
1
,
storageLocations
:
new
RoamingProfileStorageLocation
(
"WindowManagement.Options.UseEnhancedColorsForManagedLanguages"
));
/// <summary>
/// Feature to enable <see cref="CompilerFeatureFlags.RunNullableAnalysis"/> in the compiler flags for all csharp projects.
/// 0 = default, which leaves the flag unset.
/// 1 = set to true
/// -1 = set to false
/// </summary>
public
static
readonly
Option
<
int
>
UseNullableReferenceTypeAnalysis
=
new
Option
<
int
>(
nameof
(
FeatureOnOffOptions
),
nameof
(
UseNullableReferenceTypeAnalysis
),
defaultValue
:
0
,
storageLocations
:
new
RoamingProfileStorageLocation
(
$"TextEditor.CSharp.
{
nameof
(
UseNullableReferenceTypeAnalysis
)}
"
));
// Note: no storage location since this is intentionally a session variable
public
static
readonly
Option
<
bool
>
AcceptedDecompilerDisclaimer
=
new
Option
<
bool
>(
nameof
(
FeatureOnOffOptions
),
nameof
(
AcceptedDecompilerDisclaimer
),
defaultValue
:
false
);
...
...
src/VisualStudio/CSharp/Impl/Options/AdvancedOptionPageControl.xaml
浏览文件 @
855509af
...
...
@@ -19,9 +19,6 @@
Content="{x:Static local:AdvancedOptionPageStrings.Option_Enable_full_solution_analysis}" />
<CheckBox x:Name="Enable_navigation_to_decompiled_sources"
Content="{x:Static local:AdvancedOptionPageStrings.Option_Enable_navigation_to_decompiled_sources}" />
<CheckBox x:Name="Enable_use_nullable_reference_types"
IsThreeState="True"
Content="{x:Static local:AdvancedOptionPageStrings.Option_use_nullable_reference_analysis_IDE_features}" />
<CheckBox x:Name="Use_editorconfig_compatibility_mode"
Content="{x:Static local:AdvancedOptionPageStrings.Option_use_editorconfig_compatibility_mode}" />
</StackPanel>
...
...
src/VisualStudio/CSharp/Impl/Options/AdvancedOptionPageControl.xaml.cs
浏览文件 @
855509af
...
...
@@ -24,7 +24,6 @@ public AdvancedOptionPageControl(OptionStore optionStore) : base(optionStore)
BindToFullSolutionAnalysisOption
(
Enable_full_solution_analysis
,
LanguageNames
.
CSharp
);
BindToOption
(
Enable_navigation_to_decompiled_sources
,
FeatureOnOffOptions
.
NavigateToDecompiledSources
);
BindTristateToOption
(
Enable_use_nullable_reference_types
,
FeatureOnOffOptions
.
UseNullableReferenceTypeAnalysis
);
BindToOption
(
Use_editorconfig_compatibility_mode
,
EditorConfigDocumentOptionsProviderFactory
.
UseLegacyEditorConfigSupport
);
BindToOption
(
PlaceSystemNamespaceFirst
,
GenerationOptions
.
PlaceSystemNamespaceFirst
,
LanguageNames
.
CSharp
);
...
...
src/VisualStudio/CSharp/Impl/Options/AdvancedOptionPageStrings.cs
浏览文件 @
855509af
...
...
@@ -18,9 +18,6 @@ public static string Option_Enable_full_solution_analysis
public
static
string
Option_Enable_navigation_to_decompiled_sources
=>
ServicesVSResources
.
Enable_navigation_to_decompiled_sources
;
public
static
string
Option_use_nullable_reference_analysis_IDE_features
=>
ServicesVSResources
.
Enable_nullable_reference_analysis_IDE_features
;
public
static
string
Option_use_editorconfig_compatibility_mode
=>
ServicesVSResources
.
Use_editorconfig_compatibility_mode
;
...
...
src/VisualStudio/Core/Def/Implementation/ProjectSystem/VisualStudioProjectOptionsProcessor.cs
浏览文件 @
855509af
...
...
@@ -4,10 +4,7 @@
using
System.Collections.Immutable
;
using
System.IO
;
using
Microsoft.CodeAnalysis
;
using
Microsoft.CodeAnalysis.Editor.Shared.Options
;
using
Microsoft.CodeAnalysis.Host
;
using
Microsoft.CodeAnalysis.Options
;
using
Microsoft.CodeAnalysis.Utilities
;
using
Roslyn.Utilities
;
namespace
Microsoft.VisualStudio.LanguageServices.Implementation.ProjectSystem
...
...
@@ -27,7 +24,6 @@ internal class VisualStudioProjectOptionsProcessor : IDisposable
private
CommandLineArguments
_commandLineArgumentsForCommandLine
;
private
string
_explicitRuleSetFilePath
;
private
IReferenceCountedDisposable
<
ICacheEntry
<
string
,
IRuleSetFile
>>
_ruleSetFile
=
null
;
private
readonly
IOptionService
_optionService
;
public
VisualStudioProjectOptionsProcessor
(
VisualStudioProject
project
,
HostWorkspaceServices
workspaceServices
)
{
...
...
@@ -37,15 +33,6 @@ public VisualStudioProjectOptionsProcessor(VisualStudioProject project, HostWork
// Set up _commandLineArgumentsForCommandLine to a default. No lock taken since we're in the constructor so nothing can race.
ReparseCommandLine_NoLock
();
_optionService
=
workspaceServices
.
GetRequiredService
<
IOptionService
>();
// For C#, we need to listen to the options for NRT analysis
// that can change in VS through tools > options
if
(
_project
.
Language
==
LanguageNames
.
CSharp
)
{
_optionService
.
OptionChanged
+=
OptionService_OptionChanged
;
}
}
public
string
CommandLine
...
...
@@ -113,15 +100,6 @@ public string EffectiveRuleSetFilePath
}
}
private
void
OptionService_OptionChanged
(
object
sender
,
OptionChangedEventArgs
e
)
{
if
(
e
.
Option
.
Name
==
FeatureOnOffOptions
.
UseNullableReferenceTypeAnalysis
.
Name
&&
e
.
Option
.
Feature
==
FeatureOnOffOptions
.
UseNullableReferenceTypeAnalysis
.
Feature
)
{
UpdateProjectForNewHostValues
();
}
}
private
void
DisposeOfRuleSetFile_NoLock
()
{
if
(
_ruleSetFile
!=
null
)
...
...
@@ -178,8 +156,6 @@ private void UpdateProjectOptions_NoLock()
var
parseOptions
=
_commandLineArgumentsForCommandLine
.
ParseOptions
.
WithDocumentationMode
(
documentationMode
);
parseOptions
=
ComputeOptionsServiceParseOptions
(
parseOptions
);
// We've computed what the base values should be; we now give an opportunity for any host-specific settings to be computed
// before we apply them
compilationOptions
=
ComputeCompilationOptionsWithHostValues
(
compilationOptions
,
this
.
_ruleSetFile
?.
Target
.
Value
);
...
...
@@ -198,25 +174,6 @@ private void UpdateProjectOptions_NoLock()
_project
.
ParseOptions
=
parseOptions
;
}
private
ParseOptions
ComputeOptionsServiceParseOptions
(
ParseOptions
parseOptions
)
{
if
(
_project
.
Language
==
LanguageNames
.
CSharp
)
{
var
useNullableReferenceAnalysisOption
=
_optionService
.
GetOption
(
FeatureOnOffOptions
.
UseNullableReferenceTypeAnalysis
);
if
(
useNullableReferenceAnalysisOption
==
-
1
)
{
parseOptions
=
parseOptions
.
WithFeatures
(
new
[]
{
KeyValuePairUtil
.
Create
(
CompilerFeatureFlags
.
RunNullableAnalysis
,
"false"
)
});
}
else
if
(
useNullableReferenceAnalysisOption
==
1
)
{
parseOptions
=
parseOptions
.
WithFeatures
(
new
[]
{
KeyValuePairUtil
.
Create
(
CompilerFeatureFlags
.
RunNullableAnalysis
,
"true"
)
});
}
}
return
parseOptions
;
}
private
void
RuleSetFile_UpdatedOnDisk
(
object
sender
,
EventArgs
e
)
{
lock
(
_gate
)
...
...
@@ -275,7 +232,6 @@ public void Dispose()
lock
(
_gate
)
{
DisposeOfRuleSetFile_NoLock
();
_optionService
.
OptionChanged
-=
OptionService_OptionChanged
;
}
}
}
...
...
src/VisualStudio/Core/Def/ServicesVSResources.Designer.cs
浏览文件 @
855509af
...
...
@@ -886,15 +886,6 @@ internal class ServicesVSResources {
}
}
/// <summary>
/// Looks up a localized string similar to Enable nullable reference analysis IDE features.
/// </summary>
internal
static
string
Enable_nullable_reference_analysis_IDE_features
{
get
{
return
ResourceManager
.
GetString
(
"Enable_nullable_reference_analysis_IDE_features"
,
resourceCulture
);
}
}
/// <summary>
/// Looks up a localized string similar to --- End of inner exception stack trace ---.
/// </summary>
...
...
src/VisualStudio/Core/Def/ServicesVSResources.resx
浏览文件 @
855509af
...
...
@@ -1166,9 +1166,6 @@ I agree to all of the foregoing:</value>
<data
name=
"Use_enhanced_colors_for_C_and_Basic"
xml:space=
"preserve"
>
<value>
Use enhanced colors for C# and Basic
</value>
</data>
<data
name=
"Enable_nullable_reference_analysis_IDE_features"
xml:space=
"preserve"
>
<value>
Enable nullable reference analysis IDE features
</value>
</data>
<data
name=
"Move_to_namespace"
xml:space=
"preserve"
>
<value>
Move to Namespace
</value>
</data>
...
...
src/VisualStudio/Core/Def/xlf/ServicesVSResources.cs.xlf
浏览文件 @
855509af
...
...
@@ -97,11 +97,6 @@
<target
state=
"translated"
>
Element není platný.
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Enable_nullable_reference_analysis_IDE_features"
>
<source>
Enable nullable reference analysis IDE features
</source>
<target
state=
"translated"
>
Povolit funkce rozhraní IDE pro analýzu odkazů, které můžou mít hodnotu null
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Evaluating_0_tasks_in_queue"
>
<source>
Evaluating ({0} tasks in queue)
</source>
<target
state=
"translated"
>
Vyhodnocování (počet úloh ve frontě: {0})
</target>
...
...
src/VisualStudio/Core/Def/xlf/ServicesVSResources.de.xlf
浏览文件 @
855509af
...
...
@@ -97,11 +97,6 @@
<target
state=
"translated"
>
Das Element ist ungültig.
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Enable_nullable_reference_analysis_IDE_features"
>
<source>
Enable nullable reference analysis IDE features
</source>
<target
state=
"translated"
>
IDE-Features zur Analyse von Nullable-Verweisen aktivieren
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Evaluating_0_tasks_in_queue"
>
<source>
Evaluating ({0} tasks in queue)
</source>
<target
state=
"translated"
>
Auswertung ({0} Tasks in der Warteschlange)
</target>
...
...
src/VisualStudio/Core/Def/xlf/ServicesVSResources.es.xlf
浏览文件 @
855509af
...
...
@@ -97,11 +97,6 @@
<target
state=
"translated"
>
El elemento no es válido.
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Enable_nullable_reference_analysis_IDE_features"
>
<source>
Enable nullable reference analysis IDE features
</source>
<target
state=
"translated"
>
Habilitar características de IDE de análisis de referencias que aceptan valores NULL
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Evaluating_0_tasks_in_queue"
>
<source>
Evaluating ({0} tasks in queue)
</source>
<target
state=
"translated"
>
Evaluando ({0} tareas en cola)
</target>
...
...
src/VisualStudio/Core/Def/xlf/ServicesVSResources.fr.xlf
浏览文件 @
855509af
...
...
@@ -97,11 +97,6 @@
<target
state=
"translated"
>
L'élément n'est pas valide.
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Enable_nullable_reference_analysis_IDE_features"
>
<source>
Enable nullable reference analysis IDE features
</source>
<target
state=
"translated"
>
Activer les fonctionnalités de l'IDE pour l'analyse des références Nullable
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Evaluating_0_tasks_in_queue"
>
<source>
Evaluating ({0} tasks in queue)
</source>
<target
state=
"translated"
>
Évaluation ({0} tâches en file d'attente)
</target>
...
...
src/VisualStudio/Core/Def/xlf/ServicesVSResources.it.xlf
浏览文件 @
855509af
...
...
@@ -97,11 +97,6 @@
<target
state=
"translated"
>
L'elemento non è valido.
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Enable_nullable_reference_analysis_IDE_features"
>
<source>
Enable nullable reference analysis IDE features
</source>
<target
state=
"translated"
>
Abilita le funzionalità IDE per l'analisi dei riferimenti nullable
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Evaluating_0_tasks_in_queue"
>
<source>
Evaluating ({0} tasks in queue)
</source>
<target
state=
"translated"
>
In fase di valutazione ({0} attività in coda)
</target>
...
...
src/VisualStudio/Core/Def/xlf/ServicesVSResources.ja.xlf
浏览文件 @
855509af
...
...
@@ -97,11 +97,6 @@
<target
state=
"translated"
>
要素が有効ではありません。
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Enable_nullable_reference_analysis_IDE_features"
>
<source>
Enable nullable reference analysis IDE features
</source>
<target
state=
"translated"
>
NULL 許容参照分析の IDE 機能を有効にします
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Evaluating_0_tasks_in_queue"
>
<source>
Evaluating ({0} tasks in queue)
</source>
<target
state=
"translated"
>
評価中 ({0} 個のタスクがキューにあります)
</target>
...
...
src/VisualStudio/Core/Def/xlf/ServicesVSResources.ko.xlf
浏览文件 @
855509af
...
...
@@ -97,11 +97,6 @@
<target
state=
"translated"
>
요소가 잘못되었습니다.
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Enable_nullable_reference_analysis_IDE_features"
>
<source>
Enable nullable reference analysis IDE features
</source>
<target
state=
"translated"
>
nullable 참조 분석 IDE 기능 사용
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Evaluating_0_tasks_in_queue"
>
<source>
Evaluating ({0} tasks in queue)
</source>
<target
state=
"translated"
>
평가 중(큐의 {0}개 작업)
</target>
...
...
src/VisualStudio/Core/Def/xlf/ServicesVSResources.pl.xlf
浏览文件 @
855509af
...
...
@@ -97,11 +97,6 @@
<target
state=
"translated"
>
Element jest nieprawidłowy.
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Enable_nullable_reference_analysis_IDE_features"
>
<source>
Enable nullable reference analysis IDE features
</source>
<target
state=
"translated"
>
Włącz funkcje środowiska IDE do analizy odwołań dopuszczających wartość null
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Evaluating_0_tasks_in_queue"
>
<source>
Evaluating ({0} tasks in queue)
</source>
<target
state=
"translated"
>
Szacowanie (zadania w kolejce: {0})
</target>
...
...
src/VisualStudio/Core/Def/xlf/ServicesVSResources.pt-BR.xlf
浏览文件 @
855509af
...
...
@@ -97,11 +97,6 @@
<target
state=
"translated"
>
O elemento é inválido.
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Enable_nullable_reference_analysis_IDE_features"
>
<source>
Enable nullable reference analysis IDE features
</source>
<target
state=
"translated"
>
Habilitar recursos do IDE de análise de referência que permite valor nulo
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Evaluating_0_tasks_in_queue"
>
<source>
Evaluating ({0} tasks in queue)
</source>
<target
state=
"translated"
>
Avaliando ({0} tarefas na fila)
</target>
...
...
src/VisualStudio/Core/Def/xlf/ServicesVSResources.ru.xlf
浏览文件 @
855509af
...
...
@@ -97,11 +97,6 @@
<target
state=
"translated"
>
Элемент недопустим.
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Enable_nullable_reference_analysis_IDE_features"
>
<source>
Enable nullable reference analysis IDE features
</source>
<target
state=
"translated"
>
Включить функции IDE для анализа ссылок, допускающих значение NULL
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Evaluating_0_tasks_in_queue"
>
<source>
Evaluating ({0} tasks in queue)
</source>
<target
state=
"translated"
>
Оценка (задач в очереди: {0})
</target>
...
...
src/VisualStudio/Core/Def/xlf/ServicesVSResources.tr.xlf
浏览文件 @
855509af
...
...
@@ -97,11 +97,6 @@
<target
state=
"translated"
>
Öğe geçerli değil.
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Enable_nullable_reference_analysis_IDE_features"
>
<source>
Enable nullable reference analysis IDE features
</source>
<target
state=
"translated"
>
Boş değer atanabilir başvuru analizi IDE özelliklerini etkinleştir
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Evaluating_0_tasks_in_queue"
>
<source>
Evaluating ({0} tasks in queue)
</source>
<target
state=
"translated"
>
Değerlendiriliyor (kuyrukta {0} görev var)
</target>
...
...
src/VisualStudio/Core/Def/xlf/ServicesVSResources.zh-Hans.xlf
浏览文件 @
855509af
...
...
@@ -97,11 +97,6 @@
<target
state=
"translated"
>
元素无效。
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Enable_nullable_reference_analysis_IDE_features"
>
<source>
Enable nullable reference analysis IDE features
</source>
<target
state=
"translated"
>
启用可为 null 的引用分析 IDE 功能
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Evaluating_0_tasks_in_queue"
>
<source>
Evaluating ({0} tasks in queue)
</source>
<target
state=
"translated"
>
正在评估(队列中有 {0} 个任务)
</target>
...
...
src/VisualStudio/Core/Def/xlf/ServicesVSResources.zh-Hant.xlf
浏览文件 @
855509af
...
...
@@ -97,11 +97,6 @@
<target
state=
"translated"
>
元素無效。
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Enable_nullable_reference_analysis_IDE_features"
>
<source>
Enable nullable reference analysis IDE features
</source>
<target
state=
"translated"
>
啟用可為 null 的參考分析 IDE 功能
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Evaluating_0_tasks_in_queue"
>
<source>
Evaluating ({0} tasks in queue)
</source>
<target
state=
"translated"
>
正在評估 (佇列中的 {0} 工作)
</target>
...
...
src/VisualStudio/Core/Impl/Options/AbstractOptionPageControl.cs
浏览文件 @
855509af
...
...
@@ -81,22 +81,6 @@ protected void BindToOption(CheckBox checkbox, Option<int> optionKey)
_bindingExpressions
.
Add
(
bindingExpression
);
}
protected
void
BindTristateToOption
(
CheckBox
checkbox
,
Option
<
int
>
optionKey
)
{
Debug
.
Assert
(
checkbox
.
IsThreeState
);
var
binding
=
new
Binding
()
{
Source
=
new
OptionBinding
<
int
>(
OptionStore
,
optionKey
),
Path
=
new
PropertyPath
(
"Value"
),
UpdateSourceTrigger
=
UpdateSourceTrigger
.
Default
,
Converter
=
new
CheckBoxTristateCheckedToIntConverter
(),
};
var
bindingExpression
=
checkbox
.
SetBinding
(
CheckBox
.
IsCheckedProperty
,
binding
);
_bindingExpressions
.
Add
(
bindingExpression
);
}
protected
void
BindToOption
(
CheckBox
checkbox
,
PerLanguageOption
<
bool
>
optionKey
,
string
languageName
)
{
var
binding
=
new
Binding
()
...
...
@@ -212,27 +196,4 @@ public class CheckBoxCheckedToIntConverter : IValueConverter
return
value
.
Equals
(
true
)
?
1
:
-
1
;
}
}
public
class
CheckBoxTristateCheckedToIntConverter
:
IValueConverter
{
public
object
Convert
(
object
value
,
Type
targetType
,
object
parameter
,
CultureInfo
culture
)
{
if
(
value
==
null
||
value
.
Equals
(
0
))
{
return
null
;
}
return
!
value
.
Equals
(-
1
);
}
public
object
ConvertBack
(
object
value
,
Type
targetType
,
object
parameter
,
CultureInfo
culture
)
{
if
(
value
==
null
)
{
return
0
;
}
return
value
.
Equals
(
true
)
?
1
:
-
1
;
}
}
}
src/Workspaces/Core/Portable/Utilities/CompilerFeatureFlags.cs
已删除
100644 → 0
浏览文件 @
916e4925
using
System
;
using
System.Collections.Generic
;
using
System.Text
;
namespace
Microsoft.CodeAnalysis.Utilities
{
internal
static
class
CompilerFeatureFlags
{
public
const
string
RunNullableAnalysis
=
"run-nullable-analysis"
;
}
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录