Skip to content

Stuck after config edit session #59

@ufukty

Description

@ufukty

Context

  • Editing a rule using Dim v4.0.1 and VS Code 1.119.0 caused high CPU use and the extension to stuck.
  • The config which its frequent editing triggered the problem, has no problem after restarting Code.
    {
      "pattern": "(?<=catch\\s+\\(e\\)\\s+{)[^{}]*(?:{[^{}]*}[^{}]*)*(?=})",
      "flags": "gs"
    }
  • Last printed logs in the session seems were outdated at the moment of issue:
    ...
    config.Manager: invalidating cache
    configManager.ts: configuration change
    config.Manager: requested user config for file:///.../dim/src/configManager.ts (typescript)
    config.Compiler: compiling user config for file:///.../dim/src/configManager.ts (typescript)
    configManager.ts: disposing previous decorations
    configManager.ts: decorating...
    configManager.ts: scanning lines: [1:1, 145:1]
    configManager.ts: scanning for: /(?<=(?:else|if \([^()]*(?:\([^()]*\)[^()]*)*\)) {)[^{}]*(?:{[^}]*}[^{}]*)*(?=})/gs
    configManager.ts: scanning for: /(?<=(?:else|if \([^()]*(?:\([^()]*\)[^()]*)*\)) {)[^{}]*(?:{[^}]*}[^{}]*)*(?=})/gs: found: [28:19, 31:7]
    configManager.ts: scanning for: /(?<=(?:else|if \([^()]*(?:\([^()]*\)[^()]*)*\)) {)[^{}]*(?:{[^}]*}[^{}]*)*(?=})/gs: found: [130:16, 133:7]
    configManager.ts: scanning for: /(?<=catch\s+\(e\)\s+{)[^{}]*(?=})/g
    configManager.ts: decorated (1ms)
    

Problem

Dim is getting stuck during repetitive edits to the user configuration and needs editor to restart.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions