-
Notifications
You must be signed in to change notification settings - Fork 156
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wierd output of helptext command #35
Comments
Possibly the right solution would be to start using the symbol API which can then supply the independent parts of the help text and indeed other API calls that use tips etc. I think there reason for this format is the textual output from the DataTipText parts of FSC which is just simple strings. |
I don't think I'm competent enough to give any opinions on which FSC API should be used. What bothers me right now is just serialization format which is inconsistent with other responses |
Dave is correct, this is an artifact of the preformatted tips. I'm
|
At the moment, we just call this method to convert the @7sharp9: are you suggesting to just serialize the F# type, or use something different from FSharpSymbol? Could you show me the place in the XS addin where you use that? |
Im suggesting returning the name, signature and helptext which is either the textual form of xmldoc in the case of local xmldoc references or the sigId/file for non local refs. Im a bit busy finishing something off but If you leave it with me I can take a look later in the week. |
That would be great, thanks. |
* FSharp.CompilerBinding removed, and used parts absorbed. Fixes ionide#17. * ScriptCheckerOptions fetched with no timeout, and also stores them. Fixes ionide#18, ionide#28. * If a .fs file is not in a loaded project, produce an incomplete typecheck environment for it to give basic results. * Update helptext command to return { Name = ""; Text = "" }. Fixes ionide#35. * Update parsing of project options to include ProjectReferences. Fixes ionide#39. * Separate parsing of commands, main command loop, and formatting of response message into separate modules.
Backwards-incompatible changes: * Update helptext command to return { Name = ""; Text = "" }. Fixes ionide#35. * `project` command response now has 'null' for OutputFile and TargetFramework if a value cannot be determined. Other changes: * FSharp.CompilerBinding removed, and used parts absorbed. Fixes ionide#17. * ScriptCheckerOptions fetched with no timeout, and also stores them. Fixes ionide#18, ionide#28. * If a .fs file is not in a loaded project, produce an incomplete typecheck environment for it to give basic results. * Update parsing of project options to include ProjectReferences. Fixes ionide#39. * Separate parsing of commands, main command loop, and formatting of response message into separate modules.
Right now helptext command returns (example from tests) something like:
I'm not sure if format of returned JSON is right - I would suggest something like
I think such solution would be more consistent with results of others commands and would make it easier to parse result back in clients ( at least from F# in Atom point of view, no idea about rest editors and how "breaking" is that change).
The text was updated successfully, but these errors were encountered: