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

Code blocks in notebooks are not syntax highlighted when viewing or editing #17681

Open schallm opened 3 years ago

schallm commented 3 years ago

Steps to Reproduce:

  1. Create new notebook
  2. Create new text cell
  3. Switch to Split View
  4. Add following markdown text (remove the 2 extra set of tabs used here so markdown will show correctly in the ticket)
    **SQL**:

    ```sql
    use master
    select * from sys.tables

![image](https://user-images.githubusercontent.com/331167/142041513-b974403d-c19a-4a56-90f2-ec4113431497.png)

Notice how the syntax highlighting works in the mardown editor, but does not work in the preview.  The text is also not "syntax highlighted" when leaving the text cell.

<!-- ๐Ÿ”ง Launch with `azuredatastudio --disable-extensions` to check. -->
Does this issue occur when all extensions are disabled?: Yes

<!-- ๐Ÿ“ฃ Issues caused by an extension need to be reported directly to the extension publisher. The 'Help > Report Issue' dialog can assist with this. -->
schallm commented 3 years ago

Similar issue with other languages: image