Skip to content

VS Code SLDS Validator Excessive CPU usage on Mac OS #150

@kalusartem-crowe

Description

@kalusartem-crowe

Summary / ### Steps To Reproduce:
When SLDS Validator and Agentforce for Developers extension is active in VS Code an excessive CPU usage occurs as well as multiple Java processes are executed. Java JDK and salesforce code analyzer must be installed correctly so that no errors are displayed while SF project is being opened. The project has to be connected to a Github branch. The issue amplifies when active Salesforce project is open and another one is opened in a parallel window or VS Code "Developer: Window Reload" command is used.

In order to fix the issue, SLDS Validator needs to be disabled, VS Code window reloaded and all Java processes killed in the Activity Monitor.

The issue is not specific to a Salesforce org.

Expected result
CPU usage increases to 100-200% and drops to 5% after ~20 seconds

Actual result
You should notice multiple Java processes in the activity monitor with some 1 of them usually spiking to 300-500% cpu usage and then not dropping below 96%.

Additional information

Image Image

SLDS Validator: 2.0.12
Agentforce for Developers: 2.10.1

OS and version:

MacBook Pro 16-inch, 2021
Memory 16GB
Mac OS 15.5 (24F74)

VS Code version:

Version: 1.101.1 (Universal)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions