usernamehw / vscode-error-lens

VSCode extension that enhances display of errors and warnings.
https://marketplace.visualstudio.com/items?itemName=usernamehw.errorlens
MIT License
588 stars 32 forks source link

Is it possible to change the order of messages? #179

Closed stereokai closed 1 year ago

stereokai commented 1 year ago
image

When I'm using a repl (like Quokks.js), I'd prefer any logs from the repl to appear at the beginning and Error Lens messages to be pushed to the end of the line.

Is it possible to configure that?

usernamehw commented 1 year ago

There is no api for that.

usernamehw commented 1 year ago

Maybe it will change if you set delay? "errorLens.delay": 500,?

stereokai commented 1 year ago

@usernamehw Thanks for the creative thought! However, even a setting of "errorLens.delay": 5000 didn't delay the appearance of any message, not to mention affect the order of appearance. What gives?

usernamehw commented 1 year ago

🤷‍♂️

stereokai commented 1 year ago

@usernamehw Sorry, maybe my question was unclear: I expected "errorLens.delay": 5000 to at the least delay the appearance of the diagnostics by 5 seconds, but that did not happen. Is the feature broken? Or is my expectation broken? 😁

usernamehw commented 1 year ago

Delay logic I wrote is pretty trash... Could you try a new setting to see if it's the problem with the code or something else?:

"errorLens.delayMode": "debounce",
usernamehw commented 1 year ago

Cleanup time. Order change is not possible AFAIK. Delay not respected with quokka - duplicate of #172.

stereokai commented 1 year ago

@usernamehw Thanks for continuing to look into this. I was away on vacation. Should I still have a look at "errorLens.delayMode": "debounce"?

usernamehw commented 1 year ago

Sure.