formulahendry / vscode-mysql

MySQL management tool for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=formulahendry.vscode-mysql
MIT License
221 stars 60 forks source link

Hide database "information_schema" #124

Closed gfilgueiras closed 5 years ago

gfilgueiras commented 5 years ago

Hi guys !

Is iy possible hide the "information_schema" ? I already try to do it by permission for user on MySql, but i couldn't.

Any help :) Thanks a million

gfilgueiras commented 5 years ago

Just for everyone know.... I fix it edited the file "databasesNode.js" in "~/.vscode/extensions/formulahendry.vscode-mysql-0.4.0/out/model/"

Replace line start 27 for this code below.

getTreeItem() {
    if(this.database != "information_schema")
    {
        return {
            label: this.database,
            collapsibleState: vscode.TreeItemCollapsibleState.Collapsed,
            contextValue: "database",
            iconPath: path.join(__filename, "..", "..", "..", "resources", "database.svg"),
        };
    }
}