fabiospampinato / vscode-highlight

Advanced text highlighter based on regexes. Useful for todos, annotations etc.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

extension freeze the editor from time to time

ctf0 opened this issue · comments

commented

Issue

  • any ts file, when running Convert Indentation to Spaces it will give this error
  • the keybindings.json, also when running Convert Indentation to Spaces it will give this error

Version: 1.74.0-insider
Commit: 1b1e2a2c5794df1f475976062c754651827634a9
Date: 2022-11-18T05:24:51.315Z
Electron: 19.1.3
Chromium: 102.0.5005.167
Node.js: 16.14.2
V8: 10.2.154.15-electron.0
OS: Darwin arm64 21.6.0
Sandboxed: Yes
  • settings
"highlight.regexes": {
    "(~~.+?~~)": { // strike
        "filterLanguageRegex": "markdown",
        "decorations": [
            {
                "textDecoration": "line-through"
            }
        ]
    },
    "((?<=`)(?![`| ]).*?(?=[`]))": { // short code block
        "filterLanguageRegex": "markdown",
        "decorations": [
            {
                "backgroundColor": "#0064ff20"
            }
        ]
    },
    "((?<=( +)?`{3}\\w+[\\r|\\n])(.|\\r|\\n)*?(?=[\\r|\\n]( +)?`{3}))": { // long code block
        "filterLanguageRegex": "markdown",
        "decorations": [
            {
                "isWholeLine": true,
                "backgroundColor": "#48ffc215"
            }
        ]
    },
    "((?<=\\[).*?(?=\\]))": { // link
        "filterLanguageRegex": "markdown",
        "decorations": [
            {
                "backgroundColor": "#fda20020",
            }
        ]
    },
    "(\\$)": { // $
        "filterLanguageRegex": "markdown",
        "decorations": [
            {
                "color": "#0064ff",
            }
        ]
    },
    "(<kbd.*?\/kbd>)": { // kbd
        "filterLanguageRegex": "markdown",
        "decorations": [
            {
                "backgroundColor": "#292c3180"
            }
        ]
    },
    "(>.*)": { // quote
        "filterLanguageRegex": "markdown",
        "decorations": [
            {
                "backgroundColor": "#292c31"
            }
        ]
    },
    "(?<=\\|)(.*)(?=\\|)": { // table
        "filterLanguageRegex": "markdown",
        "decorations": [
            {
                "backgroundColor": "#292c31"
            }
        ]
    },
    "(@template)": {
        "filterLanguageRegex": "php",
        "decorations": [
            {
                "color": "#7ACED3"
            }
        ]
    },
    "(id(?=\\=))": {
        "filterLanguageRegex": "blade|html|vue",
        "decorations": [
            {
                "color": "#cf3be9",
                "backgroundColor": "#cf3be920",
            }
        ]
    },
},
  • errors
<--- Last few GCs --->
[35696:0x158008000]   651013 ms: Mark-sweep 1993.4 (2071.5) -> 1991.9 (2071.5) MB, 1958.8 / 0.0 ms  (average mu = 0.345, current mu = 0.020) allocation failure; scavenge might not succeed
[35696:0x158008000]   654151 ms: Mark-sweep 1999.8 (2071.5) -> 1998.3 (2086.0) MB, 3117.5 / 0.0 ms  (average mu = 0.152, current mu = 0.006) allocation failure; scavenge might not succeed
<--- JS stacktrace --->
[35696:1119/083733.725280:ERROR:node_bindings.cc(153)] Fatal error in V8: Reached heap limit Allocation failed - JavaScript heap out of memory
Extension host (LocalProcess) terminated unexpectedly. Code: 11, Signal: 
Hb @ workbench.desktop.main.js:2850
Hb @ workbench.desktop.main.js:2852
Gb @ workbench.desktop.main.js:2850
(anonymous) @ workbench.desktop.main.js:2850
invoke @ workbench.desktop.main.js:85
deliver @ workbench.desktop.main.js:85
fire @ workbench.desktop.main.js:85
N @ workbench.desktop.main.js:1941
(anonymous) @ workbench.desktop.main.js:1941
invoke @ workbench.desktop.main.js:85
deliver @ workbench.desktop.main.js:85
fire @ workbench.desktop.main.js:85
J @ workbench.desktop.main.js:550
s @ workbench.desktop.main.js:550
r @ workbench.desktop.main.js:550
(anonymous) @ workbench.desktop.main.js:549
invoke @ workbench.desktop.main.js:85
deliver @ workbench.desktop.main.js:85
fire @ workbench.desktop.main.js:85
re @ workbench.desktop.main.js:83
emit @ VM1586 sandbox_bundle:124
onMessage @ VM1586 sandbox_bundle:49
workbench.desktop.main.js:616  

ERR Extension host (LocalProcess) terminated unexpectedly. No extensions were activated.

@ctf0 did you find the issue to the problem?

commented

sadly no, also stopped using the ext.