Giter VIP home page Giter VIP logo

Comments (8)

nwolverson avatar nwolverson commented on July 29, 2024 1

Unfortunately none of those examples are immediately useful, what we would want is the completion listing (2nd image in previous comment) to show the module name, as it already shows the type there's no use in collapsing them with a "pick which option" 2nd step unless the info can be combined.

I'll definitely look at squeezing it in somehow.

Regarding documentation, that will happen in the future when it's available from psc-ide, see purescript/purescript#2349

from vscode-ide-purescript.

nwolverson avatar nwolverson commented on July 29, 2024

I think this is restricted by the set of fields vscode permits (unless we mangle the name itself) - if you have an example from a different language plugin or the vscode docs, as to where this would go, that would be useful here.

Related issue - there is discussion on providing some metadata from psc-ide to group re-exported modules, which would allow suppressing most of these cases avoiding the issue in the most part.

from vscode-ide-purescript.

otbe avatar otbe commented on July 29, 2024

Same problem here. Im very new to PureScript and importing the wrong function (nubBy from List.Lazy instead of List) lead to type errors which are not easy to understand for beginners :)

This is the way VSCode handles this for TypeScript:
bildschirmfoto 2017-03-19 um 16 26 10

And off topic: docs + signature + extended view
bildschirmfoto 2017-03-19 um 16 26 22
When clicking on i-icon:
bildschirmfoto 2017-03-19 um 16 26 31

Thank you!

from vscode-ide-purescript.

nwolverson avatar nwolverson commented on July 29, 2024

Some options. Bear in mind this is a bad example, as the re-export specific change would disambiguate these, but imagine I picked genuinely differentt defined with the same name in different modules.

screen shot 2017-03-20 at 21 48 53
screen shot 2017-03-20 at 21 52 07
screen shot 2017-03-20 at 21 53 35

First seems unreadable due to lack of alignment of the identifier itself, not sure which I prefer of other 2 options.

from vscode-ide-purescript.

otbe avatar otbe commented on July 29, 2024

I like the third one because the type definition is complete visible.
I wonder how it would look if you add docs to the third one?

from vscode-ide-purescript.

jgoux avatar jgoux commented on July 29, 2024

The third one too! 👍

from vscode-ide-purescript.

nwolverson avatar nwolverson commented on July 29, 2024

This should now be in (the third one)

from vscode-ide-purescript.

jgoux avatar jgoux commented on July 29, 2024

This is awesome, thanks a lot!

from vscode-ide-purescript.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.