DEV: git ignored directories should not have trailing slashes (#27130)

VS Code is configured to automatically excludes files and directories from the `.gitignore` but the trailing slash was not working as expected.

The plugins that had a trailing slash in the .gitignore weren't allow-listed properly in VS Code.
This commit is contained in:
Régis Hanol 2024-05-22 12:33:01 +02:00 committed by GitHub
parent 88ebd4c11f
commit 004dabd84f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

20
.gitignore vendored
View File

@ -35,20 +35,20 @@
# Plugins except for the bundled ones
/plugins/*
!/plugins/discourse-details/
!/plugins/discourse-details
!/plugins/discourse-local-dates
!/plugins/discourse-narrative-bot
!/plugins/discourse-presence
!/plugins/discourse-lazy-videos/
!/plugins/automation/
!/plugins/discourse-lazy-videos
!/plugins/automation
/plugins/automation/gems
!/plugins/chat/
!/plugins/poll/
!/plugins/chat
!/plugins/poll
!/plugins/styleguide
!/plugins/spoiler-alert/
!/plugins/checklist/
!/plugins/footnote/
/plugins/*/auto_generated/
!/plugins/spoiler-alert
!/plugins/checklist
!/plugins/footnote
/plugins/*/auto_generated
/spec/fixtures/plugins/my_plugin/auto_generated
@ -71,7 +71,7 @@ yarn-error.log
# Linting artifacts
.eslintcache
/lint-progress/
/lint-progress
# Auto-generated plugin JS assets
/app/assets/javascripts/plugins/*