Giter Site home page Giter Site logo

Comments (4)

yyoncho avatar yyoncho commented on August 11, 2024 1

you know that there is flycheck version which shows only the errors for the current buffer? Indeed, it makes sense to have a command lsp-treemacs-errors-list-focus-file. Then user could configure that to happen automatically on buffer switch.

from lsp-treemacs.

nebkor avatar nebkor commented on August 11, 2024 1

Just chiming in here that I searched for "lsp-treemacs-errors-list current buffer" and this was the first hit; needless to say, I'm very much in favor of providing an easy way to control which errors are displayed, and I would personally like the errors in my current buffer to be displayed always.

from lsp-treemacs.

fgabolde avatar fgabolde commented on August 11, 2024

The flycheck version is indeed a workaround but IMHO it works better as a transient info buffer, especially since it tends to disappear on C-g. In my currently installed version of lsp-mode if I select a region (e.g. for lsp-format-region) I can't unselect it once I'm done because the flycheck buffer has "stolen" C-g so it can be closed, so I have to reopen the flycheck buffer after each lsp-format-region.

The treemacs buffers work more like permanent views on the project; at least that's how I use the symbols and errors lists. My main gripe with the errors buffer is that if I use it to discover errors in the project, switch to a file that's not the first in the list, and fix something, the whole errors buffer is redisplayed and I lose my spot in the list, even though I probably wanted to keep fixing issues in the same file.

Displaying the current file first in the errors list would go a long way towards making lsp-treemacs-errors-list more user-friendly.

from lsp-treemacs.

espbee avatar espbee commented on August 11, 2024

Everything is pretty great as is, but this would certainly be lovely.

from lsp-treemacs.

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.