emacs-fsharp-mode
emacs-fsharp-mode copied to clipboard
Symbol use in project
Currently you can get symbol-use information in the current buffer.
Would it be possible to get symbol-use information in the whole project (i.e. other files)?
Thanks!
In FsAutoComplete this is done here: https://github.com/fsharp/FsAutoComplete/blob/master/src/FsAutoComplete.Core/CompilerServiceInterface.fs#L85
That could be changed or a new entry point added to get symbols across the whole file as described here: https://fsharp.github.io/FSharp.Compiler.Service/project.html
Nice. Thanks for the hints! :+1: I will check it out.
across the whole file
I meant across the whole project of course!
A new command has been added to FsAutoComplete https://github.com/fsharp/FsAutoComplete/pull/101 (by @Krzysztof-Cieslak), so this is just now a matter of adding a keybinding and way to view the results in Emacs.
Helm works really well for this.
The compilation buffer can be used for this purpose too.
I often use occur, but whatever works best I would be happy to include.
I currently use helm-projectile-ag for this purpose in emacs. Not as precise, but really fast :)