Skip to content

Commit cdea6f1

Browse files
more vscode-notebook
1 parent fdb2095 commit cdea6f1

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/PowerShellEditorServices/Services/TextDocument/ScriptFile.cs

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 0 deletions
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)