File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
src/PowerShellEditorServices/Workspace Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -264,10 +264,13 @@ internal static bool IsPathInMemory(string filePath)
264264 // When viewing PowerShell files in the Git diff viewer, VS Code
265265 // sends the contents of the file at HEAD with a URI that starts
266266 // with 'inmemory'. Untitled files which have been marked of
267- // type PowerShell have a path starting with 'untitled'.
267+ // type PowerShell have a path starting with 'untitled'. Files
268+ // opened from the find/replace view will be prefixed with
269+ // 'private'.
268270 return
269271 filePath . StartsWith ( "inmemory" ) ||
270- filePath . StartsWith ( "untitled" ) ;
272+ filePath . StartsWith ( "untitled" ) ||
273+ filePath . StartsWith ( "private" ) ;
271274 }
272275
273276 private string GetBaseFilePath ( string filePath )
You can’t perform that action at this time.
0 commit comments