mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-19 08:08:39 +01:00
first cut green integration tests on windows
This commit is contained in:
@@ -28,6 +28,15 @@ export function createRandomFile(contents = ''): Thenable<vscode.Uri> {
|
||||
});
|
||||
}
|
||||
|
||||
export function pathEquals(path1: string, path2: string): boolean {
|
||||
if (process.platform !== 'linux') {
|
||||
path1 = path1.toLowerCase();
|
||||
path2 = path2.toLowerCase();
|
||||
}
|
||||
|
||||
return path1 === path2;
|
||||
}
|
||||
|
||||
export function deleteFile(file: vscode.Uri): Thenable<boolean> {
|
||||
return new Promise((resolve, reject) => {
|
||||
fs.unlink(file.fsPath, (err) => {
|
||||
|
||||
Reference in New Issue
Block a user