mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 13:00:58 +00:00
![Ryan Zoeller](/assets/img/avatar_default.png)
Associate the .mak extension with the Make language. This extension is commonly used for files included by Makefiles, and is recognized by GitHub's language detection: 32ec19c013/lib/linguist/languages.yml (L3282)
.
This PR fixes #122613.
Tested change by created a file with the .mak extension, and opening it in VS Code. The Language Mode was automatically set to 'Makefile'.
57 lines
1.2 KiB
JSON
57 lines
1.2 KiB
JSON
{
|
|
"name": "make",
|
|
"displayName": "%displayName%",
|
|
"description": "%description%",
|
|
"version": "1.0.0",
|
|
"publisher": "vscode",
|
|
"license": "MIT",
|
|
"engines": {
|
|
"vscode": "*"
|
|
},
|
|
"scripts": {
|
|
"update-grammar": "node ../node_modules/vscode-grammar-updater/bin fadeevab/make.tmbundle Syntaxes/Makefile.plist ./syntaxes/make.tmLanguage.json"
|
|
},
|
|
"contributes": {
|
|
"languages": [
|
|
{
|
|
"id": "makefile",
|
|
"aliases": [
|
|
"Makefile",
|
|
"makefile"
|
|
],
|
|
"extensions": [
|
|
".mak",
|
|
".mk"
|
|
],
|
|
"filenames": [
|
|
"Makefile",
|
|
"makefile",
|
|
"GNUmakefile",
|
|
"OCamlMakefile"
|
|
],
|
|
"firstLine": "^#!\\s*/usr/bin/make",
|
|
"configuration": "./language-configuration.json"
|
|
}
|
|
],
|
|
"grammars": [
|
|
{
|
|
"language": "makefile",
|
|
"scopeName": "source.makefile",
|
|
"path": "./syntaxes/make.tmLanguage.json",
|
|
"tokenTypes": {
|
|
"string.interpolated": "other"
|
|
}
|
|
}
|
|
],
|
|
"configurationDefaults": {
|
|
"[makefile]": {
|
|
"editor.insertSpaces": false
|
|
}
|
|
}
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/microsoft/vscode.git"
|
|
}
|
|
}
|