AnWeber / vscode-statusbar-command

MIT License
17 stars 4 forks source link

Ignore INCLUDE at startup #19

Closed danilort closed 2 years ago

danilort commented 2 years ago

Description of the problem

For a few weeks there is a problem, which I had not had before Each time I open a project, all the elements of the status bar are shown:

immagine

Later, when selecting a different file, it shows only the necessary elements:

immagine immagine immagine

The problem occurs when I open any project, or a single file. The problem occurs even if disabled all extensions, except "statusBarcommand" and "Italian Language Pack for VSCODE".

Information

StatusBarCommand v2.2.0

VSCODE

Settings

"statusbar_command.commands": 
    [
        //DBML
        {
            "text"     : "DBML->SQL",
            "tooltip"  : "Esporta da DBML a SQL",
            "alignment": "left",
            "priority" : 1,
            "include"  : "(.dbml)",
            "command"  : "vscode-dbml.export"
        },
        {
            "text"     : "SQL->DBML",
            "tooltip"  : "Esporta da SQL a DBML",
            "alignment": "left",
            "priority" : 1,
            "include"  : "(.sql)",
            "command"  : "vscode-dbml.import",
            "arguments": [""]
        },
        //MONKEY-C
        {
            "text"     : "MONKEY",
            "tooltip"  : "Elenco comandi per MonkeyC",
            "alignment": "left",
            "priority" : 1,
            "include"  : "(.mc|manifest.xml)",
            "command"  : "workbench.action.quickOpen",
            "arguments": [">Monkey "]
        },
        {
            "text"     : "$(question)",
            "tooltip"  : "Documentazione",
            "alignment": "left",
            "priority" : 1,
            "include"  : "(.mc|manifest.xml)",
            "command"  : "monkeyc.viewDocumentation"
        },
        {
            "text"     : "$(triangle-right)",
            "tooltip"  : "Esegui",
            "alignment": "left",
            "priority" : 1,
            "include"  : "(.mc|manifest.xml)",
            "command"  : "monkeyc.runProgram"
        },
        // SPLIT IN GROUP
        {
            "text"     : "$(split-vertical)",
            "color"    : "#FFFF00",
            "tooltip"  : "Attiva lo Split in Group",
            "alignment": "left",
            "priority" : 2,
            "command"  : "workbench.action.toggleSplitEditorInGroup"
        },
    ],
AnWeber commented 2 years ago

It seems the following commit of mine is to blame. I have removed the call to Refresh when initializing. I will have a look at what was the reason here. But probably it was rather not intentional.

danilort commented 2 years ago

I performed other tests with your .vsix files:

AnWeber commented 2 years ago

I just deployed an update v2.2.1,fixing the bug. Would you like to test it too please. Thank you.

danilort commented 2 years ago

V2.2.1 is ok! Thank you for your work and good 2022!

AnWeber commented 2 years ago

Happy New Year to you too. Good luck and stay healthy:-)