EvgeniyPeshkov / syntax-highlighter

Syntax Highlighter extension for Visual Studio Code (VSCode). Based on Tree-sitter.
https://marketplace.visualstudio.com/items?itemName=evgeniypeshkov.syntax-highlighter
MIT License
208 stars 44 forks source link

Freezes when editing text #57

Closed stevage closed 3 years ago

stevage commented 3 years ago

I reliably experience a complete editing freeze (requiring reopening window) when editing this text (within a larger file):

    async importShapefile(filePath, id) {
        const tableName = `ingest${id}`;
        await ogr2ogr([
        [`-f "PostgreSQL" PG:"host=${process.env.DB_HOST} user=${process.env.DB_USERNAME} password=${process.env.DB_PASSWORD} dbname=${process.env.DB_DATABASE}" -nln ${tableName} "${filePath}"`
        );
        console.log(`Imported into ${tableName}`);

When I insert a single quote before -f (ie: ['`-f) the window freezes.