From 004dabd84fbb0b4e17638e2c504a4a0ba0a87913 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9gis=20Hanol?= Date: Wed, 22 May 2024 12:33:01 +0200 Subject: [PATCH] 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. --- .gitignore | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/.gitignore b/.gitignore index d576b73cc0e..932d850627a 100644 --- a/.gitignore +++ b/.gitignore @@ -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/*