@codingame/monaco-vscode-javascript-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.
@@ -1,202 +0,0 @@
1
- {
2
- // Note that this file should stay in sync with 'typescript-language-basics/language-configuration.json'
3
- "comments": {
4
- "lineComment": "//",
5
- "blockComment": [
6
- "/*",
7
- "*/"
8
- ]
9
- },
10
- "brackets": [
11
- [
12
- "${",
13
- "}"
14
- ],
15
- [
16
- "{",
17
- "}"
18
- ],
19
- [
20
- "[",
21
- "]"
22
- ],
23
- [
24
- "(",
25
- ")"
26
- ]
27
- ],
28
- "autoClosingPairs": [
29
- {
30
- "open": "{",
31
- "close": "}"
32
- },
33
- {
34
- "open": "[",
35
- "close": "]"
36
- },
37
- {
38
- "open": "(",
39
- "close": ")"
40
- },
41
- {
42
- "open": "'",
43
- "close": "'",
44
- "notIn": [
45
- "string",
46
- "comment"
47
- ]
48
- },
49
- {
50
- "open": "\"",
51
- "close": "\"",
52
- "notIn": [
53
- "string"
54
- ]
55
- },
56
- {
57
- "open": "`",
58
- "close": "`",
59
- "notIn": [
60
- "string",
61
- "comment"
62
- ]
63
- },
64
- {
65
- "open": "/**",
66
- "close": " */",
67
- "notIn": [
68
- "string"
69
- ]
70
- }
71
- ],
72
- "surroundingPairs": [
73
- [
74
- "{",
75
- "}"
76
- ],
77
- [
78
- "[",
79
- "]"
80
- ],
81
- [
82
- "(",
83
- ")"
84
- ],
85
- [
86
- "'",
87
- "'"
88
- ],
89
- [
90
- "\"",
91
- "\""
92
- ],
93
- [
94
- "`",
95
- "`"
96
- ],
97
- [
98
- "<",
99
- ">"
100
- ]
101
- ],
102
- "autoCloseBefore": ";:.,=}])>` \n\t",
103
- "folding": {
104
- "markers": {
105
- "start": "^\\s*//\\s*#?region\\b",
106
- "end": "^\\s*//\\s*#?endregion\\b"
107
- }
108
- },
109
- "wordPattern": {
110
- "pattern": "(-?\\d*\\.\\d\\w*)|([^\\`\\~\\@\\!\\%\\^\\&\\*\\(\\)\\-\\=\\+\\[\\{\\]\\}\\\\\\|\\;\\:\\'\\\"\\,\\.\\<\\>/\\?\\s]+)",
111
- },
112
- "indentationRules": {
113
- "decreaseIndentPattern": {
114
- "pattern": "^((?!.*?/\\*).*\\*\/)?\\s*[\\}\\]].*$"
115
- },
116
- "increaseIndentPattern": {
117
- "pattern": "^((?!//).)*(\\{([^}\"'`/]*|(\\t|[ ])*//.*)|\\([^)\"'`/]*|\\[[^\\]\"'`/]*)$"
118
- },
119
- // e.g. * ...| or */| or *-----*/|
120
- "unIndentedLinePattern": {
121
- "pattern": "^(\\t|[ ])*[ ]\\*[^/]*\\*/\\s*$|^(\\t|[ ])*[ ]\\*/\\s*$|^(\\t|[ ])*[ ]\\*([ ]([^\\*]|\\*(?!/))*)?$"
122
- }
123
- },
124
- "onEnterRules": [
125
- {
126
- // e.g. /** | */
127
- "beforeText": {
128
- "pattern": "^\\s*/\\*\\*(?!/)([^\\*]|\\*(?!/))*$"
129
- },
130
- "afterText": {
131
- "pattern": "^\\s*\\*/$"
132
- },
133
- "action": {
134
- "indent": "indentOutdent",
135
- "appendText": " * "
136
- }
137
- },
138
- {
139
- // e.g. /** ...|
140
- "beforeText": {
141
- "pattern": "^\\s*/\\*\\*(?!/)([^\\*]|\\*(?!/))*$"
142
- },
143
- "action": {
144
- "indent": "none",
145
- "appendText": " * "
146
- }
147
- },
148
- {
149
- // e.g. * ...|
150
- "beforeText": {
151
- "pattern": "^(\\t|[ ])*[ ]\\*([ ]([^\\*]|\\*(?!/))*)?$"
152
- },
153
- "previousLineText": {
154
- "pattern": "(?=^(\\s*(/\\*\\*|\\*)).*)(?=(?!(\\s*\\*/)))"
155
- },
156
- "action": {
157
- "indent": "none",
158
- "appendText": "* "
159
- }
160
- },
161
- {
162
- // e.g. */|
163
- "beforeText": {
164
- "pattern": "^(\\t|[ ])*[ ]\\*/\\s*$"
165
- },
166
- "action": {
167
- "indent": "none",
168
- "removeText": 1
169
- },
170
- },
171
- {
172
- // e.g. *-----*/|
173
- "beforeText": {
174
- "pattern": "^(\\t|[ ])*[ ]\\*[^/]*\\*/\\s*$"
175
- },
176
- "action": {
177
- "indent": "none",
178
- "removeText": 1
179
- },
180
- },
181
- {
182
- "beforeText": {
183
- "pattern": "^\\s*(\\bcase\\s.+:|\\bdefault:)$"
184
- },
185
- "afterText": {
186
- "pattern": "^(?!\\s*(\\bcase\\b|\\bdefault\\b))"
187
- },
188
- "action": {
189
- "indent": "indent"
190
- }
191
- },
192
- {
193
- // Decrease indentation after single line if/else if/else, for, or while
194
- "previousLineText": "^\\s*(((else ?)?if|for|while)\\s*\\(.*\\)\\s*|else\\s*)$",
195
- // But make sure line doesn't have braces or is not another if statement
196
- "beforeText": "^\\s+([^{i\\s]|i(?!f\\b))",
197
- "action": {
198
- "indent": "outdent"
199
- }
200
- }
201
- ]
202
- }
@@ -1,203 +0,0 @@
1
- {
2
- "define module": {
3
- "prefix": "define",
4
- "body": [
5
- "define([",
6
- "\t'require',",
7
- "\t'${1:dependency}'",
8
- "], function(require, ${2:factory}) {",
9
- "\t'use strict';",
10
- "\t$0",
11
- "});"
12
- ],
13
- "description": "define module"
14
- },
15
- "For Loop": {
16
- "prefix": "for",
17
- "body": [
18
- "for (let ${1:index} = 0; ${1:index} < ${2:array}.length; ${1:index}++) {",
19
- "\tconst ${3:element} = ${2:array}[${1:index}];",
20
- "\t$TM_SELECTED_TEXT$0",
21
- "}"
22
- ],
23
- "description": "For Loop"
24
- },
25
- "For-Each Loop": {
26
- "prefix": "foreach",
27
- "body": [
28
- "${1:array}.forEach(${2:element} => {",
29
- "\t$TM_SELECTED_TEXT$0",
30
- "});"
31
- ],
32
- "description": "For-Each Loop"
33
- },
34
- "For-In Loop": {
35
- "prefix": "forin",
36
- "body": [
37
- "for (const ${1:key} in ${2:object}) {",
38
- "\tif (Object.hasOwnProperty.call(${2:object}, ${1:key})) {",
39
- "\t\tconst ${3:element} = ${2:object}[${1:key}];",
40
- "\t\t$TM_SELECTED_TEXT$0",
41
- "\t}",
42
- "}"
43
- ],
44
- "description": "For-In Loop"
45
- },
46
- "For-Of Loop": {
47
- "prefix": "forof",
48
- "body": [
49
- "for (const ${1:iterator} of ${2:object}) {",
50
- "\t$TM_SELECTED_TEXT$0",
51
- "}"
52
- ],
53
- "description": "For-Of Loop"
54
- },
55
- "Function Statement": {
56
- "prefix": "function",
57
- "body": [
58
- "function ${1:name}(${2:params}) {",
59
- "\t$TM_SELECTED_TEXT$0",
60
- "}"
61
- ],
62
- "description": "Function Statement"
63
- },
64
- "If Statement": {
65
- "prefix": "if",
66
- "body": [
67
- "if (${1:condition}) {",
68
- "\t$TM_SELECTED_TEXT$0",
69
- "}"
70
- ],
71
- "description": "If Statement"
72
- },
73
- "If-Else Statement": {
74
- "prefix": "ifelse",
75
- "body": [
76
- "if (${1:condition}) {",
77
- "\t$TM_SELECTED_TEXT$0",
78
- "} else {",
79
- "\t",
80
- "}"
81
- ],
82
- "description": "If-Else Statement"
83
- },
84
- "New Statement": {
85
- "prefix": "new",
86
- "body": [
87
- "const ${1:name} = new ${2:type}(${3:arguments});$0"
88
- ],
89
- "description": "New Statement"
90
- },
91
- "Switch Statement": {
92
- "prefix": "switch",
93
- "body": [
94
- "switch (${1:key}) {",
95
- "\tcase ${2:value}:",
96
- "\t\t$0",
97
- "\t\tbreak;",
98
- "",
99
- "\tdefault:",
100
- "\t\tbreak;",
101
- "}"
102
- ],
103
- "description": "Switch Statement"
104
- },
105
- "While Statement": {
106
- "prefix": "while",
107
- "body": [
108
- "while (${1:condition}) {",
109
- "\t$TM_SELECTED_TEXT$0",
110
- "}"
111
- ],
112
- "description": "While Statement"
113
- },
114
- "Do-While Statement": {
115
- "prefix": "dowhile",
116
- "body": [
117
- "do {",
118
- "\t$TM_SELECTED_TEXT$0",
119
- "} while (${1:condition});"
120
- ],
121
- "description": "Do-While Statement"
122
- },
123
- "Try-Catch Statement": {
124
- "prefix": "trycatch",
125
- "body": [
126
- "try {",
127
- "\t$TM_SELECTED_TEXT$0",
128
- "} catch (${1:error}) {",
129
- "\t",
130
- "}"
131
- ],
132
- "description": "Try-Catch Statement"
133
- },
134
- "Set Timeout Function": {
135
- "prefix": "settimeout",
136
- "body": [
137
- "setTimeout(() => {",
138
- "\t$TM_SELECTED_TEXT$0",
139
- "}, ${1:timeout});"
140
- ],
141
- "description": "Set Timeout Function"
142
- },
143
- "Set Interval Function": {
144
- "prefix": "setinterval",
145
- "body": [
146
- "setInterval(() => {",
147
- "\t$TM_SELECTED_TEXT$0",
148
- "}, ${1:interval});"
149
- ],
150
- "description": "Set Interval Function"
151
- },
152
- "Import Statement": {
153
- "prefix": "import",
154
- "body": [
155
- "import { $0 } from \"${1:module}\";"
156
- ],
157
- "description": "Import external module"
158
- },
159
- "Region Start": {
160
- "prefix": "#region",
161
- "body": [
162
- "//#region $0"
163
- ],
164
- "description": "Folding Region Start"
165
- },
166
- "Region End": {
167
- "prefix": "#endregion",
168
- "body": [
169
- "//#endregion"
170
- ],
171
- "description": "Folding Region End"
172
- },
173
- "Log to the console": {
174
- "prefix": "log",
175
- "body": [
176
- "console.log($1);"
177
- ],
178
- "description": "Log to the console"
179
- },
180
- "Log warning to console": {
181
- "prefix": "warn",
182
- "body": [
183
- "console.warn($1);"
184
- ],
185
- "description": "Log warning to the console"
186
- },
187
- "Log error to console": {
188
- "prefix": "error",
189
- "body": [
190
- "console.error($1);"
191
- ],
192
- "description": "Log error to the console"
193
- },
194
- "new Promise": {
195
- "prefix": "newpromise",
196
- "body": [
197
- "new Promise((resolve, reject) => {",
198
- "\t$TM_SELECTED_TEXT$0",
199
- "})"
200
- ],
201
- "description": "Create a new Promise"
202
- }
203
- }
package/package.nls.json DELETED
@@ -1,4 +0,0 @@
1
- {
2
- "displayName": "JavaScript Language Basics",
3
- "description": "Provides snippets, syntax highlighting, bracket matching and folding in JavaScript files."
4
- }
@@ -1,152 +0,0 @@
1
- {
2
- "comments": {
3
- "blockComment": [
4
- "{/*",
5
- "*/}"
6
- ]
7
- },
8
- "brackets": [
9
- [
10
- "{",
11
- "}"
12
- ],
13
- [
14
- "[",
15
- "]"
16
- ],
17
- [
18
- "(",
19
- ")"
20
- ],
21
- [
22
- "<",
23
- ">"
24
- ]
25
- ],
26
- "colorizedBracketPairs": [
27
- [
28
- "{",
29
- "}"
30
- ],
31
- [
32
- "[",
33
- "]"
34
- ],
35
- [
36
- "(",
37
- ")"
38
- ]
39
- ],
40
- "autoClosingPairs": [
41
- {
42
- "open": "{",
43
- "close": "}"
44
- },
45
- {
46
- "open": "[",
47
- "close": "]"
48
- },
49
- {
50
- "open": "(",
51
- "close": ")"
52
- },
53
- {
54
- "open": "'",
55
- "close": "'",
56
- "notIn": [
57
- "string",
58
- "comment"
59
- ]
60
- },
61
- {
62
- "open": "\"",
63
- "close": "\"",
64
- "notIn": [
65
- "string"
66
- ]
67
- },
68
- {
69
- "open": "/**",
70
- "close": " */",
71
- "notIn": [
72
- "string"
73
- ]
74
- }
75
- ],
76
- "surroundingPairs": [
77
- [
78
- "{",
79
- "}"
80
- ],
81
- [
82
- "[",
83
- "]"
84
- ],
85
- [
86
- "(",
87
- ")"
88
- ],
89
- [
90
- "<",
91
- ">"
92
- ],
93
- [
94
- "'",
95
- "'"
96
- ],
97
- [
98
- "\"",
99
- "\""
100
- ]
101
- ],
102
- "wordPattern": {
103
- "pattern": "(-?\\d*\\.\\d\\w*)|([^\\`\\~\\!\\@\\$\\^\\&\\*\\(\\)\\=\\+\\[\\{\\]\\}\\\\\\|\\;\\:'\"\\,\\.\\<\\>\\/\\s]+)"
104
- },
105
- "onEnterRules": [
106
- {
107
- "beforeText": {
108
- "pattern": "<(?!(?:area|base|br|col|embed|hr|img|input|keygen|link|menuitem|meta|param|source|track|wbr))([_:\\w][_:\\w\\-.\\d]*)([^/>]*(?!/)>)[^<]*$",
109
- "flags": "i"
110
- },
111
- "afterText": {
112
- "pattern": "^<\\/([_:\\w][_:\\w-.\\d]*)\\s*>$",
113
- "flags": "i"
114
- },
115
- "action": {
116
- "indent": "indentOutdent"
117
- }
118
- },
119
- {
120
- "beforeText": {
121
- "pattern": "<(?!(?:area|base|br|col|embed|hr|img|input|keygen|link|menuitem|meta|param|source|track|wbr))([_:\\w][_:\\w\\-.\\d]*)([^/>]*(?!/)>)[^<]*$",
122
- "flags": "i"
123
- },
124
- "action": {
125
- "indent": "indent"
126
- }
127
- },
128
- {
129
- // `beforeText` only applies to tokens of a given language. Since we are dealing with jsx-tags,
130
- // make sure we apply to the closing `>` of a tag so that mixed language spans
131
- // such as `<div onclick={1}>` are handled properly.
132
- "beforeText": {
133
- "pattern": "^>$"
134
- },
135
- "afterText": {
136
- "pattern": "^<\\/([_:\\w][_:\\w-.\\d]*)\\s*>$",
137
- "flags": "i"
138
- },
139
- "action": {
140
- "indent": "indentOutdent"
141
- }
142
- },
143
- {
144
- "beforeText": {
145
- "pattern": "^>$"
146
- },
147
- "action": {
148
- "indent": "indent"
149
- }
150
- }
151
- ],
152
- }