Skip to content

Commit 7595b7b

Browse files
authored
[@kbn/dev-utils] Exclude target dirs from search (elastic#262916)
## Summary Excluded all `target/` directories from search results in VSCode or Cursor. This PR adds a managed exclude setting for `target` so everyone to enjoy! I kept seeing `target/` dirs when doing a global search in VSCode or Cursor when using an includes path. It works normally and excludes the `target/` by default with nothing in the include input. <img width="50%" src="https://github.com/user-attachments/assets/e9930941-8f51-46a6-8b42-cdbbed4182d3"> ### Checklist - [x] The PR description includes the appropriate Release Notes section, and the correct `release_note:*` label is applied per the [guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process) - [x] Review the [backport guidelines](https://docs.google.com/document/d/1VyN5k91e5OVumlc0Gb9RPa3h1ewuPE705nRtioPiTvY/edit?usp=sharing) and apply applicable `backport:*` labels.
1 parent 52c0a54 commit 7595b7b

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

packages/kbn-managed-vscode-config/src/managed_config_keys.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ export const MANAGED_CONFIG_KEYS: ManagedConfigKey[] = [
3939
key: 'search.exclude',
4040
value: {
4141
['**/api_docs']: true,
42+
['**/target']: true,
4243
['**/tsconfig.tsbuildinfo']: true,
4344
['**/*.map']: true,
4445
},

0 commit comments

Comments
 (0)