Changesets · Branches · Tags · Compare
| Changeset | 89b0d08ea1d45d2e43049139ec471b632e212bf7ec91d16d427f5a7f58ccfe48 |
|---|---|
| Author | uinstinct <61635505+uinstinct@users.noreply.github.com> · 2025-07-11 10:21 +05:30 |
| Committer | uinstinct <61635505+uinstinct@users.noreply.github.com> · 2025-07-11 10:21 +05:30 |
| Parents | afb534f77e37 |
1 file changed
modified core/config/profile/doLoadConfig.ts +7 −1
| @@ -154,7 +154,13 @@ | ||
| 154 | 154 | newConfig.contextProviders.push(new RulesContextProvider({})); |
| 155 | 155 | |
| 156 | 156 | // Add current file as context if setting is enabled |
| 157 | - if (newConfig.experimental?.useCurrentFileAsContext === true) { | |
| 157 | + if ( | |
| 158 | + newConfig.experimental?.useCurrentFileAsContext === true && | |
| 159 | + !newConfig.contextProviders.find( | |
| 160 | + (c) => | |
| 161 | + c.description.title === CurrentFileContextProvider.description.title, | |
| 162 | + ) | |
| 163 | + ) { | |
| 158 | 164 | newConfig.contextProviders.push(new CurrentFileContextProvider({})); |
| 159 | 165 | } |
| 160 | 166 |