Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
lwm1986
roslyn
提交
c04d7917
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,发现更多精彩内容 >>
提交
c04d7917
编写于
8月 11, 2020
作者:
S
Sam Harwell
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix file headers in default code cleanup
Closes #46487
上级
bce969db
变更
16
显示空白变更内容
内联
并排
Showing
16 changed file
with
82 addition
and
2 deletion
+82
-2
src/Features/CSharp/Portable/CSharpFeaturesResources.resx
src/Features/CSharp/Portable/CSharpFeaturesResources.resx
+3
-0
src/Features/CSharp/Portable/CodeCleanup/CSharpCodeCleanupService.cs
...s/CSharp/Portable/CodeCleanup/CSharpCodeCleanupService.cs
+4
-2
src/Features/CSharp/Portable/xlf/CSharpFeaturesResources.cs.xlf
...atures/CSharp/Portable/xlf/CSharpFeaturesResources.cs.xlf
+5
-0
src/Features/CSharp/Portable/xlf/CSharpFeaturesResources.de.xlf
...atures/CSharp/Portable/xlf/CSharpFeaturesResources.de.xlf
+5
-0
src/Features/CSharp/Portable/xlf/CSharpFeaturesResources.es.xlf
...atures/CSharp/Portable/xlf/CSharpFeaturesResources.es.xlf
+5
-0
src/Features/CSharp/Portable/xlf/CSharpFeaturesResources.fr.xlf
...atures/CSharp/Portable/xlf/CSharpFeaturesResources.fr.xlf
+5
-0
src/Features/CSharp/Portable/xlf/CSharpFeaturesResources.it.xlf
...atures/CSharp/Portable/xlf/CSharpFeaturesResources.it.xlf
+5
-0
src/Features/CSharp/Portable/xlf/CSharpFeaturesResources.ja.xlf
...atures/CSharp/Portable/xlf/CSharpFeaturesResources.ja.xlf
+5
-0
src/Features/CSharp/Portable/xlf/CSharpFeaturesResources.ko.xlf
...atures/CSharp/Portable/xlf/CSharpFeaturesResources.ko.xlf
+5
-0
src/Features/CSharp/Portable/xlf/CSharpFeaturesResources.pl.xlf
...atures/CSharp/Portable/xlf/CSharpFeaturesResources.pl.xlf
+5
-0
src/Features/CSharp/Portable/xlf/CSharpFeaturesResources.pt-BR.xlf
...res/CSharp/Portable/xlf/CSharpFeaturesResources.pt-BR.xlf
+5
-0
src/Features/CSharp/Portable/xlf/CSharpFeaturesResources.ru.xlf
...atures/CSharp/Portable/xlf/CSharpFeaturesResources.ru.xlf
+5
-0
src/Features/CSharp/Portable/xlf/CSharpFeaturesResources.tr.xlf
...atures/CSharp/Portable/xlf/CSharpFeaturesResources.tr.xlf
+5
-0
src/Features/CSharp/Portable/xlf/CSharpFeaturesResources.zh-Hans.xlf
...s/CSharp/Portable/xlf/CSharpFeaturesResources.zh-Hans.xlf
+5
-0
src/Features/CSharp/Portable/xlf/CSharpFeaturesResources.zh-Hant.xlf
...s/CSharp/Portable/xlf/CSharpFeaturesResources.zh-Hant.xlf
+5
-0
src/VisualStudio/CSharp/Impl/LanguageService/CSharpCodeCleanupFixer_DiagnosticIds.cs
...l/LanguageService/CSharpCodeCleanupFixer_DiagnosticIds.cs
+10
-0
未找到文件。
src/Features/CSharp/Portable/CSharpFeaturesResources.resx
浏览文件 @
c04d7917
...
...
@@ -619,4 +619,7 @@
<value>
Remove 'in' keyword
</value>
<comment>
{Locked="in"} "in" is a C# keyword and should not be localized.
</comment>
</data>
<data
name=
"Apply_file_header_preferences"
xml:space=
"preserve"
>
<value>
Apply file header preferences
</value>
</data>
</root>
\ No newline at end of file
src/Features/CSharp/Portable/CodeCleanup/CSharpCodeCleanupService.cs
浏览文件 @
c04d7917
...
...
@@ -84,8 +84,10 @@ internal class CSharpCodeCleanupService : ICodeCleanupService
new
[]
{
IDEDiagnosticIds
.
UseObjectInitializerDiagnosticId
,
IDEDiagnosticIds
.
UseCollectionInitializerDiagnosticId
}),
new
DiagnosticSet
(
CSharpFeaturesResources
.
Apply_using_directive_placement_preferences
,
new
[]
{
IDEDiagnosticIds
.
MoveMisplacedUsingDirectivesDiagnosticId
})
);
new
[]
{
IDEDiagnosticIds
.
MoveMisplacedUsingDirectivesDiagnosticId
}),
new
DiagnosticSet
(
CSharpFeaturesResources
.
Apply_file_header_preferences
,
new
[]
{
IDEDiagnosticIds
.
FileHeaderMismatch
}));
public
async
Task
<
Document
>
CleanupAsync
(
Document
document
,
...
...
src/Features/CSharp/Portable/xlf/CSharpFeaturesResources.cs.xlf
浏览文件 @
c04d7917
...
...
@@ -32,6 +32,11 @@
<target
state=
"translated"
>
Použít předvolby pro text výrazu/bloku
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Apply_file_header_preferences"
>
<source>
Apply file header preferences
</source>
<target
state=
"new"
>
Apply file header preferences
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Apply_implicit_explicit_type_preferences"
>
<source>
Apply implicit/explicit type preferences
</source>
<target
state=
"translated"
>
Použít předvolby imlicitního/explicitního typu
</target>
...
...
src/Features/CSharp/Portable/xlf/CSharpFeaturesResources.de.xlf
浏览文件 @
c04d7917
...
...
@@ -32,6 +32,11 @@
<target
state=
"translated"
>
Ausdrucks-/Blocktextkörpereinstellungen anwenden
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Apply_file_header_preferences"
>
<source>
Apply file header preferences
</source>
<target
state=
"new"
>
Apply file header preferences
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Apply_implicit_explicit_type_preferences"
>
<source>
Apply implicit/explicit type preferences
</source>
<target
state=
"translated"
>
Implizite/explizite Typeneinstellungen anwenden
</target>
...
...
src/Features/CSharp/Portable/xlf/CSharpFeaturesResources.es.xlf
浏览文件 @
c04d7917
...
...
@@ -32,6 +32,11 @@
<target
state=
"translated"
>
Aplicar preferencias de cuerpo de la expresión o del bloque
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Apply_file_header_preferences"
>
<source>
Apply file header preferences
</source>
<target
state=
"new"
>
Apply file header preferences
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Apply_implicit_explicit_type_preferences"
>
<source>
Apply implicit/explicit type preferences
</source>
<target
state=
"translated"
>
Aplicar preferencias de tipos implícitos o explícitos
</target>
...
...
src/Features/CSharp/Portable/xlf/CSharpFeaturesResources.fr.xlf
浏览文件 @
c04d7917
...
...
@@ -32,6 +32,11 @@
<target
state=
"translated"
>
Appliquer les préférences de corps d'expression/de bloc
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Apply_file_header_preferences"
>
<source>
Apply file header preferences
</source>
<target
state=
"new"
>
Apply file header preferences
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Apply_implicit_explicit_type_preferences"
>
<source>
Apply implicit/explicit type preferences
</source>
<target
state=
"translated"
>
Appliquer les préférences de type implicite/explicite
</target>
...
...
src/Features/CSharp/Portable/xlf/CSharpFeaturesResources.it.xlf
浏览文件 @
c04d7917
...
...
@@ -32,6 +32,11 @@
<target
state=
"translated"
>
Applica le preferenze relative al corpo dell'espressione o del blocco
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Apply_file_header_preferences"
>
<source>
Apply file header preferences
</source>
<target
state=
"new"
>
Apply file header preferences
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Apply_implicit_explicit_type_preferences"
>
<source>
Apply implicit/explicit type preferences
</source>
<target
state=
"translated"
>
Applica le preferenze relative al tipo implicito/esplicito
</target>
...
...
src/Features/CSharp/Portable/xlf/CSharpFeaturesResources.ja.xlf
浏览文件 @
c04d7917
...
...
@@ -32,6 +32,11 @@
<target
state=
"translated"
>
式/ブロック本体の基本設定を適用します
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Apply_file_header_preferences"
>
<source>
Apply file header preferences
</source>
<target
state=
"new"
>
Apply file header preferences
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Apply_implicit_explicit_type_preferences"
>
<source>
Apply implicit/explicit type preferences
</source>
<target
state=
"translated"
>
暗黙的/明示的な型の基本設定を適用します
</target>
...
...
src/Features/CSharp/Portable/xlf/CSharpFeaturesResources.ko.xlf
浏览文件 @
c04d7917
...
...
@@ -32,6 +32,11 @@
<target
state=
"translated"
>
식/블록 본문 기본 설정 적용
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Apply_file_header_preferences"
>
<source>
Apply file header preferences
</source>
<target
state=
"new"
>
Apply file header preferences
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Apply_implicit_explicit_type_preferences"
>
<source>
Apply implicit/explicit type preferences
</source>
<target
state=
"translated"
>
암시적/명시적 형식 기본 설정 적용
</target>
...
...
src/Features/CSharp/Portable/xlf/CSharpFeaturesResources.pl.xlf
浏览文件 @
c04d7917
...
...
@@ -32,6 +32,11 @@
<target
state=
"translated"
>
Zastosuj preferencje treści wyrażenia/bloku
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Apply_file_header_preferences"
>
<source>
Apply file header preferences
</source>
<target
state=
"new"
>
Apply file header preferences
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Apply_implicit_explicit_type_preferences"
>
<source>
Apply implicit/explicit type preferences
</source>
<target
state=
"translated"
>
Zastosuj preferencje niejawnego/jawnego typu
</target>
...
...
src/Features/CSharp/Portable/xlf/CSharpFeaturesResources.pt-BR.xlf
浏览文件 @
c04d7917
...
...
@@ -32,6 +32,11 @@
<target
state=
"translated"
>
Aplicar as preferências de expressão/corpo do bloco
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Apply_file_header_preferences"
>
<source>
Apply file header preferences
</source>
<target
state=
"new"
>
Apply file header preferences
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Apply_implicit_explicit_type_preferences"
>
<source>
Apply implicit/explicit type preferences
</source>
<target
state=
"translated"
>
Aplicar as preferências de tipo implícitas/explícitas
</target>
...
...
src/Features/CSharp/Portable/xlf/CSharpFeaturesResources.ru.xlf
浏览文件 @
c04d7917
...
...
@@ -32,6 +32,11 @@
<target
state=
"translated"
>
Применять предпочтения для выражения или тела блока
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Apply_file_header_preferences"
>
<source>
Apply file header preferences
</source>
<target
state=
"new"
>
Apply file header preferences
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Apply_implicit_explicit_type_preferences"
>
<source>
Apply implicit/explicit type preferences
</source>
<target
state=
"translated"
>
Применять предпочтения для неявных или явных типов
</target>
...
...
src/Features/CSharp/Portable/xlf/CSharpFeaturesResources.tr.xlf
浏览文件 @
c04d7917
...
...
@@ -32,6 +32,11 @@
<target
state=
"translated"
>
İfade/blok gövdesi tercihlerini uygula
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Apply_file_header_preferences"
>
<source>
Apply file header preferences
</source>
<target
state=
"new"
>
Apply file header preferences
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Apply_implicit_explicit_type_preferences"
>
<source>
Apply implicit/explicit type preferences
</source>
<target
state=
"translated"
>
Örtük/açık tür tercihlerini uygula
</target>
...
...
src/Features/CSharp/Portable/xlf/CSharpFeaturesResources.zh-Hans.xlf
浏览文件 @
c04d7917
...
...
@@ -32,6 +32,11 @@
<target
state=
"translated"
>
应用表达式/块主体首选项
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Apply_file_header_preferences"
>
<source>
Apply file header preferences
</source>
<target
state=
"new"
>
Apply file header preferences
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Apply_implicit_explicit_type_preferences"
>
<source>
Apply implicit/explicit type preferences
</source>
<target
state=
"translated"
>
应用隐式/显式类型首选项
</target>
...
...
src/Features/CSharp/Portable/xlf/CSharpFeaturesResources.zh-Hant.xlf
浏览文件 @
c04d7917
...
...
@@ -32,6 +32,11 @@
<target
state=
"translated"
>
套用延伸模組/區塊主體喜好設定
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Apply_file_header_preferences"
>
<source>
Apply file header preferences
</source>
<target
state=
"new"
>
Apply file header preferences
</target>
<note
/>
</trans-unit>
<trans-unit
id=
"Apply_implicit_explicit_type_preferences"
>
<source>
Apply implicit/explicit type preferences
</source>
<target
state=
"translated"
>
套用隱含/明確類型喜好設定
</target>
...
...
src/VisualStudio/CSharp/Impl/LanguageService/CSharpCodeCleanupFixer_DiagnosticIds.cs
浏览文件 @
c04d7917
...
...
@@ -241,5 +241,15 @@ internal partial class CSharpCodeCleanUpFixer : CodeCleanUpFixer
[
ExportMetadata
(
"EnableByDefault"
,
true
)]
[
LocalizedName
(
typeof
(
CSharpVSResources
),
nameof
(
CSharpVSResources
.
Sort_usings
))]
public
static
readonly
FixIdDefinition
SortImports
;
[
Export
]
[
FixId
(
IDEDiagnosticIds
.
FileHeaderMismatch
)]
[
Name
(
IDEDiagnosticIds
.
FileHeaderMismatch
)]
[
Order
(
After
=
SortImportsFixId
)]
[
ConfigurationKey
(
"unused"
)]
[
HelpLink
(
"https://www.microsoft.com"
)]
[
ExportMetadata
(
"EnableByDefault"
,
true
)]
[
LocalizedName
(
typeof
(
CSharpFeaturesResources
),
nameof
(
CSharpFeaturesResources
.
Apply_file_header_preferences
))]
public
static
readonly
FixIdDefinition
FileHeaderMismatch
;
}
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录