Ionide-vscode-fsharp: Invalid signatures in tooltips

Created on 3 Sep 2018  路  11Comments  路  Source: ionide/ionide-vscode-fsharp

image

I would assume this is an issue in visualfsharp but just to be sure I first wanted to report this here.
The problem disappears when renaming the "exception" parameter to something else. In fact the signature was just copied from the ILogger tooltip.

bug language services up for grabs

Most helpful comment

This is now fixed.

All 11 comments

For the errors we just feed editor with the errors provided by FCS, we have no impact on it.

Ok I reported the first part to visualfsharp. Let me try again:

image

How are the signatures reported? This one is not correct. Can we rename keywords or put them in ``?

Should we add the exception keyword to the grammar?

Nevermind, it already is.

Yeah... I probably don鈥檛 add double backticks in the tooltips at all, I bet it鈥檚 broken for other cases too, not only exception keyword. The bug is in the signature or tooltip formatted in FSAC if anyone would want to work on it

So if paramName isKeyword then sprintf "``%s``" paramName else paramName

@7sharp9 it's probably not just keywords but also other doubleticked things are wrong. But yes, it's simple bug to fix ;-)

Actually, I think there a function in the compiler to get back a mangled name etc

PrettyNaming.QuoteIdentifierIfNeeded

@Krzysztof-Cieslak Can you assign this for me to do?

Screenshot 2019-09-18 at 16 27 49

first part patched

This is now fixed.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

dustinmoris picture dustinmoris  路  3Comments

isaacabraham picture isaacabraham  路  5Comments

Agaspher20 picture Agaspher20  路  4Comments

gsomix picture gsomix  路  6Comments

cartermp picture cartermp  路  4Comments