FsAutoComplete icon indicating copy to clipboard operation
FsAutoComplete copied to clipboard

Expose diagnostics endpoint to view versions of dependencies

Open nojaf opened this issue 6 years ago • 2 comments

It would be nice if there was some sort of endpoint that returns the versions of all the tools used by FSAutocomplete.

Fantomas for example exposes the version and this could be useful when logging issues. Or show that version in the about section of Ionide or diagnostics dump.

//cc @baronfel

nojaf avatar Jan 08 '20 13:01 nojaf

yeah! Ideally this would be consumed and integrated into the 'diagnostics' command that already exists in Ionide. I'm not sure of a way to automatically-generate this list, it may require a bit of manual setup.

ie (pseudocode):

let fsacDependenciesAndVersions = 
	[ typeof<some_fantomas_type> ] 
    |> List.map getAssemblyNameAndVersion 
    |> sendResponse

and we'd expand that list of known-dependencies by hand?

baronfel avatar Jan 08 '20 13:01 baronfel

Little side note, for Fantomas we added a method to the public api to get the version. It does the same thing more or less but reads another assembly attribute that contains the beta information as well.

nojaf avatar Jan 08 '20 14:01 nojaf