Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot create untitled document when having a host component #25539

Closed
jrieken opened this issue Apr 27, 2017 · 3 comments
Closed

Cannot create untitled document when having a host component #25539

jrieken opened this issue Apr 27, 2017 · 3 comments
Assignees
Labels
api bug Issue identified by VS Code Team member as probable bug verified Verification succeeded
Milestone

Comments

@jrieken
Copy link
Member

jrieken commented Apr 27, 2017

Have snippet code below and see it ain't working

const uri = Uri.file('\\LOCALHOST\c$\Users\jrieken\code\samples').with({scheme: 'untitled'};
vscode.workspace.openTextDocument(uri).then(doc => {
     console.assert(doc, 'No doc for uri: ' + uri.toString());
})
@jrieken jrieken self-assigned this Apr 27, 2017
@jrieken jrieken added this to the April 2017 milestone Apr 27, 2017
@jrieken jrieken added api bug Issue identified by VS Code Team member as probable bug labels Apr 27, 2017
@jrieken
Copy link
Member Author

jrieken commented Apr 27, 2017

@bpasero When running in a VM but opening a folder from within the VM, like c:\Users\jrieken\code\samples not a network shared, the rootPath is set to \\localhost\c$\Users\jrieken\code\samples which seems weird? Why is that?

screen shot 2017-04-27 at 14 00 46

@jrieken
Copy link
Member Author

jrieken commented Apr 27, 2017

fyi @sandy081

jrieken added a commit that referenced this issue Apr 27, 2017
jrieken added a commit that referenced this issue Apr 27, 2017
@jrieken jrieken closed this as completed Apr 27, 2017
@sandy081
Copy link
Member

Thanks @jrieken

@sandy081 sandy081 added the verified Verification succeeded label Apr 28, 2017
@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
api bug Issue identified by VS Code Team member as probable bug verified Verification succeeded
Projects
None yet
Development

No branches or pull requests

2 participants