Skip to content

Commit

Permalink
Small fixes (#175)
Browse files Browse the repository at this point in the history
  • Loading branch information
RupengLiu authored Mar 1, 2021
1 parent 68c9478 commit 1bd0074
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
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": "0.1.9",
"version": "1.0.0",
"publisher": "ms-azuretools",
"icon": "resources/azure-apim.png",
"aiKey": "AIF-d9b70cd4-b9f9-4d70-929b-a071c400b217",
Expand Down
10 changes: 5 additions & 5 deletions src/commands/revisions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ export async function revisions(context: IActionContext, node?: ApiTreeItem): Pr
node = <ApiTreeItem>await ext.tree.showTreeItemPicker(ApiTreeItem.contextValue, context);
}

const options = [localize("", "Make Current"), localize("", "Switch Revisions"), localize("", "Create Revision"), localize("", "Delete Revision")];
const options = [localize("", "Make Current"), localize("", "Switch Revision"), localize("", "Create Revision"), localize("", "Delete Revision")];
const commands = await ext.ui.showQuickPick(options.map((s) => { return { label: s }; }), { canPickMany: false });

if (commands.label === localize("", "Switch Revisions")) {
if (commands.label === localize("", "Switch Revision")) {
const pickedApi = await listRevisions(node);

await node.reloadApi(pickedApi);
Expand Down Expand Up @@ -97,7 +97,7 @@ async function createRevision(node: ApiTreeItem): Promise<void> {
await window.withProgress(
{
location: ProgressLocation.Notification,
title: localize("creating", "Creating API Revision..."),
title: localize("creating", "Creating API revision..."),
cancellable: true
},
async () => {
Expand Down Expand Up @@ -140,8 +140,8 @@ async function deleteRevision(node: ApiTreeItem): Promise<void> {
}

async function askRevisionDescription(): Promise<string> {
const releaseNotesPrompt: string = localize('revisionPrompt', 'Enter revision Description.');
const defaultDescription: string = localize('revisionPrompt', "New ApiRevsion");
const releaseNotesPrompt: string = localize('revisionPrompt', 'Enter revision description.');
const defaultDescription: string = localize('revisionPrompt', "New API revision");
return (await ext.ui.showInputBox({
prompt: releaseNotesPrompt,
value: defaultDescription,
Expand Down
2 changes: 1 addition & 1 deletion src/operationConsole/OperationConsole.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export class OperationConsole {
// add comment
requestSummary += `\n//A subscription key is required to call this API.`;
requestSummary += `\n//You can get the all-access subscription key by right clicking on your service and choose "Copy Subscription Key".`;
requestSummary += `\n//You can also set an environment variable to avoid doing the above every time,`;
requestSummary += `\n//You can also set an environment variable,`;
requestSummary += `\n//see https://code.visualstudio.com/docs/editor/variables-reference#_environment-variables`;

return requestSummary;
Expand Down

0 comments on commit 1bd0074

Please sign in to comment.