microsoft / azuredatastudio

Azure Data Studio is a data management and development tool with connectivity to popular cloud and on-premises databases. Azure Data Studio supports Windows, macOS, and Linux, with immediate capability to connect to Azure SQL and SQL Server. Browse the extension library for more database support options including MySQL, PostgreSQL, and MongoDB.
https://learn.microsoft.com/sql/azure-data-studio
MIT License
7.58k stars 908 forks source link

Latest version syntax highlighting not working on macOS 11.2.2 #14514

Open jaapie opened 3 years ago

jaapie commented 3 years ago

Version: 1.26.1 Commit: 796abbdf5fdd341e3528e30a6b777c93e115eb02 Date: 2021-02-24T23:37:01.966Z VS Code: 1.48.0 Electron: 9.4.3 Chrome: 83.0.4103.122 Node.js: 12.14.1 V8: 8.3.110.13-electron.0 OS: Darwin x64 20.3.0

After updating to the above version from 1.21 syntax highlighting has stopped working in the main window. The code overview appears to be functioning with syntax highlighting.

Dark themes have black text on their dark backgrounds, and light themes have black text on their light backgrounds.

I can't find anything on the web that suggests this is a widespread issue, but that means I can't find a fix.

I appreciate any help.

chlafreniere commented 3 years ago

Hi @jaapie, can you paste a screenshot? I'm also using MacOS 11.2.2. I'm using the default dark theme and syntax highlighting is working ok for me on the query editor:

image

jaapie commented 3 years ago

Hey @chlafreniere, thanks for getting back to me.

Solarised light theme: image

Monokai (dark) theme: image

Hope that helps. I duplicated the lines so you could more easily see the difference between the main window and the code overview window where you can still see syntax highlighting. I've tried all the themes and none seem to work.

kburtram commented 3 years ago

@jaapie are you seeing any errors in the "Help->Toggle Developer Tools" Console? We haven't had wide-spread reports of this problem yet, so I'm wondering this is an installation issue. (i.e. the colorization comes from a metadata file that is dropped into the installation directory, so I wonder if a problem is occurring reading that file).

jaapie commented 3 years ago

@kburtram please see the screenshot or check console.log. There are one or two errors, but I don't know their significance. Lots of warnings about sourcemaps but I suspect that's not a problem.

image

I might download another copy of ADS and try and run them side by side and see what happens.

kenvanhyning commented 3 years ago

Currently holding this for April ask mode. Need to clarify if we have a repro and if so, can we get a fix in this week.

alanrenmsft commented 3 years ago

@jaapie are u still having the issue?

jaapie commented 3 years ago

I've just installed 1.28.0 and it is still happening. If I remove /User/jaapie/Library/Application Support/azuredatastudio it works again, but that is less than ideal as all my settings etc go away.

Is there a specific file that contains syntax highlighting that I may be able to try deleting instead of the whole folder?

Interestingly it's happening on VS Code as well so it's obviously something going on on my computer.

Sorry for not getting back sooner.