-
Notifications
You must be signed in to change notification settings - Fork 34.8k
Closed
Labels
feature-requestRequest for new features or functionalityRequest for new features or functionalityfile-ioFile I/OFile I/Onotebookon-testplanplan-itemVS Code - planned item for upcomingVS Code - planned item for upcomingworkbench-untitled-editorsManaging of untitled editors in workbench windowManaging of untitled editors in workbench window
Milestone
Description
- VS Code Version: Insiders
- OS Version: Windows
Steps to Reproduce:
- Currently developing the .NET Interactive Notebooks extension (ms-dotnettools.dotnet-interactive-vscode)
- Our extension registers the notebook view type
dotnet-interactive
for files of type*.dib
. - When we try to create a new untitled notebook, we get an error:
The file working copy resource untitled:Untitled-1.dib does not have an associated file system provider.
The following all fail in similar ways and all have the following code immediately preceeding this failure:
const viewType = 'dotnet-interactive'; // this was registered in `package.json`
const fileName = 'Untitled-1.dib'; // note, there is no existing editor with this name
const newUri = vscode.Uri.file(fileName).with({ scheme: 'untitled', path: fileName });
vscode.commands.executeCommand('vscode.openWith', newUri);
vscode.commands.executeCommand('vscode.openWith', newUri, viewType);
vscode.notebook.openNotebookDocument(newUri);
This one just opens a text document, not a notebook:
vscode.commands.executeCommand('workbench.action.files.newUntitledFile', viewType);
Does this issue occur when all extensions are disabled?: N/A
JacksonKearl
Metadata
Metadata
Labels
feature-requestRequest for new features or functionalityRequest for new features or functionalityfile-ioFile I/OFile I/Onotebookon-testplanplan-itemVS Code - planned item for upcomingVS Code - planned item for upcomingworkbench-untitled-editorsManaging of untitled editors in workbench windowManaging of untitled editors in workbench window