Serpen / VBS-VSCode

VSCode VBScript language extension
https://marketplace.visualstudio.com/items?itemName=Serpen.vbsvscode
MIT License
24 stars 11 forks source link

Extension issue #54

Open Bilsom opened 2 years ago

Bilsom commented 2 years ago

Hi, The extension seems to crash after a few minutes. The CPU load is very high. Reinstalling did not help. An older version of VSCode (1.60) did not help either. Your extension has worked fine for me for many months, as recently as last week everything was fine. Edit: Last installed Windows Updates: 2021-10 Kumulatives Update für .NET Framework 3.5 und 4.8 für Windows 10 Version 1909 für x64 (KB5005541) Erfolgreich installiert am 25.10.2021 2021-10 Cumulative Update for Windows 10 Version 1909 for x64-based Systems (KB5006667) Erfolgreich installiert am 25.10.2021

VSCode gives the following two error messages.

:warning: We have written the needed data into your clipboard. Please paste! :warning:

{
    "messages": [],
    "activationTimes": {
        "codeLoadingTime": 80,
        "activateCallTime": 2,
        "activateResolvedTime": 7,
        "activationReason": {
            "startup": false,
            "extensionId": {
                "value": "Serpen.vbsvscode",
                "_lower": "serpen.vbsvscode"
            },
            "activationEvent": "onLanguage:vbs"
        }
    },
    "runtimeErrors": [],
    "runningLocation": 1
}

:warning: Make sure to attach this file from your home-directory: :warning:c:\Users\reczkoth\AppData\Local\Temp\Serpen.vbsvscode-unresponsive.cpuprofile.txt Serpen.vbsvscode-unresponsive.cpuprofile.txt

Find more details here: https://github.com/microsoft/vscode/wiki/Explain-extension-causes-high-cpu-load

Serpen commented 2 years ago

Hi, currently my only idea from the perflog is that there is a recursion in the completion process, which couldn't come to an end. If you are using the "include functionality", could you please check if the issue still happens if you reset (empty) the vbs.includes and vbs.customIncludePattern (obsolete vbs.custumIncludePattern) and vbs.customIncludeDirs. Please also check your workspace and settings, had there been a big change or a syntax erroring document that prevents from parsing your document.