Comments (6)
Interesting - it could be the matchadd
matches. I'll play around with cutting those off at a certain number. Hopefully the location list could still show them all.
from vim-lsc.
Ah I think I have an idea of what's going on here.
Whenever we get diagnostics for any file we try to update displayed diagnostics for everything showing. I think what might be happening is we have a couple hundred diagnostics to show, and we try to re-create them dozens of times because the analysis server is sending errors for dozens of files.
I think what needs to happen is to get smarter about when to invalidate the diagnostics for a window.
from vim-lsc.
Ok, I think the number of matches isn't a problem here. Once things settle the performance seems to be OK. I can move around the file with 243 errors in my location list (should be 243 matchadd
s) without noticing any lag - do you see the same thing? Is it just an initial slowdown then performance is OK after it settles?
Avoiding clearing and recreating the matches does seem to help - but when we get errors for a bunch of files in a row it does still freeze up for a bit. I might be able to find other was to optimize this case.
from vim-lsc.
Update to the latest and see if the performance feels better. If there is still lag, especially if the lag continues after errors have had a chance to settle, please reopen the issue.
from vim-lsc.
when the stderr keeps pop out, even thtough i set suppress stderr to true, the editor still freeze.
I have to ctrl-c to stop the process.
from vim-lsc.
@Piping - sounds like something different than what was reported - can you file a new issue with reproduction steps? I wouldn't expect stderr from the language server to cause vim to freeze.
from vim-lsc.
Related Issues (20)
- pyright and Viewing Source Code Definition HOT 1
- perl LS?
- Error Unknown function lsc#cursor#insertEnter is thrown whenever entering in INSERT mode HOT 1
- Errors wit python-language-server
- Make vim-lsc work with ltex-ls HOT 6
- call hierarchy support? HOT 1
- support filtering trigger characters HOT 1
- LSClientRename renames wrong locations when it's across files HOT 1
- gopls: is there a way to specify settings? buildFlags or env? HOT 1
- Add support for CompletionItem additionalTextEdits
- Underline instead of highlight? HOT 1
- :wqa causes waiting for language server exit HOT 4
- javascriptreact filetype not running lsc HOT 2
- Do we have virtual text support for lsp diagnostics?
- Unable to get tailwindcss-language-server to work HOT 1
- No highlighting using a non-default colour scheme HOT 2
- Add a separate highlight group for deprecated diagnostics and unnecessary code
- Deno lsp not working HOT 1
- Completion preview/popup extra information filetype highlight?
- Support code sections within structured text documents (Markdown, etc)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vim-lsc.