Giter Site home page Giter Site logo

Comments (7)

manateelazycat avatar manateelazycat commented on July 2, 2024

which language? have test code?

from lsp-bridge.

hhamud avatar hhamud commented on July 2, 2024

which language? have test code?

its in every rust project that I have on.

one example would be having a rust file with a few functions and then trying to auto-import them using lsp-bridge-code-actions just like I can with lsp-execute-code-actions

from lsp-bridge.

manateelazycat avatar manateelazycat commented on July 2, 2024

I rechecked and found that the auto import function is available in languages ​​similar to TypeScript. The main source code is

self.code_action_kinds = [
.organizeImports option to control.

I also checked Rust’s LSP Server. Currently, it seems that Rust LSP Server does not support the auto-import function: rust-lang/rust-analyzer#12761

If other Emacs LSP Clients support the auto-import function, please give me feedback.

from lsp-bridge.

hhamud avatar hhamud commented on July 2, 2024

I rechecked and found that the auto import function is available in languages ​​similar to TypeScript. The main source code is

self.code_action_kinds = [

.organizeImports option to control.

I also checked Rust’s LSP Server. Currently, it seems that Rust LSP Server does not support the auto-import function: rust-lang/rust-analyzer#12761

If other Emacs LSP Clients support the auto-import function, please give me feedback.

lsp-mode in Doom emacs when calling the function lsp-execute-code-actions lets me import missing imports by choosing from a selection within a pop-up buffer.

I am not sure why you cannot do this.

from lsp-bridge.

manateelazycat avatar manateelazycat commented on July 2, 2024

I am not sure why you cannot do this.

This is a personal open source project that does not charge users any fees. Why do you think it is natural for others to fix issues? Can't you maintain a little respect for others?

from lsp-bridge.

hhamud avatar hhamud commented on July 2, 2024

I am not sure why you cannot do this.

This is a personal open source project that does not charge users any fees. Why do you think it is natural for others to fix issues? Can't you maintain a little respect for others?

I highlighted an issue, provided more information as requested and you flip out?

I genuinely don't understand your behaviour.

When I said I am not sure why you cannot do this.

I literally mean what is the blocker.

If you do not want to do so or can't be bothered that's fine its your project.

from lsp-bridge.

manateelazycat avatar manateelazycat commented on July 2, 2024

@hhamud
I'm sorry. I believe this is a misunderstanding between languages. In the Chinese context, I am not sure why you cannot do this means why lsp-mode can do it but lsp-bridge cannot. Yes, it's a bit provocative.

If lsp-mode works, can you send me the LSP logs that lsp-mode sends to the rust lsp server? I can study the logs to analyze what lsp-bridge is missing that causes the auto import function to be unavailable.

Apologize again

from lsp-bridge.

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.