Skip to content

Commit 72656f7

Browse files
committed
Change "View authorities" to "View permissions"
1 parent 9d77129 commit 72656f7

File tree

3 files changed

+14
-4
lines changed

3 files changed

+14
-4
lines changed

package.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -379,6 +379,11 @@
379379
"category": "Db2 for i",
380380
"icon": "$(search)"
381381
},
382+
{
383+
"command": "vscode-db2i.viewPermissions",
384+
"title": "View permissions",
385+
"category": "Db2 for i"
386+
},
382387
{
383388
"command": "vscode-db2i.runEditorStatement",
384389
"title": "Run statement",
@@ -940,6 +945,11 @@
940945
"when": "viewItem == table || viewItem == view || viewItem == index",
941946
"group": "db2data@4"
942947
},
948+
{
949+
"command": "vscode-db2i.viewPermissions",
950+
"when": "viewItem == table || viewItem == view || viewItem == alias || viewItem == function || viewItem == variable || viewItem == index || viewItem == procedure || viewItem == sequence || viewItem == package || viewItem == trigger || viewItem == type",
951+
"group": "db2data@5"
952+
},
943953
{
944954
"command": "vscode-db2i.advisedIndexes",
945955
"when": "viewItem == table || viewItem == schema",

src/views/schemaBrowser/contributes.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,8 @@
9797
"icon": "$(search)"
9898
},
9999
{
100-
"command": "vscode-db2i.viewAuthorities",
101-
"title": "View authorities",
100+
"command": "vscode-db2i.viewPermissions",
101+
"title": "View permissions",
102102
"category": "Db2 for i"
103103
}
104104
],
@@ -183,7 +183,7 @@
183183
"group": "db2data@4"
184184
},
185185
{
186-
"command": "vscode-db2i.viewAuthorities",
186+
"command": "vscode-db2i.viewPermissions",
187187
"when": "viewItem == table || viewItem == view || viewItem == alias || viewItem == function || viewItem == variable || viewItem == index || viewItem == procedure || viewItem == sequence || viewItem == package || viewItem == trigger || viewItem == type",
188188
"group": "db2data@5"
189189
},

src/views/schemaBrowser/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ export default class schemaBrowser {
162162
}
163163
}),
164164

165-
vscode.commands.registerCommand(`vscode-db2i.viewAuthorities`, async (object: SQLObject) => {
165+
vscode.commands.registerCommand(`vscode-db2i.viewPermissions`, async (object: SQLObject) => {
166166
if (object) {
167167
const content = `SELECT AUTHORIZATION_NAME, OBJECT_AUTHORITY,
168168
OWNER, OBJECT_OPERATIONAL, OBJECT_MANAGEMENT, OBJECT_EXISTENCE, OBJECT_ALTER, OBJECT_REFERENCE,

0 commit comments

Comments
 (0)