microsoft / sarif-vscode-extension

SARIF Microsoft Visual Studio Code extension
MIT License
110 stars 49 forks source link

Performance issue: general VSCode slowdowns attributable to this extension #493

Closed d10c closed 1 year ago

d10c commented 1 year ago

Hi,

Recently I have been debugging some performance issues in my VSCode setup, and while the extension bisect tool was not helpful in this regard, after manual extension disabling I've managed to narrow it down specifically to the SARIF Viewer extension. I wonder if others can reproduce this issue?

With the extension on, VSCode becomes generally slower, with the effect being most prominent in the source code view for editing and cursor movement commands, with seemingly a 1 ± .5 second latency being added to everything, increasing typos due to unpredictable interleaving between character-insertion and cursor-movement commands. The source code file need not be saved for the effect to take place (though it's possible that some sort of background auto-saving may be compounding it). It's hard to localize the issue, but during a text-editing freeze I often see a "clock" badge appear on the Source Control tab, indicating a git operation in progress.

I have previously submitted the issue here, erroneously attributed to another extension by VSCode's extension bisect tool. That link contains some more diagnostic info.

It's possible that there is an interaction between this extension and another one I have installed, so here is a dump of my extensions in case it helps:

List of extensions ``` 1Password.op-vscode 42Crunch.vscode-openapi aaron-bond.better-comments ajshort.include-autocomplete akamud.vscode-theme-onedark alefragnani.Bookmarks alefragnani.project-manager amodio.tsl-problem-matcher asciidoctor.asciidoctor-vscode Atishay-Jain.All-Autocomplete azemoh.one-monokai batisteo.vscode-django BazelBuild.vscode-bazel bierner.github-markdown-preview bierner.markdown-checkbox bierner.markdown-emoji bierner.markdown-footnotes bierner.markdown-mermaid bierner.markdown-preview-github-styles bierner.markdown-yaml-preamble Cardinal90.multi-cursor-case-preserve cheshirekow.cmake-format christian-kohler.npm-intellisense christian-kohler.path-intellisense chrmarti.regex cnojima.readable-indent codezombiech.gitignore cschlosser.doxdocgen DavidAnson.vscode-markdownlint dbaeumer.vscode-eslint donjayamanne.git-extension-pack donjayamanne.githistory donjayamanne.python-environment-manager donjayamanne.python-extension-pack DotJoshJohnson.xml dsznajder.es7-react-js-snippets eamodio.gitlens ecmel.vscode-html-css eternalphane.tsfmt-vscode fabiospampinato.vscode-open-in-github formulahendry.auto-close-tag formulahendry.auto-complete-tag formulahendry.auto-rename-tag formulahendry.code-runner formulahendry.docker-explorer frhtylcn.pythonsnippets garaemon.vscode-emacs-tab gimenete.github-linker GitHub.codespaces GitHub.copilot GitHub.copilot-labs GitHub.copilot-nightly GitHub.github-vscode-theme GitHub.remotehub GitHub.vscode-codeql github.vscode-github-actions GitHub.vscode-pull-request-github golang.go GrapeCity.gc-excelviewer GraphQL.vscode-graphql GraphQL.vscode-graphql-execution GraphQL.vscode-graphql-syntax Guyutongxue.cpp-reference hbenl.vscode-test-explorer hediet.vscode-drawio ionutvmi.path-autocomplete JakeBecker.elixir-ls James-Yu.latex-workshop JannisX11.batch-rename-extension jeff-hykin.better-cpp-syntax johnpapa.vscode-peacock KevinRose.vsc-python-indent LeetCode.vscode-leetcode letrieu.expand-region llvm-vs-code-extensions.vscode-clangd lucax88x.codeacejumper maelvalais.autoconf magicstack.MagicPython mattn.Lisp mechatroner.rainbow-csv mesonbuild.mesonbuild mgesbert.python-path mhutchie.git-graph mikestead.dotenv mohsen1.prettify-json ms-azuretools.vscode-docker ms-dotnettools.csharp ms-dotnettools.dotnet-interactive-vscode ms-kubernetes-tools.vscode-kubernetes-tools ms-python.isort ms-python.python ms-python.vscode-pylance MS-SarifVSCode.sarif-viewer ms-toolsai.jupyter ms-toolsai.jupyter-keymap ms-toolsai.jupyter-renderers ms-toolsai.vscode-jupyter-cell-tags ms-toolsai.vscode-jupyter-slideshow ms-vscode-remote.remote-containers ms-vscode-remote.remote-ssh ms-vscode-remote.remote-ssh-edit ms-vscode-remote.remote-wsl ms-vscode-remote.vscode-remote-extensionpack ms-vscode.azure-repos ms-vscode.cmake-tools ms-vscode.cpptools ms-vscode.cpptools-extension-pack ms-vscode.cpptools-themes ms-vscode.hexeditor ms-vscode.makefile-tools ms-vscode.powershell ms-vscode.remote-explorer ms-vscode.remote-repositories ms-vscode.remote-server ms-vscode.test-adapter-converter ms-vsliveshare.vsliveshare mutantdino.resourcemonitor naumovs.color-highlight nhoizey.gremlins njpwerner.autodocstring notskm.clang-tidy pflannery.vscode-versionlens pieterjongsma.swift-playgrounds rebornix.ruby redhat.java redhat.vscode-xml redhat.vscode-yaml RobbOwen.synthwave-vscode rust-lang.rust-analyzer ryu1kn.partial-diff sandipchitale.kubernetes-file-system-explorer sandipchitale.vscode-multipane-explorer scala-lang.scala scalameta.metals shd101wyy.markdown-preview-enhanced slevesque.vscode-zipexplorer sofriendlyllc.duckdocgo SolarLiner.linux-themes sooxt.pretty-graphql sswg.swift-lang stardog-union.stardog-rdf-grammars steoates.autoimport stkb.rewrap svipas.prettier-plus t-yng.emacs-region TakumiI.markdowntable teabyii.ayu tintinweb.vscode-decompiler tuttieee.emacs-mcx twxs.cmake Tyriar.sort-lines usernamehw.errorlens vadimcn.vscode-lldb VisualStudioExptTeam.intellicode-api-usage-examples VisualStudioExptTeam.vscodeintellicode vscjava.vscode-java-debug vscjava.vscode-java-dependency vscjava.vscode-java-pack vscjava.vscode-java-test vscjava.vscode-maven vscodeemacs.emacs wesbos.theme-cobalt2 wholroyd.jinja willasm.rc-script wingrunr21.vscode-ruby wix.vscode-import-cost yzhang.markdown-all-in-one zaaack.markdown-editor zhuangtongfa.material-theme Zignd.html-css-class-completion ziyasal.vscode-open-in-github ```
d10c commented 1 year ago

Most likely a duplicate/instance of issue https://github.com/microsoft/sarif-vscode-extension/issues/472