Closed Bug 1797137 Opened 3 years ago Closed 3 years ago

Add recommendation to "Files: exclude" build directories in vscode docs

Categories

(Developer Infrastructure :: Developer Environment Integration, task)

x86_64
macOS

Tracking

(firefox108 fixed)

RESOLVED FIXED
Tracking Status
firefox108 --- fixed

People

(Reporter: mcomella, Assigned: mcomella)

References

Details

Attachments

(1 file)

With the default set up, vscode does not exclude the build directories from the "Files: Exclude" and "Files: Watcher Exclude" preferences which has the following consequences:

  • lengthened indexing time
  • go to definition will go to headers in the objdir instead of the source tree
  • go to file includes results from objdir
  • search includes results in the build directories

See bug 1790517 for how we might do this in an automated fashion. In the mean time, since that issue doesn't appear to be making progress, I think we should document how devs can manually add these preferences in our vscode documentation.

Note: after adding the build directories to exclude, go-to-definition still works correctly for me for files only available in the objdir, like generated files.

Also worth to say this is only for mercurial, as vscode automatically does this for git repositories.

Assignee: nobody → michael.l.comella
Status: NEW → ASSIGNED
Pushed by mcomella@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/d29dbc982c8a document excluding build directories in VS Code. r=andi DONTBUILD
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: