Add prompt for autorest SQL project name (#17365)

* Adding prompt for project name

* Updating test

* PR feedback

* Fixing rename logic so that folder is also named according to project

* Updating autorest test to confirm rename
This commit is contained in:
Benjin Dubishar
2021-10-17 07:53:22 -07:00
committed by GitHub
parent ecb7f9311a
commit 7f92d8bc19
4 changed files with 44 additions and 14 deletions

View File

@@ -433,6 +433,7 @@ export function generatingProjectFailed(errorMessage: string) { return localize(
export const noSqlFilesGenerated = localize('noSqlFilesGenerated', "No .sql files were generated by Autorest. Please confirm that your spec contains model definitions, or check the output log for details.");
export function multipleMostDeploymentScripts(count: number) { return localize('multipleMostDeploymentScripts', "Unexpected number of {0} files: {1}", autorestPostDeploymentScriptName, count); }
export const specSelectionText = localize('specSelectionText', "OpenAPI/Swagger spec");
export const autorestProjectName = localize('autorestProjectName', "New SQL project name");
export function generatingProjectFromAutorest(specName: string) { return localize('generatingProjectFromAutorest', "Generating new SQL project from {0}... Check output window for details.", specName); }
// System dbs

View File

@@ -544,8 +544,8 @@ export function validateSqlServerPortNumber(port: string | undefined): boolean {
return !isNaN(valueAsNum) && valueAsNum > 0 && valueAsNum < 65535;
}
export function isEmptyString(password: string | undefined): boolean {
return password === undefined || password === '';
export function isEmptyString(input: string | undefined): boolean {
return input === undefined || input === '';
}
export function isValidSQLPassword(password: string, userName: string = 'sa'): boolean {