Skip to content

Commit

Permalink
String localization, update version
Browse files Browse the repository at this point in the history
  • Loading branch information
nturinski committed Dec 1, 2017
1 parent 94a8cca commit abf3dd8
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion appservice/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "vscode-azureappservice",
"author": "Microsoft Corporation",
"version": "0.6.0",
"version": "0.7.0",
"description": "Common tools for developing Azure App Service extensions for VS Code",
"tags": [
"azure",
Expand Down
12 changes: 6 additions & 6 deletions appservice/src/SiteWrapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -208,14 +208,14 @@ export class SiteWrapper {
zipFilePath = fsPath;
} else if (await FileUtilities.isDirectory(fsPath)) {
createdZip = true;
this.log(outputChannel, 'Creating zip package...');
this.log(outputChannel, localize('zipCreate', 'Creating zip package...'));
zipFilePath = await FileUtilities.zipDirectory(fsPath);
} else {
throw new Error(localize('NotAZipError', 'Path specified is not a folder or a zip file'));
}

try {
this.log(outputChannel, 'Starting deployment...');
this.log(outputChannel, localize('deployStart', 'Starting deployment...'));
await kuduClient.pushDeployment.zipPushDeploy(fs.createReadStream(zipFilePath), { isAsync: true });
await this.waitForDeploymentToComplete(kuduClient, outputChannel);
} catch (error) {
Expand All @@ -234,7 +234,7 @@ export class SiteWrapper {
}
}

this.log(outputChannel, 'Deployment completed.');
this.log(outputChannel, localize('deployComplete', 'Deployment completed.'));
}

private async localGitDeploy(fsPath: string, client: WebSiteManagementClient, outputChannel: vscode.OutputChannel): Promise<void> {
Expand Down Expand Up @@ -274,7 +274,7 @@ export class SiteWrapper {
}
this.log(outputChannel, (localize('localGitDeploy', `Deploying Local Git repository to "${this.appName}"...`)));
await this.waitForDeploymentToComplete(kuduClient, outputChannel);
this.log(outputChannel, 'Deployment completed.');
this.log(outputChannel, localize('deployComplete', 'Deployment completed.'));
}

private async showScmPrompt(currentScmType: string): Promise<string> {
Expand Down Expand Up @@ -329,8 +329,8 @@ export class SiteWrapper {
}

private async showInstallPrompt(): Promise<void> {
const installString: string = 'Install';
const input: string | undefined = await vscode.window.showErrorMessage('Git must be installed to use Local Git Deploy.', installString);
const installString: string = localize('Install', 'Install');
const input: string | undefined = await vscode.window.showErrorMessage(localize('GitRequired', 'Git must be installed to use Local Git Deploy.'), installString);
if (input === installString) {
// tslint:disable-next-line:no-unsafe-any
opn('https://git-scm.com/downloads');
Expand Down
2 changes: 1 addition & 1 deletion kudu/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"moment": "^2.18.1"
},
"devDependencies": {
"autorest": "^2.0.4147",
"autorest": "2.0.4147",
"typescript": "^2.5.3"
}
}

0 comments on commit abf3dd8

Please sign in to comment.