mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-31 17:23:31 -05:00
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:
@@ -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
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user