Skip to content

Commit

Permalink
Merge pull request #52 from Microsoft/chrisdias/51
Browse files Browse the repository at this point in the history
fixes #51
  • Loading branch information
chrisdias committed Jan 3, 2017
2 parents 4f94eff + db6eaaa commit f0a2851
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 f0a2851

Please sign in to comment.