Skip to content

VS addin #94

Closed
Closed

Description

@vasily-kirichenko
  • intellisense for paket.dependencies (call nuget service) and paket.references (based on paket.dependencies - easy to implement)
  • automatic call paket install every time user changed paket.* files (just IntelliJ does for Scala SBT files)
  • simple syntax coloring (regex-based)
  • run related ps1 scripts for new project package refs
  • Find All References on both paket.dependencies and paket.references
  • Go To Definition from paket.references to paket.dependencies

Activity

  1. forki commented on Sep 15, 2014

    @forki
    Member

    A vs plug-in which allows intelisense to install packages sounds like a very good idea.
    It might even be more useful than the current nuget dialog.

  2. forki commented on Sep 15, 2014

    @forki
    Member

    I assume we can copy a lot of the infrastructure from the F# power tools, right?

    @vasily-kirichenko any good advice where to start?

  3. vasily-kirichenko commented on Sep 15, 2014

    @vasily-kirichenko
    ContributorAuthor

    Coloring is really simple in this case, see http://msdn.microsoft.com/en-us/library/dd885121.aspx
    I can say nothing about intellisense though, never done it actually.

    In my opinion, even though intellisense may be harder to implement, this is the feature we should start from since it's really, really useful for this project. Coloring is not so much.

  4. forki commented on Sep 15, 2014

    @forki
    Member

    What parts/projects of the F# power tools should be analyzed / "copied"?

    /cc @dungpa

  5. dungpa commented on Sep 16, 2014

    @dungpa
    Contributor

    You need the main csproj project for scaffolding. Probably only keep the *Package.cs and source.extension.vsixmanifest. The *.Logic.fsproj project is needed to implement required features.

    Re - intellisense. Here is the starting point http://msdn.microsoft.com/en-us/library/ee372314.aspx. You can find many examples which add intellisense for ad-hoc file formats e.g. https://github.com/madskristensen/JSON-Intellisense/tree/master/src/Bower/Completion.

  6. vasily-kirichenko commented on Sep 20, 2014

    @vasily-kirichenko
    ContributorAuthor

    @forki Does Paket parser results have source position information? I mean type, line, start and end column of a token? If it does not, the addin cannot do anything useful (coloring and intellisense for instance).

    (I'm afraid there is no tokenizer at all)

  7. forki commented on Sep 20, 2014

    @forki
    Member

    that's something we can do.
    but for the moment I think the most useful thing would be the "package restore" from wihtin VS, right?

  8. vasily-kirichenko commented on Sep 20, 2014

    @vasily-kirichenko
    ContributorAuthor

    So, we need to define precise scenario how it's supposed to work.

  9. forki commented on Sep 20, 2014

    @forki
    Member

    yes. how would you like to use it?

  10. forki commented on Sep 20, 2014

    @forki
    Member

    we start with #130

  11. bartelink commented on Sep 25, 2014

    @bartelink
    Member

    Wrt the original proposal, my #154 proposal would mean:

    intellisense for paket.dependencies (call nuget service)

    1. The paket.dependencies gains a uniform approach to sources (originating from Only have dependencies in paket.dependencies #125)

    and paket.references (based on paket.dependencies - easy to implement)

    1. paket.references consists of PaketIds which emanate from one of two places:

      • when fully implemented, there's a .nupkg in the packages/
      • before a paket install (or update), the paket.dependencies file.

      Perhaps working in terms of the .nupkg and/or coordinating a paket add might be in order?

    automatic call paket install every time user changed paket.* files (just IntelliJ does for Scala SBT files)

    Interesting. Should coordinate with paket add

    simple syntax coloring (regex-based)

    #154 should still fit this though it's got a bit more interesting

    Should also be able to color Paket.lock as now same syntax

    Find All References on both paket.dependencies and paket.references

    Really cool idea I didnt grasp on first read. Having #154 unified PaketIds simplifies this.

    Go To Definition from paket.references to paket.dependencies

    Also v useful

    Having #154 unified PaketIds slightly complicates this (needs to parse compacted form - see "Production rule used to compact output" in #165)

  12. hmemcpy commented on Oct 10, 2014

    @hmemcpy

    I want to contribute to this (have some experience writing VS extensions)

    What would be the best way of doing this? Forking this project and adding the extension code directly here, or do it in a separate repo?

  13. forki commented on Oct 10, 2014

    @forki
    Member

    that's a very difficult question.

    I would prefer a separate repo and a reference to https://www.nuget.org/packages/Paket.Core/ - but at the moment we're breaking a lot of internal. This new repo will force us to think about the API. Which is probably not bad

  14. hmemcpy commented on Oct 10, 2014

    @hmemcpy

    I began spiking something... I think it's going to turn out great :)

    Stay tuned...

  15. forki commented on Oct 11, 2014

    @forki
    Member

    It's looking great
    On Oct 10, 2014 10:13 PM, "Igal Tabachnik" [email protected] wrote:

    I began spiking something... I think it's going to turn out great :)

    Stay tuned...

    https://camo.githubusercontent.com/ae8449eeb7fb19f5cb34f7cfaeb9f164baa1737e/687474703a2f2f692e696d6775722e636f6d2f5465444d366e4e2e706e67

    —
    Reply to this email directly or view it on GitHub
    #94 (comment).

  16. hmemcpy commented on Oct 11, 2014

    @hmemcpy
  17. forki commented on Oct 11, 2014

    @forki
    Member

    very cool.

    2014-10-11 14:12 GMT+02:00 Igal Tabachnik [email protected]:

    First draft is up: https://github.com/hmemcpy/Paket.VisualStudio

    It still has a long way to go...

    —
    Reply to this email directly or view it on GitHub
    #94 (comment).

  18. added a commit that references this issue on Oct 22, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions