brackets-archive / bracketsIssues

Archive of issues in brackets.
0 stars 0 forks source link

[CLOSED] Add ignore paths for CodeHints & Search #4650

Open core-ai-bot opened 3 years ago

core-ai-bot commented 3 years ago

Issue by chrismatheson Wednesday Sep 04, 2013 at 08:39 GMT Originally opened as https://github.com/adobe/brackets/issues/5048


I would like to request this feature.

i have a project directory liek this: image

where you can see i have node_modules containing bits required for building, dist (build artifacts) bower_components (3rd party libs) and vendor (3rd party code)

ideally Code hinting would be clever enough to only add in the 3rd part API for each thing i want to use. but in the mean time id love a way to blacklist these folders (or specific files) from the code hinting.

ive added IRC conversation between myself and JeffryBooher who sugested i log this as an issue and it might warent a trello card and the chance for others to agree/dissagree

thanks

Chris

<ChrisMatheson>  has anyone had a crack at excluding files from standard search/code hinting etc ?
[09:02:34] <ChrisMatheson>   I've got a bunch of 3rd party bits & bobs that are at the same level as where i am working but i don't want them to mess up the code hinting
[09:05:56]   pflynn (~pflynn@76.14.66.102) joined the channel.
[09:05:56] ChanServ sets mode +o pflynn
[09:18:34] <@JeffryBooher>   not sure what you mean : ChrisMatheson
[09:19:25] <ChrisMatheson>   my top level directory structure looks something like this:   src/ test/ node_modules/ bower_components/ etc
[09:19:52]   pflynn (~pflynn@76.14.66.102) left IRC. (Ping timeout: 264 seconds)
[09:20:03] <ChrisMatheson>   there is a lot of code in node_modules & bower_componenets that docent require "deep" scanning to build up the code hinting for my project
[09:20:20] <ChrisMatheson>   however if i change my project dir to src then i can access the tests etc
[09:21:01] <@JeffryBooher>   you want to exclude node and bower from code hints?
[09:21:25] <ChrisMatheson>   yeah
[09:21:50] <ChrisMatheson>   and default searches but i think code hints would be more usefull
[09:22:14] <ChrisMatheson>   i had a scan through brackets code base but i couldn't figure out which bit built up the code hinting
[09:22:24] <@JeffryBooher>   it's done in tern
[09:22:46] <@JeffryBooher>   quick open (ctrl+o) then type in tern and you will see ternworker.js
[09:23:05] <@JeffryBooher>   ctrl+shift+o
[09:23:28] <ChrisMatheson>   ahhhh its a default extension!
[09:23:34] <ChrisMatheson>   i was looking in the main modules
[09:23:47] <@JeffryBooher>   yeah but it's built in to the code mirror editor as well
[09:24:11] <@JeffryBooher>   so there is some work being done on the active document then a worker that pops out of an extension that scans the source
[09:24:35] <ChrisMatheson>   so is tern how you add in the hinting for files that aren't "open" ?
[09:24:47] <ChrisMatheson>   *from
[09:25:01] <@JeffryBooher>   i would look at tern-worker.js
[09:25:12] <ChrisMatheson>   ok ill have a play and see if i can get any further
[09:25:18] <ChrisMatheson>   thanks`@`JeffryBooher
[09:25:21] <@JeffryBooher>   i'm not sure how easy that is to debug since it may be in a js worker thread
[09:25:50] <@JeffryBooher>   i'm not that familiar with that part stuff -- it's relatively new but I know we get most of it from tern :)
[09:25:57] <@JeffryBooher>   no worries...happy hacking!
[09:25:57] <ChrisMatheson>   well if its not already i think it would make a good trello card :)
[09:26:29] <@JeffryBooher>   sure
[09:27:08] <@JeffryBooher>   you may have to file a git hub issue if you don't have rights to add cards to our trello board
[09:27:28] <@JeffryBooher>   from there someone on the core team will move it to trello and let you know so you can vote on it
[09:33:51] <ChrisMatheson>   thanks JeffryBooher
core-ai-bot commented 3 years ago

Comment by RaymondLim Wednesday Sep 04, 2013 at 14:55 GMT


@chrismatheson The feature you're requesting is already implemented since sprint 27. You can exclude any file or any directory as described in this wiki page https://github.com/adobe/brackets/wiki/JavaScript-Code-Hints#configuration

core-ai-bot commented 3 years ago

Comment by peterflynn Wednesday Sep 04, 2013 at 20:00 GMT


Here's the user story for general-purpose file exclusions: https://trello.com/c/LgdleOVx/695-exclude-ignore-binary-files-libraries-or-subfolders-from-find-all-other-searches

Closing as 'move to backlog' since I think everything is captured between the user story and the existing JS code hints config.