mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-28 04:23:32 +01:00
Add dotenv support (#273074)
* Add dotenv support This adds basic language support for the dotenv language. This includes syntax highlighting and a language configuration file. The dotenv language is applied to files with the `.env` extension, files named `.env`, `.flaskenv`, or `user-dirs.dirs`, and file names starting with `.env.`. The grammar is downloaded from https://github.com/dotenv-org/dotenv-vscode. Closes #267333 * Add tests * Remove ini and shellscript language conflicting with dotenv --------- Co-authored-by: Alex Ross <38270282+alexr00@users.noreply.github.com>
This commit is contained in:
48
extensions/dotenv/package.json
Normal file
48
extensions/dotenv/package.json
Normal file
@@ -0,0 +1,48 @@
|
||||
{
|
||||
"name": "dotenv",
|
||||
"displayName": "%displayName%",
|
||||
"description": "%description%",
|
||||
"version": "1.0.0",
|
||||
"publisher": "vscode",
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"vscode": "*"
|
||||
},
|
||||
"scripts": {
|
||||
"update-grammar": "node ../node_modules/vscode-grammar-updater/bin dotenv-org/dotenv-vscode syntaxes/dotenv.tmLanguage.json ./syntaxes/dotenv.tmLanguage.json"
|
||||
},
|
||||
"categories": ["Programming Languages"],
|
||||
"contributes": {
|
||||
"languages": [
|
||||
{
|
||||
"id": "dotenv",
|
||||
"extensions": [
|
||||
".env"
|
||||
],
|
||||
"filenames": [
|
||||
".env",
|
||||
".flaskenv",
|
||||
"user-dirs.dirs"
|
||||
],
|
||||
"filenamePatterns": [
|
||||
".env.*"
|
||||
],
|
||||
"aliases": [
|
||||
"Dotenv"
|
||||
],
|
||||
"configuration": "./language-configuration.json"
|
||||
}
|
||||
],
|
||||
"grammars": [
|
||||
{
|
||||
"language": "dotenv",
|
||||
"scopeName": "source.dotenv",
|
||||
"path": "./syntaxes/dotenv.tmLanguage.json"
|
||||
}
|
||||
]
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/microsoft/vscode.git"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user