Skip to content

Performance Problems #999

Description

@ronanmockett

Recently when I navigate through my code this plugin is causing significant delays when opening a file or navigating by the "Go to definition" action. The delay seems to be in two places.

  1. Finding and opening the file. (up to 2s of delay)
  2. After the file has opened, all keyboard inputs are delayed for ~.5s

Upon further investigation this seems to be because my project includes a "vendors" directory with source code for opensource libraries. Using colorize.exclude and excluding the "vendors" directory resolves the issue but this seems to be a performance issue introduced with recent changes.

Using an older version of this extension like the version forked by "YuTengjing" @ version 0.12.13 the issue is not present. I am using the latest version of your extension. 0.16.0

I will provide a repository shortly for recreation.
https://github.com/ronanmockett/vscode-colorize-issue-999

Minimal extensions for reproduction
Python (Pylance, Python Debugger)
Colorize

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions