Fix default search exclusions string

This commit is contained in:
Rob Lourens 2018-03-15 17:32:01 -07:00
parent 3fb65e7b65
commit 234d100603

View file

@ -175,7 +175,7 @@ export class SearchView extends Viewlet implements IViewlet, IPanel {
this.createSearchWidget(this.searchWidgetsContainer); this.createSearchWidget(this.searchWidgetsContainer);
const filePatterns = this.viewletSettings['query.filePatterns'] || ''; const filePatterns = this.viewletSettings['query.filePatterns'] || '';
const patternExclusions = this.viewletSettings['query.folderExclusions'] || 'foo, bar/**/*.js'; const patternExclusions = this.viewletSettings['query.folderExclusions'] || '';
delete this.viewletSettings['query.folderExclusions']; // Migrating from versions that have dedicated exclusions persisted delete this.viewletSettings['query.folderExclusions']; // Migrating from versions that have dedicated exclusions persisted
const patternIncludes = this.viewletSettings['query.folderIncludes'] || ''; const patternIncludes = this.viewletSettings['query.folderIncludes'] || '';
const patternIncludesHistory = this.viewletSettings['query.folderIncludesHistory'] || []; const patternIncludesHistory = this.viewletSettings['query.folderIncludesHistory'] || [];