Skip to content

feat: log file tree sitter syntax highlighting #261

@lcottercertinia

Description

@lcottercertinia

Is your feature request related to a problem?

The salesforce replay debugger has a syntax but what if I do not have that installed?

**What happens if two grammars are detected? **
It turns out that the last extension alphabetically wins.

We can add a grammar in our extension and get syntax highlighting when the replay debugger extension is not installed.
If a user has both extensions installed then the replay debugger syntax would take priority.
According to microsoft/vscode-docs#2862 there is no way to specify a preferred order.

Tree sitter grammars for vscode extensions are coming in the next few years
Vscode are also implementing tree sitter grammars atm which will be faster than text mate. We should use tree sitter once custom grammars are available.
microsoft/vscode#210475

As debug log tree sitter grammar already exists over at https://github.com/aheber/tree-sitter-sfapex

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions