Skip to content

Commit

Permalink
Disable auto-formatting by default + add an 'Experimental' suffix to …
Browse files Browse the repository at this point in the history
…the option (#12454)
  • Loading branch information
vzarytovskii authored Nov 29, 2021
1 parent a89b9ff commit db31511
Show file tree
Hide file tree
Showing 15 changed files with 28 additions and 28 deletions.
2 changes: 1 addition & 1 deletion vsintegration/src/FSharp.Editor/Options/EditorOptions.fs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ type AdvancedOptions =
type FormattingOptions =
{ FormatOnPaste: bool }
static member Default =
{ FormatOnPaste = true }
{ FormatOnPaste = false }

[<Export>]
[<Export(typeof<IPersistSettings>)>]
Expand Down
2 changes: 1 addition & 1 deletion vsintegration/src/FSharp.UIResources/Strings.resx
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@
<value>Enter key behavior</value>
</data>
<data name="Format_on_paste" xml:space="preserve">
<value>Re-format indentation on paste</value>
<value>Re-format indentation on paste (Experimental)</value>
</data>
<data name="Suggest_names_for_errors_code_fix" xml:space="preserve">
<value>Suggest names for unresolved identifiers</value>
Expand Down
4 changes: 2 additions & 2 deletions vsintegration/src/FSharp.UIResources/xlf/Strings.cs.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,8 @@
<note />
</trans-unit>
<trans-unit id="Format_on_paste">
<source>Re-format indentation on paste</source>
<target state="translated">Přeformátovat odsazení při vložení</target>
<source>Re-format indentation on paste (Experimental)</source>
<target state="needs-review-translation">Přeformátovat odsazení při vložení</target>
<note />
</trans-unit>
<trans-unit id="Suggest_names_for_errors_code_fix">
Expand Down
4 changes: 2 additions & 2 deletions vsintegration/src/FSharp.UIResources/xlf/Strings.de.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,8 @@
<note />
</trans-unit>
<trans-unit id="Format_on_paste">
<source>Re-format indentation on paste</source>
<target state="translated">Einzug beim Einfügen neu formatieren</target>
<source>Re-format indentation on paste (Experimental)</source>
<target state="needs-review-translation">Einzug beim Einfügen neu formatieren</target>
<note />
</trans-unit>
<trans-unit id="Suggest_names_for_errors_code_fix">
Expand Down
4 changes: 2 additions & 2 deletions vsintegration/src/FSharp.UIResources/xlf/Strings.es.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,8 @@
<note />
</trans-unit>
<trans-unit id="Format_on_paste">
<source>Re-format indentation on paste</source>
<target state="translated">Cambiar formato de sangría al pegar</target>
<source>Re-format indentation on paste (Experimental)</source>
<target state="needs-review-translation">Cambiar formato de sangría al pegar</target>
<note />
</trans-unit>
<trans-unit id="Suggest_names_for_errors_code_fix">
Expand Down
4 changes: 2 additions & 2 deletions vsintegration/src/FSharp.UIResources/xlf/Strings.fr.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,8 @@
<note />
</trans-unit>
<trans-unit id="Format_on_paste">
<source>Re-format indentation on paste</source>
<target state="translated">Remettre en forme le retrait au collage</target>
<source>Re-format indentation on paste (Experimental)</source>
<target state="needs-review-translation">Remettre en forme le retrait au collage</target>
<note />
</trans-unit>
<trans-unit id="Suggest_names_for_errors_code_fix">
Expand Down
4 changes: 2 additions & 2 deletions vsintegration/src/FSharp.UIResources/xlf/Strings.it.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,8 @@
<note />
</trans-unit>
<trans-unit id="Format_on_paste">
<source>Re-format indentation on paste</source>
<target state="translated">Riformatta rientro dopo operazione Incolla</target>
<source>Re-format indentation on paste (Experimental)</source>
<target state="needs-review-translation">Riformatta rientro dopo operazione Incolla</target>
<note />
</trans-unit>
<trans-unit id="Suggest_names_for_errors_code_fix">
Expand Down
4 changes: 2 additions & 2 deletions vsintegration/src/FSharp.UIResources/xlf/Strings.ja.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,8 @@
<note />
</trans-unit>
<trans-unit id="Format_on_paste">
<source>Re-format indentation on paste</source>
<target state="translated">貼り付け時にインデントを再フォーマットする</target>
<source>Re-format indentation on paste (Experimental)</source>
<target state="needs-review-translation">貼り付け時にインデントを再フォーマットする</target>
<note />
</trans-unit>
<trans-unit id="Suggest_names_for_errors_code_fix">
Expand Down
4 changes: 2 additions & 2 deletions vsintegration/src/FSharp.UIResources/xlf/Strings.ko.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,8 @@
<note />
</trans-unit>
<trans-unit id="Format_on_paste">
<source>Re-format indentation on paste</source>
<target state="translated">붙여넣을 때 들여쓰기 서식 다시 지정</target>
<source>Re-format indentation on paste (Experimental)</source>
<target state="needs-review-translation">붙여넣을 때 들여쓰기 서식 다시 지정</target>
<note />
</trans-unit>
<trans-unit id="Suggest_names_for_errors_code_fix">
Expand Down
4 changes: 2 additions & 2 deletions vsintegration/src/FSharp.UIResources/xlf/Strings.pl.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,8 @@
<note />
</trans-unit>
<trans-unit id="Format_on_paste">
<source>Re-format indentation on paste</source>
<target state="translated">Ponownie formatuj wcięcia przy wklejaniu</target>
<source>Re-format indentation on paste (Experimental)</source>
<target state="needs-review-translation">Ponownie formatuj wcięcia przy wklejaniu</target>
<note />
</trans-unit>
<trans-unit id="Suggest_names_for_errors_code_fix">
Expand Down
4 changes: 2 additions & 2 deletions vsintegration/src/FSharp.UIResources/xlf/Strings.pt-BR.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,8 @@
<note />
</trans-unit>
<trans-unit id="Format_on_paste">
<source>Re-format indentation on paste</source>
<target state="translated">Reformatar o recuo ao colar</target>
<source>Re-format indentation on paste (Experimental)</source>
<target state="needs-review-translation">Reformatar o recuo ao colar</target>
<note />
</trans-unit>
<trans-unit id="Suggest_names_for_errors_code_fix">
Expand Down
4 changes: 2 additions & 2 deletions vsintegration/src/FSharp.UIResources/xlf/Strings.ru.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,8 @@
<note />
</trans-unit>
<trans-unit id="Format_on_paste">
<source>Re-format indentation on paste</source>
<target state="translated">Повторно форматировать отступы при вставке</target>
<source>Re-format indentation on paste (Experimental)</source>
<target state="needs-review-translation">Повторно форматировать отступы при вставке</target>
<note />
</trans-unit>
<trans-unit id="Suggest_names_for_errors_code_fix">
Expand Down
4 changes: 2 additions & 2 deletions vsintegration/src/FSharp.UIResources/xlf/Strings.tr.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,8 @@
<note />
</trans-unit>
<trans-unit id="Format_on_paste">
<source>Re-format indentation on paste</source>
<target state="translated">Yapıştırırken girintiyi yeniden biçimlendir</target>
<source>Re-format indentation on paste (Experimental)</source>
<target state="needs-review-translation">Yapıştırırken girintiyi yeniden biçimlendir</target>
<note />
</trans-unit>
<trans-unit id="Suggest_names_for_errors_code_fix">
Expand Down
4 changes: 2 additions & 2 deletions vsintegration/src/FSharp.UIResources/xlf/Strings.zh-Hans.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,8 @@
<note />
</trans-unit>
<trans-unit id="Format_on_paste">
<source>Re-format indentation on paste</source>
<target state="translated">粘贴时重新设置缩进格式</target>
<source>Re-format indentation on paste (Experimental)</source>
<target state="needs-review-translation">粘贴时重新设置缩进格式</target>
<note />
</trans-unit>
<trans-unit id="Suggest_names_for_errors_code_fix">
Expand Down
4 changes: 2 additions & 2 deletions vsintegration/src/FSharp.UIResources/xlf/Strings.zh-Hant.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,8 @@
<note />
</trans-unit>
<trans-unit id="Format_on_paste">
<source>Re-format indentation on paste</source>
<target state="translated">在貼上時重設縮排格式</target>
<source>Re-format indentation on paste (Experimental)</source>
<target state="needs-review-translation">在貼上時重設縮排格式</target>
<note />
</trans-unit>
<trans-unit id="Suggest_names_for_errors_code_fix">
Expand Down

0 comments on commit db31511

Please sign in to comment.