-
Notifications
You must be signed in to change notification settings - Fork 154
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
Completion glyphs ( Bump to version 0.15.0) #1
Completion glyphs ( Bump to version 0.15.0) #1
Conversation
Thanks! The naming of the paket.references file is actually deliberate to prevent it from affecting the project files in the tests folder (http://fsprojects.github.io/Paket/references-files.html#File-name-conventions). When you say we could consider adding the conversion to string, would that be in a later PR? It would be preferable not to break the API twice if possible. |
I've reversed name change in Here is my function translating Glyph number to string (based of Dave's list, but I had to make it more FunScript friendly) used in Atom plugin right now - https://github.com/fsprojects/FSharp.Atom/blob/develop/src/Autocomplete.fs#L30. We can just move it here if You think it's better choice. Or we can move function Dave linked to just provide better string names. Your call. |
@7sharp9: I want to use glyphs for getting completion type in autocomplete - here is current version of it |
looking good - is there a canonical (or something we can all agree on) single-letter representation of these glyphs? if so it would be good to include that in the return object as well as the full name. |
For almost all we can just use starting letter of word. Problems:
|
@Krzysztof-Cieslak yes I forgot to update FSharp.AutoComplete.fsproj with the new paket references filename. @7sharp9 so we should be calling It looks like it has been replaced by For the one-letter, some clashes are survivable probably. 'x' is OK for exception I think, if we only want to use one case then it is hard to distinguish method and module though. |
@7sharp9 ok I found that it is a wrapper in FSharp.CompilerBinding, but why is it a list of lists now rather than just a list? |
Why is what a list of lists? The declarations? For overloads, the list of overloads is also present in the non symbol one albeit wrapped in the declaration wrapper type. |
|
OK, I've had more of an explore, and the new API looks interesting, but it doesn't give anything more we need right now, so let's just add this feature. @Krzysztof-Cieslak, could you:
Then I'll test and merge, thanks! |
@rneatherway Unless your using symbols as part of navigation and searching then they wont be as useful. In XS we use the symbol to format the tooltips and autocompletions rather then using lots of string cutting/parsing operations to format for type colour etc. ToolTipText types were a real pain to work with. |
Yeah I was having a look over your code and it looks much easier to work with for doing that kind of formatting. Things over here are still a bit more basic, but hopefully we will migrate over to using the symbols in due course. It's hard to know exactly what to do because the display features of the various editors are pretty different. |
OK, so I've rebased PR and have updated implementation with translating Also I've updated JSON test results to match new Completion API |
@@ -474,7 +523,7 @@ module internal Main = | |||
match state.OutputMode with | |||
| Text -> | |||
printAgent.WriteLine "DATA: completion" | |||
for d in decls.Items do printAgent.WriteLine(d.Name) | |||
for d in decls.Items do printAgent.WriteLine(sprintf "%s" d.Name) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you revert this line please?
Thanks, two small comments, then I'll merge and do a release tomorrow. |
Done. |
Great, the release is now available at https://github.com/fsharp/FSharp.AutoComplete/releases/tag/0.15.0 |
Test with overloaded methods and request in call
run dotnet restore and wait until process exit
As discussed in fsprojects/zarchive-fsharpbinding#1010 :
Also:
paket.references
file naming inFSharp.AutoComplete
projectbuild.fsx
reference fromFSharp.AutoComplete.fsproj
build.fsx
,paket.lock
andreadme.md
files tosln
(I think it's standard way of managing solutions with Paket and FAKE)