Skip to content

Commit 8f0db38

Browse files
more vscode-notebook
1 parent ccec61c commit 8f0db38

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/PowerShellEditorServices/Services/TextDocument/ScriptFile.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ internal static bool IsUntitledPath(string path)
218218
{
219219
Validate.IsNotNull(nameof(path), path);
220220

221-
return path.ToLower().StartsWith("untitled:");
221+
return path.ToLower().StartsWith("untitled:") || path.StartsWith("vscode-notebook:");
222222
}
223223

224224
/// <summary>

src/PowerShellEditorServices/Services/Workspace/WorkspaceService.cs

+1
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,7 @@ public bool TryGetFile(DocumentUri documentUri, out ScriptFile scriptFile)
195195
// List supported schemes here
196196
case "file":
197197
case "untitled":
198+
case "vscode-notebook":
198199
break;
199200

200201
default:

0 commit comments

Comments
 (0)