Giter Site home page Giter Site logo

Comments (7)

razzmatazz avatar razzmatazz commented on June 27, 2024 1

pending on ionide/LanguageServerProtocol#4

from csharp-language-server.

razzmatazz avatar razzmatazz commented on June 27, 2024

It looks like there is :) I thought there wasnt.

‘CodeAction.isPreferred’
https://microsoft.github.io/language-server-protocol/specifications/specification-3-17/#codeAction

from csharp-language-server.

josteink avatar josteink commented on June 27, 2024

On the same spec there’s also CodeActionKind:

kind?: CodeActionKind;

It seems one possible value for that is quickfix.

So I guess we should prioritise isPreferred and quickfix-kind actions, and in that order?

from csharp-language-server.

razzmatazz avatar razzmatazz commented on June 27, 2024

pending on ionide/LanguageServerProtocol#4

ok, that one has been merged

from csharp-language-server.

razzmatazz avatar razzmatazz commented on June 27, 2024

I have published 0.1.8, which should pull usings action up a bit, not 100% sure this was the right way to fix, as isPreffered was not taken into account in emacs-lsp/lsp-mode at the time I was checking it so not only that but I sorted simply those actions before returing to the editor -- hopefully ergonomics are better now

(it might take a couple of minutes for the package to show up on https://www.nuget.org/packages/csharp-ls/0.1.8)

from csharp-language-server.

josteink avatar josteink commented on June 27, 2024

Tested and works. Great stuff! 😃

Edit: Proof!

image

from csharp-language-server.

josteink avatar josteink commented on June 27, 2024

This works 100% as I described in the "expected" section in the issue, so I guess I have no choice but consider this 100% resolved 😄

from csharp-language-server.

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.