Skip to content
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

Inconsistent Syntax Highlighting for KQL in Polyglot Notebooks with and without --name in Magic Command #3817

Open
2 tasks done
asilverman opened this issue Jan 23, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@asilverman
Copy link

Describe the bug

I noticed an inconsistency in syntax highlighting when using the KQL magic command in Polyglot Notebooks, depending on the presence of the --name parameter. When --name is omitted, the syntax highlighting is normal, but when --name is included, the highlighting appears different (as seen in the screenshots below).

Steps to Reproduce:

  1. Open a KQL notebook in Polyglot Notebooks.
  2. Run the following code without the --name parameter:
    #!kql-shiftleft-uw-prod.westus
    let SampleTable = datatable(DynamicColumn: dynamic)
    [
        dynamic({"a": 1, "b": {"a": 2}})
    ];
    SampleTable
  3. Observe the syntax highlighting (normal behavior in the image below).

Image

  1. Run the same code with the --name parameter:
    #!kql-shiftleft-uw-prod.westus --name foo
    let SampleTable = datatable(DynamicColumn: dynamic)
    [
        dynamic({"a": 1, "b": {"a": 2}})
    ];
    SampleTable
  2. Observe the syntax highlighting (different behavior in the image below).

Image

Expected Behavior:
The syntax highlighting should remain consistent, regardless of the presence or absence of the --name parameter in the magic command.

Which version of .NET Interactive are you using? (In a notebook, run the #!about magic command. ):

Image

  • OS
    • Windows 11
  • Frontend
    • Visual Studio Code Insiders

Visual Studio Code Extension Details

Name: Polyglot Notebooks
Id: ms-dotnettools.dotnet-interactive-vscode
Description: Polyglot Notebooks for VS Code. Use multiple languages in one notebook with full language server support for each language and share variables between them.
Version: 1.0.6070011
Publisher: Microsoft
VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=ms-dotnettools.dotnet-interactive-vscode
@jonsequitur jonsequitur added the bug Something isn't working label Feb 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants