Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 20 additions & 2 deletions vsintegration/src/FSharp.Editor/DocComments/XMLDocumentation.fs
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ module internal XmlDocumentation =
| "typeref" ->
for attr in el.Attributes() do
WriteAttribute collector attr "name" (tagParameter >> collector.Add)
| "br" -> AppendHardLine collector
| _ -> WriteNodes collector (el.Nodes())
| _ -> ()

Expand Down Expand Up @@ -217,6 +218,23 @@ module internal XmlDocumentation =
EnsureHardLine collector
WriteElement collector el

match Seq.tryHead (doc.Descendants(XName.op_Implicit "remarks")) with
| None -> ()
| Some el ->
AppendHardLine collector
AppendOnNewLine collector (SR.RemarksHeader())
AppendHardLine collector
WriteElement collector el

match Seq.tryHead (doc.Descendants(XName.op_Implicit "returns")) with
| None -> ()
| Some el ->
AppendHardLine collector
AppendOnNewLine collector (SR.ReturnsHeader())
AppendHardLine collector
collector.Add(tagSpace " ")
WriteElement collector el

member this.CollectParameter(collector: ITaggedTextCollector, paramName: string) =
match tryFindParameter paramName with
| None -> ()
Expand Down Expand Up @@ -338,9 +356,9 @@ module internal XmlDocumentation =
try
match GetMemberIndexOfAssembly(fileName) with
| Some(index) ->
let _, idx = index.ParseMemberSignature(signature)
let ok, idx = index.ParseMemberSignature(signature)

if idx <> 0u then
if Com.Succeeded(ok) then
let ok, xml = index.GetMemberXML(idx)

if Com.Succeeded(ok) then
Expand Down
6 changes: 6 additions & 0 deletions vsintegration/src/FSharp.Editor/FSharp.Editor.resx
Original file line number Diff line number Diff line change
Expand Up @@ -355,4 +355,10 @@ Use live (unsaved) buffers for analysis</value>
<data name="RemoveUnnecessaryParentheses" xml:space="preserve">
<value>Remove unnecessary parentheses</value>
</data>
<data name="RemarksHeader" xml:space="preserve">
<value>Remarks:</value>
</data>
<data name="ReturnsHeader" xml:space="preserve">
<value>Returns:</value>
</data>
</root>
10 changes: 10 additions & 0 deletions vsintegration/src/FSharp.Editor/xlf/FSharp.Editor.cs.xlf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions vsintegration/src/FSharp.Editor/xlf/FSharp.Editor.de.xlf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions vsintegration/src/FSharp.Editor/xlf/FSharp.Editor.es.xlf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions vsintegration/src/FSharp.Editor/xlf/FSharp.Editor.fr.xlf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions vsintegration/src/FSharp.Editor/xlf/FSharp.Editor.it.xlf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions vsintegration/src/FSharp.Editor/xlf/FSharp.Editor.ja.xlf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions vsintegration/src/FSharp.Editor/xlf/FSharp.Editor.ko.xlf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions vsintegration/src/FSharp.Editor/xlf/FSharp.Editor.pl.xlf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions vsintegration/src/FSharp.Editor/xlf/FSharp.Editor.pt-BR.xlf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions vsintegration/src/FSharp.Editor/xlf/FSharp.Editor.ru.xlf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions vsintegration/src/FSharp.Editor/xlf/FSharp.Editor.tr.xlf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions vsintegration/src/FSharp.Editor/xlf/FSharp.Editor.zh-Hans.xlf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions vsintegration/src/FSharp.Editor/xlf/FSharp.Editor.zh-Hant.xlf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.