Bug 1894617: ignore the root .vscode directory too; r=sheehan

It looks like I misunderstood what the original rules meant and all content of
all `.vscode` directory should be ignored, but for the `.vscode/extensions.json`
and `.vscode/tasks.json` files. Since these file are already tracked, they don't
need a dedicated ignore rules. However other files does (e.g
`.vscode/settings.json`, `.vscode/launch.json`, etc).

So we remove the exception for the root `.vscode` directory.

This is a follow up to 4952395ba0ec.

Differential Revision: https://phabricator.services.mozilla.com/D209260
This commit is contained in:
Pierre-Yves David 2024-05-02 18:26:11 +00:00
parent a742e78650
commit 7bb19b134e
2 changed files with 2 additions and 4 deletions

3
.gitignore vendored
View file

@ -289,9 +289,8 @@ toolchains.json
lextab.py lextab.py
# Ignore Visual Studio/Visual Studio Code workspace files. # Ignore Visual Studio/Visual Studio Code workspace files.
# (but the root .vscode directory)
.vs/ .vs/
*/.vscode/ .vscode/
*.user *.user
# Thunderbird source tree # Thunderbird source tree

View file

@ -289,9 +289,8 @@ tps_result\.json$
^lextab\.py$ ^lextab\.py$
# Ignore Visual Studio/Visual Studio Code workspace files. # Ignore Visual Studio/Visual Studio Code workspace files.
# (but the root .vscode directory)
\.vs/ \.vs/
.+/\.vscode/ \.vscode/
\.user$ \.user$
# Thunderbird source tree # Thunderbird source tree