Skip to content

Commit

Permalink
Small imprvements (#195)
Browse files Browse the repository at this point in the history
* Small imprvements

* Prepare for releasing selfhosted debugging
  • Loading branch information
RupengLiu authored Mar 31, 2021
1 parent 4f20b9b commit 07a8c12
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 4 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ All you need is an Azure Subscription to get started. If you don't have one, [cl
- Show diffs against last saved version
- Switch / Release API Revisions
- API Filter
- Policy Debugging on Self-Hosted Gateways

## Create an API Management instance using defaults

Expand Down Expand Up @@ -95,6 +96,9 @@ Please note: only JSON format is supported currently.
## API Filter
![apiFilter](resources/apiFilter.gif)

## Self-Hosted Gateway Debugging
![selfHostedDebugging](resources/selfdebug.gif)

## Intellisense for Policy Expressions.

Follow instructions [here](https://github.com/microsoft/vscode-apimanagement/issues/37#issuecomment-516551741).
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "vscode-apimanagement",
"displayName": "Azure API Management",
"description": "An Azure API Management extension for Visual Studio Code.",
"version": "1.0.1",
"version": "1.0.2",
"publisher": "ms-azuretools",
"icon": "resources/apim-icon-newone.png",
"aiKey": "AIF-d9b70cd4-b9f9-4d70-929b-a071c400b217",
Expand Down
2 changes: 1 addition & 1 deletion package.nls.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,5 @@
"azureApiManagement.generateFunctions": "Scaffold Azure Functions",
"azureApiManagement.scaffoldAzureFunctions": "(Experimental Feature) Enables scaffolding Azure Functions from API definition.",
"azureApiManagement.revisions": "API Revisions",
"azureApiManagement.setCustomHostName": "Set Service Custom Host Name"
"azureApiManagement.setCustomHostName": "Select Gateway Host Name"
}
Binary file added resources/selfdebug.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion src/commands/setCustomHostName.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,9 @@ export async function setCustomHostName(context: IActionContext, node?: ServiceT
}
});
}
const selfDefined = localize('', "Input a new custom host name");
const selfDefined = localize('', "Input a hostname (for self-hosted gateway)");
allHostNames.push({label: selfDefined, hostName: ""});
window.showInformationMessage(localize("", "Select the gateway hostname for testing and debugging APIs."));
const pick = await ext.ui.showQuickPick(allHostNames.map((s) => { return {label: s.label, gateway: s}; }), { canPickMany: false});
if (pick.label === selfDefined) {
const namespacePrompt: string = localize('urlPrompt', 'Enter Custom Host Name.');
Expand Down

0 comments on commit 07a8c12

Please sign in to comment.