-
Notifications
You must be signed in to change notification settings - Fork 30.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closing file does not cause TS to remove errors related to that file #59363
Comments
I have a screen capture of this behavior which I'm happy to share privately with the devs, if that's helpful. |
Any particular reason this is the desired behavior? It seems at the very least that this should be configurable. As it stands, all of the other plugins that report errors clean up their output when a file is closed. Clearly some teams prefer this behavior, but it seems a fairly obvious thing that has legitimate arguments either way. Any way we could get a setting to configure the behavior we want? |
@mjbvz our recommendation for language providers so far is different and independent of a build task. What we recommend is the following:
A very good implementation of this is the C# extension (see my screen shot which shows two errors although no file is open. I didn't even open any file :-)) The TypeScript language server never had good support to compute all problems of a project. But this might have changed with 3.0 and there builder support. That is why we bound the error computation in TypeScript to an external build task with problems of restoring them correctly. I have an issue for this and targeted it for November. I would also recommend to look into whether the TS language server got better in computing all errors for a project. I am also open to reconsider this general recommendation. But we need good arguments if we want to change this since it will influence other extensions as well. The worst IMO will be if every extension does something different. |
@mjbvz Any news regarding this? My |
Could we add an option to remove the files manually? Like having a context menu option that removes problems from the selected file? |
Issue Type: Bug
Open a file in VSCode Insiders with TS errors (such as a .ts or .tsx file).
Note that the errors are reported in the Problems pane
Close the file with cmd+w
Note that the errors are persisted in the Problems pane -- a window reload is required to get them to disappear
Possibly related to #58088
Also related to this issue: #50448
VS Code version: Code - Insiders 1.28.0-insider (29e6795, 2018-09-24T12:04:09.319Z)
OS version: Darwin x64 17.7.0
System Info
checker_imaging: disabled_off
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: enabled
rasterization: enabled
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
Extensions (29)
(6 theme extensions excluded)
The text was updated successfully, but these errors were encountered: