We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1f3df7a commit c7e18c5Copy full SHA for c7e18c5
1 file changed
src/PowerShellEditorServices/Workspace/Workspace.cs
@@ -264,10 +264,13 @@ internal static bool IsPathInMemory(string filePath)
264
// When viewing PowerShell files in the Git diff viewer, VS Code
265
// sends the contents of the file at HEAD with a URI that starts
266
// with 'inmemory'. Untitled files which have been marked of
267
- // type PowerShell have a path starting with 'untitled'.
+ // type PowerShell have a path starting with 'untitled'. Files
268
+ // opened from the find/replace view will be prefixed with
269
+ // 'private'.
270
return
271
filePath.StartsWith("inmemory") ||
- filePath.StartsWith("untitled");
272
+ filePath.StartsWith("untitled") ||
273
+ filePath.StartsWith("private");
274
}
275
276
private string GetBaseFilePath(string filePath)
0 commit comments