豆豆友情提示:这是一个非官方 GitHub 代理镜像,主要用于网络测试或访问加速。请勿在此进行登录、注册或处理任何敏感信息。进行这些操作请务必访问官方网站 github.com。 Raw 内容也通过此代理提供。
Skip to content

Commit 3e07bb1

Browse files
wolfibDevtools-frontend LUCI CQ
authored andcommitted
Exclude only local overrides from search, not all workspaces
Follow-up to https://crrev.com/c/7060310 Bug: 477639526, 40752084 Change-Id: Id6f30238f38680f9b3c6f0cb5428b86c7cb51b8b Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/7548489 Reviewed-by: Paul Irish <paulirish@chromium.org> Commit-Queue: Paul Irish <paulirish@chromium.org> Auto-Submit: Wolfgang Beyer <wolfi@chromium.org>
1 parent c2d1fc8 commit 3e07bb1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

front_end/panels/sources/SourcesSearchScope.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,8 @@ export class SourcesSearchScope implements Search.SearchScope.SearchScope {
8686
if (!searchInAnonymousAndContentScripts && project.type() === Workspace.Workspace.projectTypes.ContentScripts) {
8787
return false;
8888
}
89-
if (!localOverridesEnabled && project.type() === Workspace.Workspace.projectTypes.FileSystem) {
89+
if (!localOverridesEnabled && project.type() === Workspace.Workspace.projectTypes.FileSystem &&
90+
Persistence.FileSystemWorkspaceBinding.FileSystemWorkspaceBinding.fileSystemType(project) === 'overrides') {
9091
return false;
9192
}
9293
return true;

0 commit comments

Comments
 (0)