dotenv-vscode
dotenv-vscode copied to clipboard
Add support for custom file associations
Related to #103
Introduces custom file associations for dotenv
files through settings.json
, enhancing flexibility and user configuration options.
-
Package.json Updates:
- Adds a new configuration setting
dotenv.files.associations
to allow users to define custom file associations fordotenv
files. - Updates
activationEvents
to includeonLanguage:dotenv
, ensuring the extension activates for custom file associations.
- Adds a new configuration setting
-
Code Logic Enhancement:
- Modifies
lib/fileAssociations.js
to read custom file associations fromsettings.json
and merges them with default associations. This allows for dynamic association of files with thedotenv
language based on user preferences.
- Modifies
-
Documentation:
- Updates
README.md
to include instructions on how to define custom file associations fordotenv
files insettings.json
, providing clear guidance for users to leverage this new feature.
- Updates
I needed this feature for allowing files like .dev.vars
to be cloaked during stream. Used copilot workspace to make a PR
For more details, open the Copilot Workspace session.