Skip to content

Commit d6eb216

Browse files
committed
Edits to make package.json to be digestible by VSCode
1 parent d094785 commit d6eb216

File tree

1 file changed

+21
-2
lines changed

1 file changed

+21
-2
lines changed

package.json

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
"version": "0.4.32",
44
"engines": {
55
"atom": "*",
6-
"node": "*"
6+
"node": "*",
7+
"vscode": ">=0.9.0-pre.1"
78
},
89
"repository": {
910
"type": "git",
@@ -13,5 +14,23 @@
1314
"url": "https://github.com/MagicStack/MagicPython/issues"
1415
},
1516
"description": "Syntax highlighter for cutting edge Python.",
16-
"license": "MIT"
17+
"license": "MIT",
18+
19+
"publisher": "MagicStack Inc.",
20+
"contributes": {
21+
"//": "This section is for VSCode",
22+
"languages": [{
23+
"id": "python",
24+
"aliases": ["MagicPython", "python"],
25+
"extensions": [
26+
".py",".py3",".rpy",".pyw",".cpy",
27+
".SConstruct",".Sconstruct",".sconstruct",".SConscript"
28+
]
29+
}],
30+
"grammars": [{
31+
"language": "python",
32+
"scopeName": "source.python",
33+
"path": "./grammars/MagicPython.tmLanguage"
34+
}]
35+
}
1736
}

0 commit comments

Comments
 (0)