@codingame/monaco-vscode-diff-default-extension 1.85.1 → 1.85.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +4 -3
- package/package.json +2 -2
- package/resources/diff.tmLanguage.json +1 -0
- package/resources/language-configuration.json +1 -0
- package/resources/package.json +1 -0
- package/resources/package.nls.json +1 -0
- package/diff.tmLanguage.json +0 -160
- package/language-configuration.json +0 -11
- package/package.nls.json +0 -4
package/index.js
CHANGED
|
@@ -3,8 +3,9 @@ import { registerExtension } from 'vscode/extensions';
|
|
|
3
3
|
var manifest = {name:"diff",displayName:"%displayName%",description:"%description%",version:"1.0.0",publisher:"vscode",license:"MIT",engines:{vscode:"0.10.x"},scripts:{"update-grammar":"node ../node_modules/vscode-grammar-updater/bin textmate/diff.tmbundle Syntaxes/Diff.plist ./syntaxes/diff.tmLanguage.json"},contributes:{languages:[{id:"diff",aliases:["Diff","diff"],extensions:[".diff",".patch",".rej"],configuration:"./language-configuration.json"}],grammars:[{language:"diff",scopeName:"source.diff",path:"./syntaxes/diff.tmLanguage.json"}]},main:undefined};
|
|
4
4
|
|
|
5
5
|
const { registerFileUrl, whenReady } = registerExtension(manifest);
|
|
6
|
-
registerFileUrl('
|
|
7
|
-
registerFileUrl('
|
|
8
|
-
registerFileUrl('package.nls.json', new URL('./package.nls.json', import.meta.url).toString(), 'application/json');
|
|
6
|
+
registerFileUrl('language-configuration.json', new URL('./resources/language-configuration.json', import.meta.url).toString(), 'application/json');
|
|
7
|
+
registerFileUrl('package.json', new URL('./resources/package.json', import.meta.url).toString(), 'application/json');
|
|
8
|
+
registerFileUrl('package.nls.json', new URL('./resources/package.nls.json', import.meta.url).toString(), 'application/json');
|
|
9
|
+
registerFileUrl('syntaxes/diff.tmLanguage.json', new URL('./resources/diff.tmLanguage.json', import.meta.url).toString(), 'application/json');
|
|
9
10
|
|
|
10
11
|
export { whenReady };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-diff-default-extension",
|
|
3
|
-
"version": "1.85.
|
|
3
|
+
"version": "1.85.3",
|
|
4
4
|
"keywords": [],
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "CodinGame",
|
|
@@ -18,6 +18,6 @@
|
|
|
18
18
|
"module": "index.js",
|
|
19
19
|
"types": "index.d.ts",
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"vscode": "npm:@codingame/monaco-vscode-api@1.85.
|
|
21
|
+
"vscode": "npm:@codingame/monaco-vscode-api@1.85.3"
|
|
22
22
|
}
|
|
23
23
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"information_for_contributors":["This file has been converted from https://github.com/textmate/diff.tmbundle/blob/master/Syntaxes/Diff.plist","If you want to provide a fix or improvement, please create a pull request against the original repository.","Once accepted there, we are happy to receive an update request."],"version":"https://github.com/textmate/diff.tmbundle/commit/0593bb775eab1824af97ef2172fd38822abd97d7","name":"Diff","scopeName":"source.diff","patterns":[{"captures":{"1":{"name":"punctuation.definition.separator.diff"}},"match":"^((\\*{15})|(={67})|(-{3}))$\\n?","name":"meta.separator.diff"},{"match":"^\\d+(,\\d+)*(a|d|c)\\d+(,\\d+)*$\\n?","name":"meta.diff.range.normal"},{"captures":{"1":{"name":"punctuation.definition.range.diff"},"2":{"name":"meta.toc-list.line-number.diff"},"3":{"name":"punctuation.definition.range.diff"}},"match":"^(@@)\\s*(.+?)\\s*(@@)($\\n?)?","name":"meta.diff.range.unified"},{"captures":{"3":{"name":"punctuation.definition.range.diff"},"4":{"name":"punctuation.definition.range.diff"},"6":{"name":"punctuation.definition.range.diff"},"7":{"name":"punctuation.definition.range.diff"}},"match":"^(((\\-{3}) .+ (\\-{4}))|((\\*{3}) .+ (\\*{4})))$\\n?","name":"meta.diff.range.context"},{"match":"^diff --git a/.*$\\n?","name":"meta.diff.header.git"},{"match":"^diff (-|\\S+\\s+\\S+).*$\\n?","name":"meta.diff.header.command"},{"captures":{"4":{"name":"punctuation.definition.from-file.diff"},"6":{"name":"punctuation.definition.from-file.diff"},"7":{"name":"punctuation.definition.from-file.diff"}},"match":"(^(((-{3}) .+)|((\\*{3}) .+))$\\n?|^(={4}) .+(?= - ))","name":"meta.diff.header.from-file"},{"captures":{"2":{"name":"punctuation.definition.to-file.diff"},"3":{"name":"punctuation.definition.to-file.diff"},"4":{"name":"punctuation.definition.to-file.diff"}},"match":"(^(\\+{3}) .+$\\n?| (-) .* (={4})$\\n?)","name":"meta.diff.header.to-file"},{"captures":{"3":{"name":"punctuation.definition.inserted.diff"},"6":{"name":"punctuation.definition.inserted.diff"}},"match":"^(((>)( .*)?)|((\\+).*))$\\n?","name":"markup.inserted.diff"},{"captures":{"1":{"name":"punctuation.definition.changed.diff"}},"match":"^(!).*$\\n?","name":"markup.changed.diff"},{"captures":{"3":{"name":"punctuation.definition.deleted.diff"},"6":{"name":"punctuation.definition.deleted.diff"}},"match":"^(((<)( .*)?)|((-).*))$\\n?","name":"markup.deleted.diff"},{"begin":"^(#)","captures":{"1":{"name":"punctuation.definition.comment.diff"}},"comment":"Git produces unified diffs with embedded comments\"","end":"\\n","name":"comment.line.number-sign.diff"},{"match":"^index [0-9a-f]{7,40}\\.\\.[0-9a-f]{7,40}.*$\\n?","name":"meta.diff.index.git"},{"captures":{"1":{"name":"punctuation.separator.key-value.diff"},"2":{"name":"meta.toc-list.file-name.diff"}},"match":"^Index(:) (.+)$\\n?","name":"meta.diff.index"},{"match":"^Only in .*: .*$\\n?","name":"meta.diff.only-in"}]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"comments":{"lineComment":"#","blockComment":["#"," "]},"brackets":[["{","}"],["[","]"],["(",")"]]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"name":"diff","displayName":"%displayName%","description":"%description%","version":"1.0.0","publisher":"vscode","license":"MIT","engines":{"vscode":"0.10.x"},"scripts":{"update-grammar":"node ../node_modules/vscode-grammar-updater/bin textmate/diff.tmbundle Syntaxes/Diff.plist ./syntaxes/diff.tmLanguage.json"},"contributes":{"languages":[{"id":"diff","aliases":["Diff","diff"],"extensions":[".diff",".patch",".rej"],"configuration":"./language-configuration.json"}],"grammars":[{"language":"diff","scopeName":"source.diff","path":"./syntaxes/diff.tmLanguage.json"}]}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"displayName":"Diff Language Basics","description":"Provides syntax highlighting & bracket matching in Diff files."}
|
package/diff.tmLanguage.json
DELETED
|
@@ -1,160 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"information_for_contributors": [
|
|
3
|
-
"This file has been converted from https://github.com/textmate/diff.tmbundle/blob/master/Syntaxes/Diff.plist",
|
|
4
|
-
"If you want to provide a fix or improvement, please create a pull request against the original repository.",
|
|
5
|
-
"Once accepted there, we are happy to receive an update request."
|
|
6
|
-
],
|
|
7
|
-
"version": "https://github.com/textmate/diff.tmbundle/commit/0593bb775eab1824af97ef2172fd38822abd97d7",
|
|
8
|
-
"name": "Diff",
|
|
9
|
-
"scopeName": "source.diff",
|
|
10
|
-
"patterns": [
|
|
11
|
-
{
|
|
12
|
-
"captures": {
|
|
13
|
-
"1": {
|
|
14
|
-
"name": "punctuation.definition.separator.diff"
|
|
15
|
-
}
|
|
16
|
-
},
|
|
17
|
-
"match": "^((\\*{15})|(={67})|(-{3}))$\\n?",
|
|
18
|
-
"name": "meta.separator.diff"
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
"match": "^\\d+(,\\d+)*(a|d|c)\\d+(,\\d+)*$\\n?",
|
|
22
|
-
"name": "meta.diff.range.normal"
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
"captures": {
|
|
26
|
-
"1": {
|
|
27
|
-
"name": "punctuation.definition.range.diff"
|
|
28
|
-
},
|
|
29
|
-
"2": {
|
|
30
|
-
"name": "meta.toc-list.line-number.diff"
|
|
31
|
-
},
|
|
32
|
-
"3": {
|
|
33
|
-
"name": "punctuation.definition.range.diff"
|
|
34
|
-
}
|
|
35
|
-
},
|
|
36
|
-
"match": "^(@@)\\s*(.+?)\\s*(@@)($\\n?)?",
|
|
37
|
-
"name": "meta.diff.range.unified"
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
"captures": {
|
|
41
|
-
"3": {
|
|
42
|
-
"name": "punctuation.definition.range.diff"
|
|
43
|
-
},
|
|
44
|
-
"4": {
|
|
45
|
-
"name": "punctuation.definition.range.diff"
|
|
46
|
-
},
|
|
47
|
-
"6": {
|
|
48
|
-
"name": "punctuation.definition.range.diff"
|
|
49
|
-
},
|
|
50
|
-
"7": {
|
|
51
|
-
"name": "punctuation.definition.range.diff"
|
|
52
|
-
}
|
|
53
|
-
},
|
|
54
|
-
"match": "^(((\\-{3}) .+ (\\-{4}))|((\\*{3}) .+ (\\*{4})))$\\n?",
|
|
55
|
-
"name": "meta.diff.range.context"
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
"match": "^diff --git a/.*$\\n?",
|
|
59
|
-
"name": "meta.diff.header.git"
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
"match": "^diff (-|\\S+\\s+\\S+).*$\\n?",
|
|
63
|
-
"name": "meta.diff.header.command"
|
|
64
|
-
},
|
|
65
|
-
{
|
|
66
|
-
"captures": {
|
|
67
|
-
"4": {
|
|
68
|
-
"name": "punctuation.definition.from-file.diff"
|
|
69
|
-
},
|
|
70
|
-
"6": {
|
|
71
|
-
"name": "punctuation.definition.from-file.diff"
|
|
72
|
-
},
|
|
73
|
-
"7": {
|
|
74
|
-
"name": "punctuation.definition.from-file.diff"
|
|
75
|
-
}
|
|
76
|
-
},
|
|
77
|
-
"match": "(^(((-{3}) .+)|((\\*{3}) .+))$\\n?|^(={4}) .+(?= - ))",
|
|
78
|
-
"name": "meta.diff.header.from-file"
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
"captures": {
|
|
82
|
-
"2": {
|
|
83
|
-
"name": "punctuation.definition.to-file.diff"
|
|
84
|
-
},
|
|
85
|
-
"3": {
|
|
86
|
-
"name": "punctuation.definition.to-file.diff"
|
|
87
|
-
},
|
|
88
|
-
"4": {
|
|
89
|
-
"name": "punctuation.definition.to-file.diff"
|
|
90
|
-
}
|
|
91
|
-
},
|
|
92
|
-
"match": "(^(\\+{3}) .+$\\n?| (-) .* (={4})$\\n?)",
|
|
93
|
-
"name": "meta.diff.header.to-file"
|
|
94
|
-
},
|
|
95
|
-
{
|
|
96
|
-
"captures": {
|
|
97
|
-
"3": {
|
|
98
|
-
"name": "punctuation.definition.inserted.diff"
|
|
99
|
-
},
|
|
100
|
-
"6": {
|
|
101
|
-
"name": "punctuation.definition.inserted.diff"
|
|
102
|
-
}
|
|
103
|
-
},
|
|
104
|
-
"match": "^(((>)( .*)?)|((\\+).*))$\\n?",
|
|
105
|
-
"name": "markup.inserted.diff"
|
|
106
|
-
},
|
|
107
|
-
{
|
|
108
|
-
"captures": {
|
|
109
|
-
"1": {
|
|
110
|
-
"name": "punctuation.definition.changed.diff"
|
|
111
|
-
}
|
|
112
|
-
},
|
|
113
|
-
"match": "^(!).*$\\n?",
|
|
114
|
-
"name": "markup.changed.diff"
|
|
115
|
-
},
|
|
116
|
-
{
|
|
117
|
-
"captures": {
|
|
118
|
-
"3": {
|
|
119
|
-
"name": "punctuation.definition.deleted.diff"
|
|
120
|
-
},
|
|
121
|
-
"6": {
|
|
122
|
-
"name": "punctuation.definition.deleted.diff"
|
|
123
|
-
}
|
|
124
|
-
},
|
|
125
|
-
"match": "^(((<)( .*)?)|((-).*))$\\n?",
|
|
126
|
-
"name": "markup.deleted.diff"
|
|
127
|
-
},
|
|
128
|
-
{
|
|
129
|
-
"begin": "^(#)",
|
|
130
|
-
"captures": {
|
|
131
|
-
"1": {
|
|
132
|
-
"name": "punctuation.definition.comment.diff"
|
|
133
|
-
}
|
|
134
|
-
},
|
|
135
|
-
"comment": "Git produces unified diffs with embedded comments\"",
|
|
136
|
-
"end": "\\n",
|
|
137
|
-
"name": "comment.line.number-sign.diff"
|
|
138
|
-
},
|
|
139
|
-
{
|
|
140
|
-
"match": "^index [0-9a-f]{7,40}\\.\\.[0-9a-f]{7,40}.*$\\n?",
|
|
141
|
-
"name": "meta.diff.index.git"
|
|
142
|
-
},
|
|
143
|
-
{
|
|
144
|
-
"captures": {
|
|
145
|
-
"1": {
|
|
146
|
-
"name": "punctuation.separator.key-value.diff"
|
|
147
|
-
},
|
|
148
|
-
"2": {
|
|
149
|
-
"name": "meta.toc-list.file-name.diff"
|
|
150
|
-
}
|
|
151
|
-
},
|
|
152
|
-
"match": "^Index(:) (.+)$\\n?",
|
|
153
|
-
"name": "meta.diff.index"
|
|
154
|
-
},
|
|
155
|
-
{
|
|
156
|
-
"match": "^Only in .*: .*$\\n?",
|
|
157
|
-
"name": "meta.diff.only-in"
|
|
158
|
-
}
|
|
159
|
-
]
|
|
160
|
-
}
|
package/package.nls.json
DELETED