Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(349)

Unified Diff: third_party/WebKit/Source/devtools/front_end/persistence/Automapping.js

Issue 2651043006: DevTools: Remove files in the navigator when they are deleted externally (Closed)
Patch Set: fix test Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/devtools/front_end/persistence/Automapping.js
diff --git a/third_party/WebKit/Source/devtools/front_end/persistence/Automapping.js b/third_party/WebKit/Source/devtools/front_end/persistence/Automapping.js
index e6086384fc7d3b456a1a2eeb5b2d1c5ad260cada..5c837a177eeeab5b71e3a851ec1e97b007ef4ca7 100644
--- a/third_party/WebKit/Source/devtools/front_end/persistence/Automapping.js
+++ b/third_party/WebKit/Source/devtools/front_end/persistence/Automapping.js
@@ -84,7 +84,7 @@ Persistence.Automapping = class {
if (project.type() !== Workspace.projectTypes.FileSystem)
return;
var fileSystem = /** @type {!Persistence.FileSystemWorkspaceBinding.FileSystem} */ (project);
- for (var gitFolder of fileSystem.gitFolders())
+ for (var gitFolder of fileSystem.initialGitFolders())
this._projectFoldersIndex.removeFolder(gitFolder);
this._projectFoldersIndex.removeFolder(fileSystem.fileSystemPath());
this._scheduleRemap();
@@ -97,7 +97,7 @@ Persistence.Automapping = class {
if (project.type() !== Workspace.projectTypes.FileSystem)
return;
var fileSystem = /** @type {!Persistence.FileSystemWorkspaceBinding.FileSystem} */ (project);
- for (var gitFolder of fileSystem.gitFolders())
+ for (var gitFolder of fileSystem.initialGitFolders())
this._projectFoldersIndex.addFolder(gitFolder);
this._projectFoldersIndex.addFolder(fileSystem.fileSystemPath());
this._scheduleRemap();

Powered by Google App Engine
This is Rietveld 408576698