Commit bb64b765 authored by Joel Einbinder's avatar Joel Einbinder Committed by Commit Bot

DevTools: Favor network over filesystem in QuickOpen

Change-Id: Ic856f6d5c20ab05ca566c18b8e0490f792f472ef
Reviewed-on: https://chromium-review.googlesource.com/825763
Commit-Queue: Joel Einbinder <einbinder@chromium.org>
Reviewed-by: default avatarAndrey Lushnikov <lushnikov@chromium.org>
Cr-Commit-Position: refs/heads/master@{#523961}
parent 6324d4f0
...@@ -109,8 +109,13 @@ Sources.FilteredUISourceCodeListProvider = class extends QuickOpen.FilteredListW ...@@ -109,8 +109,13 @@ Sources.FilteredUISourceCodeListProvider = class extends QuickOpen.FilteredListW
this._scorer = new Sources.FilePathScoreFunction(query); this._scorer = new Sources.FilePathScoreFunction(query);
} }
var multiplier = 10;
if (uiSourceCode.project().type() === Workspace.projectTypes.FileSystem &&
!Persistence.persistence.binding(uiSourceCode))
multiplier = 5;
var fullDisplayName = uiSourceCode.fullDisplayName(); var fullDisplayName = uiSourceCode.fullDisplayName();
return score + 10 * this._scorer.score(fullDisplayName, null); return score + multiplier * this._scorer.score(fullDisplayName, null);
} }
/** /**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment