Closed itguy614 closed 5 years ago
Not really a dupe. Second platform. This started occurring after the latest VSCode update.
Removing extension and reinstalling seems to have helped my situation.
I using regex to parse function calls. This happens just for special part of codes that causes infinite loop.
Function regex:
/((([A-Za-z0-9_]+)::)?([@A-Za-z0-9_]+)\()((?:[^)(]+|\((?:[^)(]+|\([^)(]*\))*\))*)(\)|$)/g
function arguments regex:
/((\s*\,\s*)?)(\[.*\]|array\(.*\)|(\"((\\\")|[^\"])*\")|(\'((\\\')|[^\'])*\'))/g
And Inline functions regex:
/\((([\s\S]*\,)?\s*function\s*\(.*\)\s*\{)([\S\s]*)\}/g
duplicate of #4
Performance
laravel-extra-intellisense
0.1.3
Darwin x64 18.5.0
1.33.0
amiralizadeh9480.laravel-extra-intellisense-unresponsive.cpuprofile.txt `
Find more details here: https://github.com/Microsoft/vscode/wiki/Explain:-extension-causes-high-cpu-load