File tree 3 files changed +5
-5
lines changed
3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
- import * as path from "path" ;
1
+ import { posix as path } from "path" ;
2
2
import { commands , Uri , window } from "vscode" ;
3
3
import { SvnUriAction } from "../common/types" ;
4
4
import { Repository } from "../repository" ;
Original file line number Diff line number Diff line change 1
- import * as path from "path" ;
1
+ import { posix as path } from "path" ;
2
2
import { commands , Uri , window } from "vscode" ;
3
3
import { Resource } from "../resource" ;
4
4
import IncomingChangeNode from "../treeView/nodes/incomingChangeNode" ;
@@ -28,15 +28,15 @@ export class OpenHeadFile extends Command {
28
28
29
29
const HEAD = await this . getLeftResource ( resource , "HEAD" ) ;
30
30
31
- const basename = path . basename ( resource . resourceUri . fsPath ) ;
31
+ const basename = path . basename ( resource . resourceUri . path ) ;
32
32
if ( ! HEAD ) {
33
33
window . showWarningMessage (
34
34
`"HEAD version of '${ basename } ' is not available."`
35
35
) ;
36
36
return ;
37
37
}
38
38
39
- const basedir = path . dirname ( resource . resourceUri . fsPath ) ;
39
+ const basedir = path . dirname ( resource . resourceUri . path ) ;
40
40
41
41
const uri = HEAD . with ( {
42
42
path : path . join ( basedir , `(HEAD) ${ basename } ` ) // change document title
Original file line number Diff line number Diff line change 1
- import * as path from "path" ;
1
+ import { posix as path } from "path" ;
2
2
import { Command } from "./command" ;
3
3
import { window , Uri , commands } from "vscode" ;
4
4
import { Repository } from "../repository" ;
You can’t perform that action at this time.
0 commit comments