File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -97,6 +97,7 @@ export class BazelQuery extends BazelCommand {
97
97
const result = buffer
98
98
. toString ( "utf-8" )
99
99
. trim ( )
100
+ . replace ( / \r \n | \r / g, "\n" )
100
101
. split ( "\n" )
101
102
. sort ( ) ;
102
103
return result ;
Original file line number Diff line number Diff line change @@ -40,6 +40,8 @@ export async function getTargetsForBuildFile(
40
40
if ( relDirWithDoc === "." ) {
41
41
relDirWithDoc = "" ;
42
42
}
43
+ // Change \ (backslash) to / (forward slash) when on Windows
44
+ relDirWithDoc = relDirWithDoc . replace ( / \\ / g, "/" ) ;
43
45
// Turn the relative path into a package label
44
46
const pkg = `//${ relDirWithDoc } ` ;
45
47
const queryResult = await new BazelQuery (
@@ -71,7 +73,8 @@ function shouldIgnorePath(fsPath: string): boolean {
71
73
}
72
74
} catch ( err ) {
73
75
vscode . window . showErrorMessage (
74
- "pathsToIgnore value isn't a valid regex: " + escape ( pathRegex ) ) ;
76
+ "pathsToIgnore value isn't a valid regex: " + escape ( pathRegex ) ,
77
+ ) ;
75
78
}
76
79
}
77
80
return false ;
You can’t perform that action at this time.
0 commit comments