Skip to content

Commit

Permalink
fixes #51
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisdias committed Jan 2, 2017
1 parent 4f94eff commit db6eaaa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions commands/build-image.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ interface Item extends vscode.QuickPickItem {
}

function createItem(uri: vscode.Uri): Item {
let filePath = hasWorkspaceFolder() ? path.join(".", uri.path.substr(vscode.workspace.rootPath.length)) : uri.path;
let filePath = hasWorkspaceFolder() ? path.join(".", uri.fsPath.substr(vscode.workspace.rootPath.length)) : uri.fsPath;

return <Item>{
description: null,
file: filePath,
label: filePath,
path: path.dirname(filePath)
path: path.dirname(filePath)
};
}

Expand Down Expand Up @@ -74,7 +74,7 @@ export function buildImage(dockerFileUri?: vscode.Uri) {
}

const opt: vscode.InputBoxOptions = {
placeHolder: imageName + ':latest',
placeHolder: imageName + ':latest',
prompt: 'Tag image as...',
value: imageName + ':latest'
};
Expand Down

0 comments on commit db6eaaa

Please sign in to comment.