Fix project name validation (#22547)

* Fix project name validation

* Add/update tests

* Address comments

* Fix error
This commit is contained in:
Sakshi Sharma
2023-03-31 08:46:58 -07:00
committed by GitHub
parent 6cc5e9a70d
commit 9d8006562d
11 changed files with 124 additions and 153 deletions

View File

@@ -75,11 +75,11 @@ declare module 'dataworkspace' {
isValidBasename(name: string | null | undefined): boolean;
/**
* Returns specific error message if file name is invalid
* Returns specific error message if file name is invalid otherwise returns undefined
* Logic is copied from src\vs\base\common\extpath.ts
* @param name filename to check
*/
isValidBasenameErrorMessage(name: string | null | undefined): string;
isValidBasenameErrorMessage(name: string | null | undefined): string | undefined;
}
/**