Skip to content

Commit

Permalink
Add commands to focus view and prep for release (#2130)
Browse files Browse the repository at this point in the history
* Add commands to focus view

* Bump version and update changelog
  • Loading branch information
alexweininger authored May 17, 2023
1 parent fc55de3 commit ffcabdb
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 54 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

## Unreleased

## 0.19.4 - 2023-05-17

### Added
* Add support for the upcoming Azure Resources Focus feature

## 0.19.3 - 2023-02-15

### Added
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

104 changes: 52 additions & 52 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vscode-cosmosdb",
"version": "0.19.4-alpha.0",
"version": "0.19.4",
"aiKey": "0c6ae279ed8443289764825290e4f9e2-1a736e7c-1324-4338-be46-fc2a58ae4d14-7255",
"publisher": "ms-azuretools",
"displayName": "Azure Databases",
Expand Down Expand Up @@ -501,27 +501,27 @@
},
{
"command": "cosmosDB.deleteAccount",
"when": "view == azureResourceGroups && viewItem =~ /cosmosDBMongoServer(?![a-z])/i",
"when": "view =~ /(azureResourceGroups|azureFocusView)/ && viewItem =~ /cosmosDBMongoServer(?![a-z])/i",
"group": "1@2"
},
{
"command": "cosmosDB.deleteAccount",
"when": "view == azureResourceGroups && viewItem =~ /cosmosDBDocumentServer(?![a-z])/i",
"when": "view =~ /(azureResourceGroups|azureFocusView)/ && viewItem =~ /cosmosDBDocumentServer(?![a-z])/i",
"group": "1@2"
},
{
"command": "cosmosDB.deleteAccount",
"when": "view == azureResourceGroups && viewItem =~ /cosmosDBGraphAccount(?![a-z])/i",
"when": "view =~ /(azureResourceGroups|azureFocusView)/ && viewItem =~ /cosmosDBGraphAccount(?![a-z])/i",
"group": "1@2"
},
{
"command": "cosmosDB.deleteAccount",
"when": "view == azureResourceGroups && viewItem =~ /cosmosDBTableAccount(?![a-z])/i",
"when": "view =~ /(azureResourceGroups|azureFocusView)/ && viewItem =~ /cosmosDBTableAccount(?![a-z])/i",
"group": "1@2"
},
{
"command": "postgreSQL.deleteServer",
"when": "view == azureResourceGroups && viewItem =~ /postgresServer(?![a-z])/i",
"when": "view =~ /(azureResourceGroups|azureFocusView)/ && viewItem =~ /postgresServer(?![a-z])/i",
"group": "1@2"
},
{
Expand All @@ -531,37 +531,37 @@
},
{
"command": "cosmosDB.createMongoDatabase",
"when": "view == azureResourceGroups && viewItem =~ /cosmosDBMongoServer(?![a-z])/i",
"when": "view =~ /(azureResourceGroups|azureFocusView)/ && viewItem =~ /cosmosDBMongoServer(?![a-z])/i",
"group": "1@1"
},
{
"command": "cosmosDB.createMongoDocument",
"when": "view =~ /azure(ResourceGroups|Workspace)/ && viewItem == MongoCollection",
"when": "view =~ /azure(ResourceGroups|Workspace|FocusView)/ && viewItem == MongoCollection",
"group": "1@1"
},
{
"command": "cosmosDB.createMongoCollection",
"when": "view =~ /azure(ResourceGroups|Workspace)/ && viewItem == mongoDb",
"when": "view =~ /azure(ResourceGroups|Workspace|FocusView)/ && viewItem == mongoDb",
"group": "1@1"
},
{
"command": "cosmosDB.createDocDBDocument",
"when": "view =~ /azure(ResourceGroups|Workspace)/ && viewItem == cosmosDBDocumentsGroup",
"when": "view =~ /azure(ResourceGroups|Workspace|FocusView)/ && viewItem == cosmosDBDocumentsGroup",
"group": "1@1"
},
{
"command": "cosmosDB.createDocDBStoredProcedure",
"when": "view =~ /azure(ResourceGroups|Workspace)/ && viewItem == cosmosDBStoredProceduresGroup",
"when": "view =~ /azure(ResourceGroups|Workspace|FocusView)/ && viewItem == cosmosDBStoredProceduresGroup",
"group": "1@1"
},
{
"command": "cosmosDB.createDocDBCollection",
"when": "view =~ /azure(ResourceGroups|Workspace)/ && viewItem == cosmosDBDocumentDatabase",
"when": "view =~ /azure(ResourceGroups|Workspace|FocusView)/ && viewItem == cosmosDBDocumentDatabase",
"group": "1@1"
},
{
"command": "cosmosDB.createDocDBDatabase",
"when": "view == azureResourceGroups && viewItem =~ /cosmosDBDocumentServer(?![a-z])/i",
"when": "view =~ /(azureResourceGroups|azureFocusView)/ && viewItem =~ /cosmosDBDocumentServer(?![a-z])/i",
"group": "1@1"
},
{
Expand All @@ -571,7 +571,7 @@
},
{
"command": "cosmosDB.createGraphDatabase",
"when": "view == azureResourceGroups && viewItem =~ /cosmosDBGraphAccount(?![a-z])/i",
"when": "view =~ /(azureResourceGroups|azureFocusView)/ && viewItem =~ /cosmosDBGraphAccount(?![a-z])/i",
"group": "1@1"
},
{
Expand All @@ -581,12 +581,12 @@
},
{
"command": "cosmosDB.createGraph",
"when": "view =~ /azure(ResourceGroups|Workspace)/ && viewItem == cosmosDBGraphDatabase",
"when": "view =~ /azure(ResourceGroups|Workspace|FocusView)/ && viewItem == cosmosDBGraphDatabase",
"group": "1@1"
},
{
"command": "postgreSQL.createDatabase",
"when": "view == azureResourceGroups && viewItem =~ /postgresServer(?![a-z])/i",
"when": "view =~ /(azureResourceGroups|azureFocusView)/ && viewItem =~ /postgresServer(?![a-z])/i",
"group": "1@1"
},
{
Expand Down Expand Up @@ -621,72 +621,72 @@
},
{
"command": "cosmosDB.connectMongoDB",
"when": "view =~ /azure(ResourceGroups|Workspace)/ && viewItem == mongoDb",
"when": "view =~ /azure(ResourceGroups|Workspace|FocusView)/ && viewItem == mongoDb",
"group": "2@1"
},
{
"command": "cosmosDB.deleteMongoDB",
"when": "view =~ /azure(ResourceGroups|Workspace)/ && viewItem == mongoDb",
"when": "view =~ /azure(ResourceGroups|Workspace|FocusView)/ && viewItem == mongoDb",
"group": "1@2"
},
{
"command": "cosmosDB.deleteMongoCollection",
"when": "view =~ /azure(ResourceGroups|Workspace)/ && viewItem == MongoCollection",
"when": "view =~ /azure(ResourceGroups|Workspace|FocusView)/ && viewItem == MongoCollection",
"group": "1@4"
},
{
"command": "cosmosDB.deleteMongoDocument",
"when": "view =~ /azure(ResourceGroups|Workspace)/ && viewItem == MongoDocument",
"when": "view =~ /azure(ResourceGroups|Workspace|FocusView)/ && viewItem == MongoDocument",
"group": "1@2"
},
{
"command": "cosmosDB.deleteDocDBCollection",
"when": "view =~ /azure(ResourceGroups|Workspace)/ && viewItem == cosmosDBDocumentCollection",
"when": "view =~ /azure(ResourceGroups|Workspace|FocusView)/ && viewItem == cosmosDBDocumentCollection",
"group": "1@2"
},
{
"command": "cosmosDB.deleteDocDBDocument",
"when": "view =~ /azure(ResourceGroups|Workspace)/ && viewItem == cosmosDBDocument",
"when": "view =~ /azure(ResourceGroups|Workspace|FocusView)/ && viewItem == cosmosDBDocument",
"group": "1@2"
},
{
"command": "cosmosDB.deleteDocDBStoredProcedure",
"when": "view =~ /azure(ResourceGroups|Workspace)/ && viewItem == cosmosDBStoredProcedure",
"when": "view =~ /azure(ResourceGroups|Workspace|FocusView)/ && viewItem == cosmosDBStoredProcedure",
"group": "1@2"
},
{
"command": "cosmosDB.deleteDocDBDatabase",
"when": "view =~ /azure(ResourceGroups|Workspace)/ && viewItem == cosmosDBDocumentDatabase",
"when": "view =~ /azure(ResourceGroups|Workspace|FocusView)/ && viewItem == cosmosDBDocumentDatabase",
"group": "1@2"
},
{
"command": "cosmosDB.deleteGraphDatabase",
"when": "view =~ /azure(ResourceGroups|Workspace)/ && viewItem == cosmosDBGraphDatabase",
"when": "view =~ /azure(ResourceGroups|Workspace|FocusView)/ && viewItem == cosmosDBGraphDatabase",
"group": "1@2"
},
{
"command": "postgreSQL.deleteDatabase",
"when": "view =~ /azure(ResourceGroups|Workspace)/ && viewItem == postgresDatabase",
"when": "view =~ /azure(ResourceGroups|Workspace|FocusView)/ && viewItem == postgresDatabase",
"group": "1@2"
},
{
"command": "postgreSQL.deleteTable",
"when": "view =~ /azure(ResourceGroups|Workspace)/ && viewItem == postgresTable",
"when": "view =~ /azure(ResourceGroups|Workspace|FocusView)/ && viewItem == postgresTable",
"group": "1@2"
},
{
"command": "postgreSQL.deleteFunction",
"when": "view =~ /azure(ResourceGroups|Workspace)/ && viewItem == postgresFunction",
"when": "view =~ /azure(ResourceGroups|Workspace|FocusView)/ && viewItem == postgresFunction",
"group": "1@2"
},
{
"command": "postgreSQL.deleteStoredProcedure",
"when": "view =~ /azure(ResourceGroups|Workspace)/ && viewItem == postgresStoredProcedure",
"when": "view =~ /azure(ResourceGroups|Workspace|FocusView)/ && viewItem == postgresStoredProcedure",
"group": "1@2"
},
{
"command": "cosmosDB.deleteGraph",
"when": "view =~ /azure(ResourceGroups|Workspace)/ && viewItem == cosmosDBGraph",
"when": "view =~ /azure(ResourceGroups|Workspace|FocusView)/ && viewItem == cosmosDBGraph",
"group": "1@2"
},
{
Expand All @@ -701,27 +701,27 @@
},
{
"command": "cosmosDB.openCollection",
"when": "view =~ /azure(ResourceGroups|Workspace)/ && viewItem == MongoCollection",
"when": "view =~ /azure(ResourceGroups|Workspace|FocusView)/ && viewItem == MongoCollection",
"group": "1@2"
},
{
"command": "cosmosDB.copyConnectionString",
"when": "view == azureResourceGroups && viewItem =~ /cosmosDBMongoServer(?![a-z])/i",
"when": "view =~ /(azureResourceGroups|azureFocusView)/ && viewItem =~ /cosmosDBMongoServer(?![a-z])/i",
"group": "2@1"
},
{
"command": "cosmosDB.copyConnectionString",
"when": "view == azureResourceGroups && viewItem =~ /cosmosDBGraphAccount(?![a-z])/i",
"when": "view =~ /(azureResourceGroups|azureFocusView)/ && viewItem =~ /cosmosDBGraphAccount(?![a-z])/i",
"group": "2@1"
},
{
"command": "cosmosDB.copyConnectionString",
"when": "view == azureResourceGroups && viewItem =~ /cosmosDBDocumentServer(?![a-z])/i",
"when": "view =~ /(azureResourceGroups|azureFocusView)/ && viewItem =~ /cosmosDBDocumentServer(?![a-z])/i",
"group": "2@1"
},
{
"command": "cosmosDB.copyConnectionString",
"when": "view == azureResourceGroups && viewItem =~ /cosmosDBTableAccount(?![a-z])/i",
"when": "view =~ /(azureResourceGroups|azureFocusView)/ && viewItem =~ /cosmosDBTableAccount(?![a-z])/i",
"group": "2@1"
},
{
Expand All @@ -746,7 +746,7 @@
},
{
"command": "postgreSQL.copyConnectionString",
"when": "view =~ /azure(ResourceGroups|Workspace)/ && viewItem == postgresDatabase",
"when": "view =~ /azure(ResourceGroups|Workspace|FocusView)/ && viewItem == postgresDatabase",
"group": "2@1"
},
{
Expand All @@ -756,22 +756,22 @@
},
{
"command": "azureDatabases.refresh",
"when": "view =~ /azure(ResourceGroups|Workspace)/ && viewItem == cosmosDBDocumentCollection",
"when": "view =~ /azure(ResourceGroups|Workspace|FocusView)/ && viewItem == cosmosDBDocumentCollection",
"group": "2@1"
},
{
"command": "azureDatabases.refresh",
"when": "view =~ /azure(ResourceGroups|Workspace)/ && viewItem == cosmosDBDocumentDatabase",
"when": "view =~ /azure(ResourceGroups|Workspace|FocusView)/ && viewItem == cosmosDBDocumentDatabase",
"group": "4@1"
},
{
"command": "azureDatabases.refresh",
"when": "view =~ /azure(ResourceGroups|Workspace)/ && viewItem == cosmosDBDocumentsGroup",
"when": "view =~ /azure(ResourceGroups|Workspace|FocusView)/ && viewItem == cosmosDBDocumentsGroup",
"group": "2@1"
},
{
"command": "azureDatabases.refresh",
"when": "view =~ /azure(ResourceGroups|Workspace)/ && viewItem == cosmosDBStoredProceduresGroup",
"when": "view =~ /azure(ResourceGroups|Workspace|FocusView)/ && viewItem == cosmosDBStoredProceduresGroup",
"group": "2@1"
},
{
Expand All @@ -786,22 +786,22 @@
},
{
"command": "azureDatabases.refresh",
"when": "view =~ /azure(ResourceGroups|Workspace)/ && viewItem == postgresDatabase",
"when": "view =~ /azure(ResourceGroups|Workspace|FocusView)/ && viewItem == postgresDatabase",
"group": "3@1"
},
{
"command": "azureDatabases.refresh",
"when": "view =~ /azure(ResourceGroups|Workspace)/ && viewItem == postgresTables",
"when": "view =~ /azure(ResourceGroups|Workspace|FocusView)/ && viewItem == postgresTables",
"group": "1@1"
},
{
"command": "azureDatabases.refresh",
"when": "view =~ /azure(ResourceGroups|Workspace)/ && viewItem == postgresFunctions",
"when": "view =~ /azure(ResourceGroups|Workspace|FocusView)/ && viewItem == postgresFunctions",
"group": "2@1"
},
{
"command": "azureDatabases.refresh",
"when": "view =~ /azure(ResourceGroups|Workspace)/ && viewItem == postgresStoredProcedures",
"when": "view =~ /azure(ResourceGroups|Workspace|FocusView)/ && viewItem == postgresStoredProcedures",
"group": "2@1"
},
{
Expand All @@ -821,7 +821,7 @@
},
{
"command": "azureDatabases.refresh",
"when": "view =~ /azure(ResourceGroups|Workspace)/ && viewItem == cosmosDBGraphDatabase",
"when": "view =~ /azure(ResourceGroups|Workspace|FocusView)/ && viewItem == cosmosDBGraphDatabase",
"group": "2@1"
},
{
Expand All @@ -831,12 +831,12 @@
},
{
"command": "azureDatabases.refresh",
"when": "view =~ /azure(ResourceGroups|Workspace)/ && viewItem == mongoDb",
"when": "view =~ /azure(ResourceGroups|Workspace|FocusView)/ && viewItem == mongoDb",
"group": "3@1"
},
{
"command": "azureDatabases.refresh",
"when": "view =~ /azure(ResourceGroups|Workspace)/ && viewItem == MongoCollection",
"when": "view =~ /azure(ResourceGroups|Workspace|FocusView)/ && viewItem == MongoCollection",
"group": "4@1"
},
{
Expand All @@ -846,27 +846,27 @@
},
{
"command": "cosmosDB.importDocument",
"when": "view =~ /azure(ResourceGroups|Workspace)/ && viewItem == MongoCollection",
"when": "view =~ /azure(ResourceGroups|Workspace|FocusView)/ && viewItem == MongoCollection",
"group": "1@3"
},
{
"command": "cosmosDB.importDocument",
"when": "view =~ /azure(ResourceGroups|Workspace)/ && viewItem == cosmosDBDocumentCollection",
"when": "view =~ /azure(ResourceGroups|Workspace|FocusView)/ && viewItem == cosmosDBDocumentCollection",
"group": "1@1"
},
{
"command": "postgreSQL.connectDatabase",
"when": "view =~ /azure(ResourceGroups|Workspace)/ && viewItem == postgresDatabase",
"when": "view =~ /azure(ResourceGroups|Workspace|FocusView)/ && viewItem == postgresDatabase",
"group": "1@1"
},
{
"command": "postgreSQL.createFunctionQuery",
"when": "view =~ /azure(ResourceGroups|Workspace)/ && viewItem == postgresFunctions",
"when": "view =~ /azure(ResourceGroups|Workspace|FocusView)/ && viewItem == postgresFunctions",
"group": "1@1"
},
{
"command": "postgreSQL.createStoredProcedureQuery",
"when": "view =~ /azure(ResourceGroups|Workspace)/ && viewItem == postgresStoredProcedures",
"when": "view =~ /azure(ResourceGroups|Workspace|FocusView)/ && viewItem == postgresStoredProcedures",
"group": "1@1"
}
],
Expand Down

0 comments on commit ffcabdb

Please sign in to comment.