mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-16 01:25:36 -05:00
fix for windows path to show in project tree across platforms correctly (#11027)
* fix for windows path to show in project tree across platforms correctly * allow retrying on project that failed to load * test for project failed to load case * Adding platform safe uri for database ref in tree
This commit is contained in:
@@ -97,6 +97,16 @@ export function getSafeNonWindowsPath(filePath: string): string {
|
||||
return '"' + filePath + '"';
|
||||
}
|
||||
|
||||
/**
|
||||
* Get safe relative path for Windows and non-Windows Platform
|
||||
* This is needed to read sqlproj entried created on SSDT and opened in MAC
|
||||
* '/' in tree is recognized all platforms but "\\" only by windows
|
||||
*/
|
||||
export function getPlatformSafeFileEntryPath(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