Diagnostics show empty parentheses if no code specified for error (regression) #78734
Labels
bug
Issue identified by VS Code Team member as probable bug
candidate
Issue identified as probable candidate for fixing in the next release
error-list
Problems view
verified
Verification succeeded
Milestone
Issue Type: Bug
Pretty sure this did not happen in 1.36.
Expected: The second error should not show the parentheses around an empty diagnostic code "()".
(NOTE: The first error comes from the built-in JSON language server, the second comes from the extension)
The code that's setting the error code is here:
https://github.com/microsoft/vscode-azurearmtools/blob/e4a1b209563e4396b5ca081c6c1931d75c09d599/src/AzureRMTools.ts#L356
NOTE: Previously, if you left diagnostic.code blank, vscode would show "(0)" for the error code. Setting it to empty string seemed to be the only way to keep it from showing. But with 1.37, I've tried 0, "", undefined, null, nothing seems to allow me an empty error code without the confusing "()" showing up.
VS Code version: Code 1.37.0 (036a6b1, 2019-08-08T02:33:50.993Z)
OS version: Windows_NT x64 10.0.18362
System Info
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: disabled_software
oop_rasterization: disabled_off
protected_video_decode: unavailable_off
rasterization: enabled
skia_deferred_display_list: disabled_off
skia_renderer: disabled_off
surface_synchronization: enabled_on
video_decode: enabled
viz_display_compositor: disabled_off
webgl: enabled
webgl2: enabled
Extensions (28)
The text was updated successfully, but these errors were encountered: