Skip to content

Commit 93a6105

Browse files
committed
Extract git syntaxes/grammars into a separate extension
2 parents 2be31ee + fff34ad commit 93a6105

17 files changed

Lines changed: 116 additions & 57 deletions

extensions/git-base/.vscodeignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
build/**
2+
cgmanifest.json
File renamed without changes.
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{
2+
"registrations": [
3+
{
4+
"component": {
5+
"type": "git",
6+
"git": {
7+
"name": "textmate/git.tmbundle",
8+
"repositoryUrl": "https://github.com/textmate/git.tmbundle",
9+
"commitHash": "5870cf3f8abad3a6637bdf69250b5d2ded427dc4"
10+
}
11+
},
12+
"licenseDetail": [
13+
"Copyright (c) 2008 Tim Harper",
14+
"",
15+
"Permission is hereby granted, free of charge, to any person obtaining",
16+
"a copy of this software and associated documentation files (the\"",
17+
"Software\"), to deal in the Software without restriction, including",
18+
"without limitation the rights to use, copy, modify, merge, publish,",
19+
"distribute, sublicense, and/or sell copies of the Software, and to",
20+
"permit persons to whom the Software is furnished to do so, subject to",
21+
"the following conditions:",
22+
"",
23+
"The above copyright notice and this permission notice shall be",
24+
"included in all copies or substantial portions of the Software.",
25+
"",
26+
"THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,",
27+
"EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF",
28+
"MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND",
29+
"NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE",
30+
"LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION",
31+
"OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION",
32+
"WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE."
33+
],
34+
"license": "MIT",
35+
"version": "0.0.0"
36+
}
37+
],
38+
"version": 1
39+
}

extensions/git/languages/git-commit.language-configuration.json renamed to extensions/git-base/languages/git-commit.language-configuration.json

File renamed without changes.

extensions/git/languages/git-rebase.language-configuration.json renamed to extensions/git-base/languages/git-rebase.language-configuration.json

File renamed without changes.

extensions/git/languages/ignore.language-configuration.json renamed to extensions/git-base/languages/ignore.language-configuration.json

File renamed without changes.

extensions/git-base/package.json

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
{
2+
"name": "git-base",
3+
"displayName": "%displayName%",
4+
"description": "%description%",
5+
"version": "1.0.0",
6+
"publisher": "vscode",
7+
"license": "MIT",
8+
"engines": {
9+
"vscode": "0.10.x"
10+
},
11+
"scripts": {
12+
"update-grammar": "node ./build/update-grammars.js"
13+
},
14+
"contributes": {
15+
"languages": [
16+
{
17+
"id": "git-commit",
18+
"aliases": [
19+
"Git Commit Message",
20+
"git-commit"
21+
],
22+
"filenames": [
23+
"COMMIT_EDITMSG",
24+
"MERGE_MSG"
25+
],
26+
"configuration": "./languages/git-commit.language-configuration.json"
27+
},
28+
{
29+
"id": "git-rebase",
30+
"aliases": [
31+
"Git Rebase Message",
32+
"git-rebase"
33+
],
34+
"filenames": [
35+
"git-rebase-todo"
36+
],
37+
"configuration": "./languages/git-rebase.language-configuration.json"
38+
},
39+
{
40+
"id": "ignore",
41+
"aliases": [
42+
"Ignore",
43+
"ignore"
44+
],
45+
"extensions": [
46+
".gitignore_global",
47+
".gitignore"
48+
],
49+
"configuration": "./languages/ignore.language-configuration.json"
50+
}
51+
],
52+
"grammars": [
53+
{
54+
"language": "git-commit",
55+
"scopeName": "text.git-commit",
56+
"path": "./syntaxes/git-commit.tmLanguage.json"
57+
},
58+
{
59+
"language": "git-rebase",
60+
"scopeName": "text.git-rebase",
61+
"path": "./syntaxes/git-rebase.tmLanguage.json"
62+
},
63+
{
64+
"language": "ignore",
65+
"scopeName": "source.ignore",
66+
"path": "./syntaxes/ignore.tmLanguage.json"
67+
}
68+
]
69+
}
70+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"displayName": "Git Base",
3+
"description": "Git static contributions and pickers."
4+
}
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)