diff --git a/src/Compiler/FSComp.txt b/src/Compiler/FSComp.txt index c6baff5fc2d..3430931ba63 100644 --- a/src/Compiler/FSComp.txt +++ b/src/Compiler/FSComp.txt @@ -1725,3 +1725,4 @@ featureUnmanagedConstraintCsharpInterop,"Interop between C#'s and F#'s unmanaged 3579,alwaysUseTypedStringInterpolation,"Interpolated string contains untyped identifiers. Adding typed format specifiers is recommended." 3580,tcUnexpectedFunTypeInUnionCaseField,"Unexpected function type in union case field definition. If you intend the field to be a function, consider wrapping the function signature with parens, e.g. | Case of a -> b into | Case of (a -> b)." 3582,tcInfoIfFunctionShadowsUnionCase,"This is a function definition that shadows a union case. If this is what you want, ignore or suppress this warning. If you want it to be a union case deconstruction, add parentheses." +3583,unnecessaryParentheses,"Parentheses can be removed." diff --git a/src/Compiler/xlf/FSComp.txt.cs.xlf b/src/Compiler/xlf/FSComp.txt.cs.xlf index 3dde918f6fe..f5ecd75c201 100644 --- a/src/Compiler/xlf/FSComp.txt.cs.xlf +++ b/src/Compiler/xlf/FSComp.txt.cs.xlf @@ -1552,6 +1552,11 @@ Zvažte použití parametru return! namísto return. + + Parentheses can be removed. + Parentheses can be removed. + + This attribute is currently unsupported by the F# compiler. Applying it will not achieve its intended effect. Kompilátor F# aktuálně nepodporuje tento atribut. Jeho použití nebude mít zamýšlený účinek. diff --git a/src/Compiler/xlf/FSComp.txt.de.xlf b/src/Compiler/xlf/FSComp.txt.de.xlf index 623d248e749..6ceec79c7c0 100644 --- a/src/Compiler/xlf/FSComp.txt.de.xlf +++ b/src/Compiler/xlf/FSComp.txt.de.xlf @@ -1552,6 +1552,11 @@ Verwenden Sie ggf. "return!" anstelle von "return". + + Parentheses can be removed. + Parentheses can be removed. + + This attribute is currently unsupported by the F# compiler. Applying it will not achieve its intended effect. Dieses Attribut wird derzeit vom F#-Compiler nicht unterstützt. Durch seine Anwendung wird die beabsichtigte Wirkung nicht erreicht. diff --git a/src/Compiler/xlf/FSComp.txt.es.xlf b/src/Compiler/xlf/FSComp.txt.es.xlf index b8bf9545232..8b5ff7d17b5 100644 --- a/src/Compiler/xlf/FSComp.txt.es.xlf +++ b/src/Compiler/xlf/FSComp.txt.es.xlf @@ -1552,6 +1552,11 @@ Considere la posibilidad de usar "return!" en lugar de "return". + + Parentheses can be removed. + Parentheses can be removed. + + This attribute is currently unsupported by the F# compiler. Applying it will not achieve its intended effect. Este atributo no es compatible actualmente con el compilador de F#. Si se aplica, no se obtendrá el efecto deseado. diff --git a/src/Compiler/xlf/FSComp.txt.fr.xlf b/src/Compiler/xlf/FSComp.txt.fr.xlf index 7e7a3c52317..c7b5d36d8f5 100644 --- a/src/Compiler/xlf/FSComp.txt.fr.xlf +++ b/src/Compiler/xlf/FSComp.txt.fr.xlf @@ -1552,6 +1552,11 @@ Utilisez 'return!' à la place de 'return'. + + Parentheses can be removed. + Parentheses can be removed. + + This attribute is currently unsupported by the F# compiler. Applying it will not achieve its intended effect. Cet attribut n’est actuellement pas pris en charge par le compilateur F #. L’application de celui-ci n’obtiendra pas l’effet souhaité. diff --git a/src/Compiler/xlf/FSComp.txt.it.xlf b/src/Compiler/xlf/FSComp.txt.it.xlf index a3977ebcac9..0f12ddd44ba 100644 --- a/src/Compiler/xlf/FSComp.txt.it.xlf +++ b/src/Compiler/xlf/FSComp.txt.it.xlf @@ -1552,6 +1552,11 @@ Provare a usare 'return!' invece di 'return'. + + Parentheses can be removed. + Parentheses can be removed. + + This attribute is currently unsupported by the F# compiler. Applying it will not achieve its intended effect. Questo attributo non è attualmente supportato dal compilatore F #. L'applicazione non riuscirà a ottenere l'effetto previsto. diff --git a/src/Compiler/xlf/FSComp.txt.ja.xlf b/src/Compiler/xlf/FSComp.txt.ja.xlf index 8ef13d09114..5df80d16793 100644 --- a/src/Compiler/xlf/FSComp.txt.ja.xlf +++ b/src/Compiler/xlf/FSComp.txt.ja.xlf @@ -1552,6 +1552,11 @@ 'return' の代わりに 'return!' を使うことを検討してください。 + + Parentheses can be removed. + Parentheses can be removed. + + This attribute is currently unsupported by the F# compiler. Applying it will not achieve its intended effect. この属性は現在、F # コンパイラのサポート外です。これを適用しても、意図した効果は得られません。 diff --git a/src/Compiler/xlf/FSComp.txt.ko.xlf b/src/Compiler/xlf/FSComp.txt.ko.xlf index 88e4d1fe5ca..065b31126da 100644 --- a/src/Compiler/xlf/FSComp.txt.ko.xlf +++ b/src/Compiler/xlf/FSComp.txt.ko.xlf @@ -1552,6 +1552,11 @@ 'return'이 아니라 'return!'를 사용하세요. + + Parentheses can be removed. + Parentheses can be removed. + + This attribute is currently unsupported by the F# compiler. Applying it will not achieve its intended effect. 이 특성은 현재 F# 컴파일러에서 지원되지 않습니다. 이 특성을 적용해도 의도한 효과를 얻을 수 없습니다. diff --git a/src/Compiler/xlf/FSComp.txt.pl.xlf b/src/Compiler/xlf/FSComp.txt.pl.xlf index aa61c578edc..9a0fd4c0a88 100644 --- a/src/Compiler/xlf/FSComp.txt.pl.xlf +++ b/src/Compiler/xlf/FSComp.txt.pl.xlf @@ -1552,6 +1552,11 @@ Rozważ użycie polecenia „return!” zamiast „return”. + + Parentheses can be removed. + Parentheses can be removed. + + This attribute is currently unsupported by the F# compiler. Applying it will not achieve its intended effect. Ten atrybut jest obecnie nieobsługiwany przez kompilator języka F#. Zastosowanie go nie spowoduje osiągnięcie zamierzonego skutku. diff --git a/src/Compiler/xlf/FSComp.txt.pt-BR.xlf b/src/Compiler/xlf/FSComp.txt.pt-BR.xlf index 2673132d500..9b6b7c2792a 100644 --- a/src/Compiler/xlf/FSComp.txt.pt-BR.xlf +++ b/src/Compiler/xlf/FSComp.txt.pt-BR.xlf @@ -1552,6 +1552,11 @@ Considere usar 'return!' em vez de 'return'. + + Parentheses can be removed. + Parentheses can be removed. + + This attribute is currently unsupported by the F# compiler. Applying it will not achieve its intended effect. Este atributo atualmente não é suportado pelo compilador F#. A sua aplicação não alcançará o efeito pretendido. diff --git a/src/Compiler/xlf/FSComp.txt.ru.xlf b/src/Compiler/xlf/FSComp.txt.ru.xlf index 8df26b4c206..ad10c7182e4 100644 --- a/src/Compiler/xlf/FSComp.txt.ru.xlf +++ b/src/Compiler/xlf/FSComp.txt.ru.xlf @@ -1552,6 +1552,11 @@ Рекомендуется использовать "return!" вместо "return". + + Parentheses can be removed. + Parentheses can be removed. + + This attribute is currently unsupported by the F# compiler. Applying it will not achieve its intended effect. Сейчас этот атрибут не поддерживается компилятором F#. Его применение не приведет к желаемому результату. diff --git a/src/Compiler/xlf/FSComp.txt.tr.xlf b/src/Compiler/xlf/FSComp.txt.tr.xlf index 8c4c9c3ae4f..84fc09d6944 100644 --- a/src/Compiler/xlf/FSComp.txt.tr.xlf +++ b/src/Compiler/xlf/FSComp.txt.tr.xlf @@ -1552,6 +1552,11 @@ 'return' yerine 'return!' kullanmayı deneyin. + + Parentheses can be removed. + Parentheses can be removed. + + This attribute is currently unsupported by the F# compiler. Applying it will not achieve its intended effect. Bu öznitelik şu anda F# derleyici tarafından desteklenmiyor. Özniteliğin uygulanması istenen etkiyi sağlamaz. diff --git a/src/Compiler/xlf/FSComp.txt.zh-Hans.xlf b/src/Compiler/xlf/FSComp.txt.zh-Hans.xlf index 03d09f84256..4c783d12070 100644 --- a/src/Compiler/xlf/FSComp.txt.zh-Hans.xlf +++ b/src/Compiler/xlf/FSComp.txt.zh-Hans.xlf @@ -1552,6 +1552,11 @@ 考虑使用 "return!",而非 "return"。 + + Parentheses can be removed. + Parentheses can be removed. + + This attribute is currently unsupported by the F# compiler. Applying it will not achieve its intended effect. F# 编译器当前不支持此属性。应用它不会达到预期效果。 diff --git a/src/Compiler/xlf/FSComp.txt.zh-Hant.xlf b/src/Compiler/xlf/FSComp.txt.zh-Hant.xlf index 60a8c885588..39da731ee49 100644 --- a/src/Compiler/xlf/FSComp.txt.zh-Hant.xlf +++ b/src/Compiler/xlf/FSComp.txt.zh-Hant.xlf @@ -1552,6 +1552,11 @@ 請考慮使用 'return!',而不使用 'return'。 + + Parentheses can be removed. + Parentheses can be removed. + + This attribute is currently unsupported by the F# compiler. Applying it will not achieve its intended effect. F# 編譯器目前不支援此屬性。套用此屬性並不會達到預期的效果。 diff --git a/vsintegration/src/FSharp.Editor/CodeFixes/RemoveUnnecessaryParentheses.fs b/vsintegration/src/FSharp.Editor/CodeFixes/RemoveUnnecessaryParentheses.fs index 5372dcf9179..6ddf07b47d9 100644 --- a/vsintegration/src/FSharp.Editor/CodeFixes/RemoveUnnecessaryParentheses.fs +++ b/vsintegration/src/FSharp.Editor/CodeFixes/RemoveUnnecessaryParentheses.fs @@ -76,11 +76,8 @@ type internal FSharpRemoveUnnecessaryParenthesesCodeFixProvider [] let title = "Parentheses can be removed." DiagnosticDescriptor( - "IDE0047", + "FS3583", title, title, "Style",