mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-20 09:35:38 -05:00
Standardize slashes in sqlproj (#11174)
* standardize slashes that go in sqlproj * update tests to not have os specific baselines * fix test * fix delete tests * some cleanup
This commit is contained in:
@@ -100,6 +100,14 @@ export function getPlatformSafeFileEntryPath(filePath: string): string {
|
||||
return parts.join('/');
|
||||
}
|
||||
|
||||
/**
|
||||
* Standardizes slashes to be "\\" for consistency between platforms and compatibility with SSDT
|
||||
*/
|
||||
export function convertSlashesForSqlProj(filePath: string): string {
|
||||
const parts = filePath.split('/');
|
||||
return parts.join('\\');
|
||||
}
|
||||
|
||||
/**
|
||||
* Read SQLCMD variables from xmlDoc and return them
|
||||
* @param xmlDoc xml doc to read SQLCMD variables from. Format must be the same that sqlproj and publish profiles use
|
||||
|
||||
Reference in New Issue
Block a user