Comments (13)
Thanks guys for info it helped me find the issue. I dispose decorations, but forgot to cleanup the list I myself maintained 😬, and eventually it fills up to the point garbage collector's sweep stage takes a very long time to process and hangs the editor... Its super simple to fix, but I now have to review some "fixes" I did before that were just masking the issue rather then solving it, so gonna do that in the morning tomorrow.
from vscode-highlight-matching-tag.
Also, when selecting the code, the editor begins to lag heavily
from vscode-highlight-matching-tag.
Can you provide the example code that would cause lag when selecting/enabling the extension? I presume the files are rather large or the extension is crashing in some unexpected way, because I do not get lags using it in an everyday work.
from vscode-highlight-matching-tag.
Everything was normal, delays began recently, obviously, after update extension.
For example, the JS file on lines 709 is written on vanillajs(es2015). The code has a small html template stored in a variable (nothing special).
Noticeable even in a small html-file of 160 lines. You can hold the mouse and select the code up and down. The editor is beginning to lag far behind. Sometimes during normal operation you have to restart the editor.
I want to note that lags appeared recently. After disable the extension, everything returns to normal.
from vscode-highlight-matching-tag.
Yes it began recently. There is no specific type code, I noticed it in PHP, JS, HTML, CSS and etc. At first VS Code gets stuck for like 6 seconds and then resumes. Then it gets stuck and has to restart. This happens especially when highlighting and traversing code with the arrow keys. PS- the files i am working with are not that big. Most are 50 lines of code (PHP) and around 150 line code HTML files.
from vscode-highlight-matching-tag.
I've noticed this issue as well, and I definitely saw it start immediately after the latest release. (I got the update in the middle of the afternoon while I was working in VS Code.)
Here's what I can add:
-
the problem seems to build up with time, i.e. it gets worse and worse the more I'm moving the cursor around and typing and stuff. I don't really notice it at first when I open VS Code and start working.
-
I'm working with php/html/js files that are relatively small (a few hundred lines, for the most part) and I will eventually end up with cursor lags of about 2 seconds (like I'll press the arrow key, and two seconds later the cursor will move.)
-
Disabling the plugin solves the problem immediately, as does restarting VS Code.
I love this plugin, btw. Hopefully this issue isn't too hard to track down.
from vscode-highlight-matching-tag.
Could you provide me with these things (in order of importance):
- Your PC specs: RAM, CPU, OS
- Extension settings you're using, if other than default
- Copy-paste-able code example where it's possible to see the errors.
- Copy the list of extensions you're using, in terminal:
code --list-extensions
if code command is not found, first use command in vscode:Shell command: install 'code' in PATH
- VSCode version and this extension version
My laptop and home PC are relatively powerful, and I'm not experiencing any delays or lag, so it would help me a lot in debugging if I could get this info from someone who experiences these problems.
from vscode-highlight-matching-tag.
- Intel i7 4770k, 16GB RAM, Windows 10.
- Default settings
- Any code, even a small html
arcticicestudio.nord-visual-studio-code
azemoh.one-monokai
brofox86.theme-espresso-soda-light
christian-kohler.path-intellisense
dbaeumer.vscode-eslint
dbankier.vscode-quick-select
eamodio.gitlens
EditorConfig.EditorConfig
emmanuelbeziat.vscode-great-icons
Equinusocio.vsc-material-theme
formulahendry.auto-rename-tag
hollowtree.vue-snippets
kleber-swf.ocean-dark-extended
krizzdewizz.tag-rename
midnightsyntax.vscode-wrap-console-log
mkaufman.HTMLHint
ms-vscode.sublime-keybindings
ms-vsliveshare.vsliveshare
octref.vetur
PKief.material-icon-theme
robinbentley.sass-indented
Shan.code-settings-sync
shinnn.stylelint
techer.open-in-browser
vincaslt.highlight-matching-tag
wayou.vscode-todo-highlight
- VSCode 1.28.2 / Extension 0.8.1
The VSCode is installed on ssd, the code is on hdd.
from vscode-highlight-matching-tag.
Intel i7, 8GB RAM, Windows 10
Default settings
any type of code
eg2.tslint HookyQR.beautify ignorethis.teste kokororin.vscode-phpfmt ms-python.python small.php-ci vincaslt.highlight-matching-tag
Extension - 0.8.1 VS Code - 1.28.2
BTW I love this extension, it makes things a lot easier. Hopefully this will be fixed soon!
from vscode-highlight-matching-tag.
I wrote a review in the extension page on VSCode Marketplace about this very issue. I also have been experiencing lag in VSCode recently and sometimes the VSCode window even crashes.
I have many extensions enable, so at first I didn't know what was causing the problem. I went on to disabled each one so I could identify the cause of the issue and found out that this extension was causing the crashes.
vincaslt asked for some code example, but in any file where there is html, this problem happens.
I have been using the extension for a long time. It's really helpful. I hope this issue gets fixed soon. Unfortunatly I don't have the knowledge to help w ith anything else.
My specs:
Intel i7-7500U @ 2.70GHz
RAM: 8GB
Running Windows 10 Pro
List of installed extensions:
dbaeumer.vscode-eslint
eamodio.gitlens
EditorConfig.EditorConfig
esbenp.prettier-vscode
felixfbecker.php-intellisense
formulahendry.auto-close-tag
formulahendry.auto-rename-tag
igorming.useful-react-snippets
kondratiev.sshextension
liximomo.sftp
mikestead.dotenv
mkaufman.HTMLHint
mrmlnc.vscode-apache
PeterJausovec.vscode-docker
PKief.material-icon-theme
wesbos.theme-cobalt2
User settings:
{
"workbench.iconTheme": "material-icon-theme",
"workbench.colorTheme": "Cobalt2",
"files.autoSave": "afterDelay",
"terminal.integrated.shell.windows": "C:\\Program Files\\Git\\bin\\bash.exe",
"editor.tabCompletion": "on",
"editor.formatOnSave": false,
"[javascript]": {
"editor.formatOnSave": true,
"editor.tabSize": 2,
},
}
from vscode-highlight-matching-tag.
I think implementing debouncing earlier for the onDidChangeTextEditorSelection
handler would help this. It's currently not being done until decoratePair
.
from vscode-highlight-matching-tag.
The same happens to me. "VS Code" often freeze and crash when I select text or moving cursors in html pages. I only works with files html/php/js.
I desactivated this puglin until the problem is fixed. After reboot VS CODE all is rigth now.
from vscode-highlight-matching-tag.
Should be fixed in new version #57
from vscode-highlight-matching-tag.
Related Issues (20)
- underline HOT 1
- How to Change Underline Width or Set Border Only For Bottom HOT 3
- Expected comma error! HOT 4
- VSCode latency
- Does not work with unicode
- Selected text not highlighting HOT 2
- Feature Request: Support if-directives from AsciiDoc HOT 1
- HTML Tag highlight issue if comments are present.
- "highlight-matching-tag.showPath": true is not working. HOT 1
- Don't show if on same line number HOT 1
- Hangs vscode for minutes on large codgen'd *.ts file HOT 2
- cant see the yellow line left HOT 3
- [Request] add a command: Select tag HOT 1
- Editor to become unresponsive when both Highlight Matching Tag and Overtype extensions are enabled HOT 2
- TSX support
- dont work vscode
- can't work on .tsx HOT 1
- In the mode where sticky scroll is enabled, the function does not take effect
- not working HOT 1
- Bug with PHP and PHP in HTML HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vscode-highlight-matching-tag.