File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ import {
10
10
handleInspectCommand ,
11
11
handleShowLogsCommand ,
12
12
} from "./logs"
13
- import { context , debug , getQueryValue } from "./utils"
13
+ import { context , debug , getQueryValue , split } from "./utils"
14
14
import {
15
15
CoderWorkspacesProvider ,
16
16
rebuildWorkspace ,
@@ -28,7 +28,7 @@ export const uriHandler: vscode.UriHandler = {
28
28
// split on the first non-leading trailing slash which separates the
29
29
// action from the resource. The action is not allowed to contain slashes
30
30
// but the resource can.
31
- const [ action , resource ] = uri . fsPath . replace ( / ^ \/ / , "" ) . split ( "/" )
31
+ const [ action , resource ] = split ( uri . path . replace ( / ^ \/ / , "" ) , "/" )
32
32
if ( ! action || ! resource ) {
33
33
vscode . window . showErrorMessage ( `URI is malformed: "${ uri } "` )
34
34
return
You can’t perform that action at this time.
0 commit comments