Theia: search-in-workspace: does not respect 'files.exclude'

Created on 4 Mar 2020  路  3Comments  路  Source: eclipse-theia/theia

Description

The search-in-workspace search does not respect the globs presented in the files.exlude preference. The default preference consists of:

"files.exclude": {
  "**/.git": true,
  "**/.svn": true,
  "**/.hg": true,
  "**/CVS": true,
  "**/.DS_Store": true
}

However, when searching, I can see results from the .git folder:

image

Using the Include Ignored Files option has no effect as well.

bug help wanted search in workspace

Most helpful comment

ok, we should align it

All 3 comments

@vince-fugnitto Does it in VS Code?

@vince-fugnitto Does it in VS Code?

VS Code does respect the property but they have an additional preference to control the behavior, namely search.exclude which inherits values from files.exclude:

https://github.com/microsoft/vscode/blob/4c59cdd20dc90f9d6a9d4c2b11661f0a026672c1/src/vs/workbench/contrib/search/browser/search.contribution.ts#L649-L671

We should look to support such a preference as well.

ok, we should align it

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Beetix picture Beetix  路  3Comments

vince-fugnitto picture vince-fugnitto  路  3Comments

tetchel picture tetchel  路  3Comments

pwFoo picture pwFoo  路  3Comments

vince-fugnitto picture vince-fugnitto  路  3Comments