File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ export interface ZippedWorkspaceResult {
1515
1616interface ZipProjectOptions {
1717 includeProjectName ?: boolean
18+ nonPosixPath ?: boolean
1819}
1920
2021interface ZipProjectCustomizations {
@@ -54,7 +55,7 @@ export async function addToZip(
5455 const zipFilePath = options ?. includeProjectName
5556 ? path . join ( path . basename ( file . workspaceFolder . uri . fsPath ) , file . zipFilePath )
5657 : file . zipFilePath
57- const posixPath = zipFilePath . split ( path . sep ) . join ( path . posix . sep )
58+ const posixPath = options ?. nonPosixPath ? zipFilePath : zipFilePath . split ( path . sep ) . join ( path . posix . sep )
5859
5960 try {
6061 // filepath will be out-of-sync for files with unsaved changes.
Original file line number Diff line number Diff line change @@ -463,7 +463,7 @@ export class ZipUtil {
463463 checkForError,
464464 computeSideEffects,
465465 } ,
466- { includeProjectName : true }
466+ { includeProjectName : true , nonPosixPath : true }
467467 )
468468 }
469469
You can’t perform that action at this time.
0 commit comments