You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Found in T-SQL. When a backslash is the final character in a string literal, the colour formatting ignores the closing quote, which then impacts the formatting in the rest of the SQL script.
This is like the polar opposite of the earlier issue #17894.
Azure Data Studio version: azuredatastudio 1.50.0 (49c73a8, 2024-11-17T22:41:05.327Z)
OS version: Windows_NT x64 10.0.26100
Restricted Mode: No
Preview Features: Enabled
Modes:
Thanks for reporting this issue! I tried the provided example and also tested with a string that has a trailing backslash, but I couldn’t identify the specific problem you’re encountering. Could you clarify what issue you’re seeing?
There was an identical issue logged and closed, in 2020, which suggested this CHAR(92) workaround. This is fine for my ad hoc use case, but only avoids the issue...
I dug around to see if this issue was ever resolved, but couldn't find anything.
I'm not hitting this behavior with the default MSSQL colorization configuration. But I did see this bug when I install the MySQL extension, which it appears from the initial issue report that you may have that installed. If you're not actively using MySQL extension you may consider disabling/uninstalling to see if that helps resolve this issue for you.
Type: Bug
Found in T-SQL. When a backslash is the final character in a string literal, the colour formatting ignores the closing quote, which then impacts the formatting in the rest of the SQL script.
Example to recreate:
DECLARE @Login VARCHAR(10) = REPLACE(REPLACE(ORIGINAL_LOGIN(),'OURDOMAIN\',''),'@ourdomain.onmicrosoft.com','')
This is like the polar opposite of the earlier issue #17894.
Azure Data Studio version: azuredatastudio 1.50.0 (49c73a8, 2024-11-17T22:41:05.327Z)
OS version: Windows_NT x64 10.0.26100
Restricted Mode: No
Preview Features: Enabled
Modes:
System Info
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
Extensions (21)
(1 theme extensions excluded)
The text was updated successfully, but these errors were encountered: