Skip to content

Commit 4ce0cce

Browse files
committed
chore: change command prefix (category) to 'PGHH' from 'PgSQL'
PgSQL is used by multiple PostgreSQL vscode extensions, but they are more related to database connection and management. So, in order not to collide with those commands and fastly search for required command prefix is set to PGHH (PG Hacker Helper).
1 parent 9e72c6c commit 4ce0cce

File tree

5 files changed

+16
-16
lines changed

5 files changed

+16
-16
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ Feature supported for PostgreSQL starting from 10 version.
125125
> Primary tool required is `pg_bsd_indent` - extension will try to build it.
126126
> For this `pg_config` is used, but if extension fails to find it you will be prompted to enter path to it.
127127
128-
Using command `PgSQL: Show diff preview for PostgreSQL formatter` you can
128+
Using command `PGHH: Show diff preview for PostgreSQL formatter` you can
129129
preview changes made by formatter.
130130

131131
Also, you can add your custom `typedefs.list` files and extension will use it during formatting (`"typedefs"`). For more info check [documentation](docs/config_file.md#custom-typedefslist-files).

docs/configuration.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ There are 4 settings:
3636

3737
Extension has config file with custom settings - `.vscode/pgsql_hacker_helper.json`.
3838

39-
You can create file manually or using command `PgSQL: Open or create configuration file`. Json schema will assist you while editing.
39+
You can create file manually or using command `PGHH: Open or create configuration file`. Json schema will assist you while editing.
4040

41-
Extension tracks changes in the file and rereads it, when necessary. Also, you can run `PgSQL: Refresh configuration file` command.
41+
Extension tracks changes in the file and rereads it, when necessary. Also, you can run `PGHH: Refresh configuration file` command.
4242

4343
> NOTE: after debug session have started changes in configuration file will not be reflected.
4444
@@ -451,4 +451,4 @@ Example:
451451

452452
For convenience, if you will try to format file in contrib's directory, extension will try to detect `typedefs.list` in it without specifying it explicitly in configuration file. I.e. if you are formatting file `contrib/my_ext/my_ext.c`, then extension will probe `contrib/my_ext/typedefs.list`.
453453

454-
> There is handy command `PgSQL: Find custom typedefs.list in repository` that will execute shell command to find all `*typedefs.list` files in repository.
454+
> There is handy command `PGHH: Find custom typedefs.list in repository` that will execute shell command to find all `*typedefs.list` files in repository.

docs/create_extension.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ In this tutorial we will create extension `ban_sus_query`. It will check that DM
88

99
PostgreSQL has infrastructure for contrib building and installation. In short, contribs have a template architecture - most parts are common for all.
1010

11-
So, for faster contrib creation we will use command: `PgSQL: Bootstrap extension`.
11+
So, for faster contrib creation we will use command: `PGHH: Bootstrap extension`.
1212

1313
![Bootstrap extension command](img/create_extension/bootstrap_extension.png)
1414

-20.2 KB
Loading

package.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -45,68 +45,68 @@
4545
"command": "postgresql-hacker-helper.dumpNodeToLog",
4646
"title": "Dump Node to stdout",
4747
"shortTitle": "Dump Node to stdout",
48-
"category": "PgSQL"
48+
"category": "PGHH"
4949
},
5050
{
5151
"command": "postgresql-hacker-helper.dumpNodeToDoc",
5252
"title": "Dump Node to document",
5353
"shortTitle": "Dump Node to document",
54-
"category": "PgSQL"
54+
"category": "PGHH"
5555
},
5656
{
5757
"command": "postgresql-hacker-helper.openConfigurationFile",
5858
"title": "Open or create configuration file (JSON)",
5959
"shortTitle": "Open configuration file",
60-
"category": "PgSQL"
60+
"category": "PGHH"
6161
},
6262
{
6363
"command": "postgresql-hacker-helper.refreshPostgresVariablesView",
6464
"title": "Refresh Postgres variables view",
6565
"shortTitle": "Refresh variables view",
66-
"category": "PgSQL",
66+
"category": "PGHH",
6767
"icon": "$(refresh)"
6868
},
6969
{
7070
"command": "postgresql-hacker-helper.refreshConfigFile",
7171
"title": "Refresh configuration file",
7272
"shortTitle": "Refresh config file",
73-
"category": "PgSQL"
73+
"category": "PGHH"
7474
},
7575
{
7676
"command": "postgresql-hacker-helper.formatterShowDiff",
7777
"title": "Show diff preview for PostgreSQL formatter",
7878
"shortTitle": "Diff PostgreSQL formatter",
79-
"category": "PgSQL"
79+
"category": "PGHH"
8080
},
8181
{
8282
"command": "postgresql-hacker-helper.formatterFindTypedefsList",
8383
"title": "Find custom typedefs.list in repository",
8484
"shortTitle": "Find typedefs.list",
85-
"category": "PgSQL"
85+
"category": "PGHH"
8686
},
8787
{
8888
"command": "postgresql-hacker-helper.bootstrapExtension",
8989
"title": "Bootstrap extension",
9090
"shortTitle": "Bootstrap extension",
91-
"category": "PgSQL"
91+
"category": "PGHH"
9292
},
9393
{
9494
"command": "postgresql-hacker-helper.addVariableToWatch",
9595
"title": "Add Variable to Watch",
9696
"shortTitle": "Add to Watch",
97-
"category": "PgSQL"
97+
"category": "PGHH"
9898
},
9999
{
100100
"command": "postgresql-hacker-helper.getVariables",
101101
"title": "Get all variables currently shown in PostgreSQL variables view",
102102
"shortTitle": "Get Postgres variables",
103-
"category": "PgSQL"
103+
"category": "PGHH"
104104
},
105105
{
106106
"command": "postgresql-hacker-helper.getTreeViewProvider",
107107
"title": "Get TreeViewProvider object that manages Postgres variables view",
108108
"shortTitle": "Get TreeViewProvider",
109-
"category": "PgSQL"
109+
"category": "PGHH"
110110
}
111111
],
112112
"menus": {

0 commit comments

Comments
 (0)