@codingame/monaco-vscode-javascript-default-extension 1.81.8-next.1

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.
@@ -0,0 +1,237 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
+ <plist version="1.0">
4
+ <dict>
5
+ <key>fileTypes</key>
6
+ <array/>
7
+ <key>hideFromUser</key>
8
+ <true/>
9
+ <key>name</key>
10
+ <string>Regular Expressions (JavaScript)</string>
11
+ <key>patterns</key>
12
+ <array>
13
+ <dict>
14
+ <key>include</key>
15
+ <string>#regexp</string>
16
+ </dict>
17
+ </array>
18
+ <key>repository</key>
19
+ <dict>
20
+ <key>regex-character-class</key>
21
+ <dict>
22
+ <key>patterns</key>
23
+ <array>
24
+ <dict>
25
+ <key>match</key>
26
+ <string>\\[wWsSdD]|\.</string>
27
+ <key>name</key>
28
+ <string>constant.character.character-class.regexp</string>
29
+ </dict>
30
+ <dict>
31
+ <key>match</key>
32
+ <string>\\([0-7]{3}|x\h\h|u\h\h\h\h)</string>
33
+ <key>name</key>
34
+ <string>constant.character.numeric.regexp</string>
35
+ </dict>
36
+ <dict>
37
+ <key>match</key>
38
+ <string>\\c[A-Z]</string>
39
+ <key>name</key>
40
+ <string>constant.character.control.regexp</string>
41
+ </dict>
42
+ <dict>
43
+ <key>match</key>
44
+ <string>\\.</string>
45
+ <key>name</key>
46
+ <string>constant.character.escape.backslash.regexp</string>
47
+ </dict>
48
+ </array>
49
+ </dict>
50
+ <key>regexp</key>
51
+ <dict>
52
+ <key>patterns</key>
53
+ <array>
54
+ <dict>
55
+ <key>match</key>
56
+ <string>\\[bB]|\^|\$</string>
57
+ <key>name</key>
58
+ <string>keyword.control.anchor.regexp</string>
59
+ </dict>
60
+ <dict>
61
+ <key>match</key>
62
+ <string>\\[1-9]\d*</string>
63
+ <key>name</key>
64
+ <string>keyword.other.back-reference.regexp</string>
65
+ </dict>
66
+ <dict>
67
+ <key>match</key>
68
+ <string>[?+*]|\{(\d+,\d+|\d+,|,\d+|\d+)\}\??</string>
69
+ <key>name</key>
70
+ <string>keyword.operator.quantifier.regexp</string>
71
+ </dict>
72
+ <dict>
73
+ <key>match</key>
74
+ <string>\|</string>
75
+ <key>name</key>
76
+ <string>keyword.operator.or.regexp</string>
77
+ </dict>
78
+ <dict>
79
+ <key>begin</key>
80
+ <string>(\()((\?=)|(\?!))</string>
81
+ <key>beginCaptures</key>
82
+ <dict>
83
+ <key>1</key>
84
+ <dict>
85
+ <key>name</key>
86
+ <string>punctuation.definition.group.regexp</string>
87
+ </dict>
88
+ <key>3</key>
89
+ <dict>
90
+ <key>name</key>
91
+ <string>meta.assertion.look-ahead.regexp</string>
92
+ </dict>
93
+ <key>4</key>
94
+ <dict>
95
+ <key>name</key>
96
+ <string>meta.assertion.negative-look-ahead.regexp</string>
97
+ </dict>
98
+ </dict>
99
+ <key>end</key>
100
+ <string>(\))</string>
101
+ <key>endCaptures</key>
102
+ <dict>
103
+ <key>1</key>
104
+ <dict>
105
+ <key>name</key>
106
+ <string>punctuation.definition.group.regexp</string>
107
+ </dict>
108
+ </dict>
109
+ <key>name</key>
110
+ <string>meta.group.assertion.regexp</string>
111
+ <key>patterns</key>
112
+ <array>
113
+ <dict>
114
+ <key>include</key>
115
+ <string>#regexp</string>
116
+ </dict>
117
+ </array>
118
+ </dict>
119
+ <dict>
120
+ <key>begin</key>
121
+ <string>\((\?:)?</string>
122
+ <key>beginCaptures</key>
123
+ <dict>
124
+ <key>0</key>
125
+ <dict>
126
+ <key>name</key>
127
+ <string>punctuation.definition.group.regexp</string>
128
+ </dict>
129
+ </dict>
130
+ <key>end</key>
131
+ <string>\)</string>
132
+ <key>endCaptures</key>
133
+ <dict>
134
+ <key>0</key>
135
+ <dict>
136
+ <key>name</key>
137
+ <string>punctuation.definition.group.regexp</string>
138
+ </dict>
139
+ </dict>
140
+ <key>name</key>
141
+ <string>meta.group.regexp</string>
142
+ <key>patterns</key>
143
+ <array>
144
+ <dict>
145
+ <key>include</key>
146
+ <string>#regexp</string>
147
+ </dict>
148
+ </array>
149
+ </dict>
150
+ <dict>
151
+ <key>begin</key>
152
+ <string>(\[)(\^)?</string>
153
+ <key>beginCaptures</key>
154
+ <dict>
155
+ <key>1</key>
156
+ <dict>
157
+ <key>name</key>
158
+ <string>punctuation.definition.character-class.regexp</string>
159
+ </dict>
160
+ <key>2</key>
161
+ <dict>
162
+ <key>name</key>
163
+ <string>keyword.operator.negation.regexp</string>
164
+ </dict>
165
+ </dict>
166
+ <key>end</key>
167
+ <string>(\])</string>
168
+ <key>endCaptures</key>
169
+ <dict>
170
+ <key>1</key>
171
+ <dict>
172
+ <key>name</key>
173
+ <string>punctuation.definition.character-class.regexp</string>
174
+ </dict>
175
+ </dict>
176
+ <key>name</key>
177
+ <string>constant.other.character-class.set.regexp</string>
178
+ <key>patterns</key>
179
+ <array>
180
+ <dict>
181
+ <key>captures</key>
182
+ <dict>
183
+ <key>1</key>
184
+ <dict>
185
+ <key>name</key>
186
+ <string>constant.character.numeric.regexp</string>
187
+ </dict>
188
+ <key>2</key>
189
+ <dict>
190
+ <key>name</key>
191
+ <string>constant.character.control.regexp</string>
192
+ </dict>
193
+ <key>3</key>
194
+ <dict>
195
+ <key>name</key>
196
+ <string>constant.character.escape.backslash.regexp</string>
197
+ </dict>
198
+ <key>4</key>
199
+ <dict>
200
+ <key>name</key>
201
+ <string>constant.character.numeric.regexp</string>
202
+ </dict>
203
+ <key>5</key>
204
+ <dict>
205
+ <key>name</key>
206
+ <string>constant.character.control.regexp</string>
207
+ </dict>
208
+ <key>6</key>
209
+ <dict>
210
+ <key>name</key>
211
+ <string>constant.character.escape.backslash.regexp</string>
212
+ </dict>
213
+ </dict>
214
+ <key>match</key>
215
+ <string>(?:.|(\\(?:[0-7]{3}|x\h\h|u\h\h\h\h))|(\\c[A-Z])|(\\.))\-(?:[^\]\\]|(\\(?:[0-7]{3}|x\h\h|u\h\h\h\h))|(\\c[A-Z])|(\\.))</string>
216
+ <key>name</key>
217
+ <string>constant.other.character-class.range.regexp</string>
218
+ </dict>
219
+ <dict>
220
+ <key>include</key>
221
+ <string>#regex-character-class</string>
222
+ </dict>
223
+ </array>
224
+ </dict>
225
+ <dict>
226
+ <key>include</key>
227
+ <string>#regex-character-class</string>
228
+ </dict>
229
+ </array>
230
+ </dict>
231
+ </dict>
232
+ <key>scopeName</key>
233
+ <string>source.js.regexp</string>
234
+ <key>uuid</key>
235
+ <string>AC8679DE-3AC7-4056-84F9-69A7ADC29DDD</string>
236
+ </dict>
237
+ </plist>
package/index.js ADDED
@@ -0,0 +1,11 @@
1
+ import { registerExtension } from 'vscode/extensions';
2
+
3
+ var manifest = {name:"javascript",displayName:"JavaScript Language Basics",description:"Provides snippets, syntax highlighting, bracket matching and folding in JavaScript files.",version:"1.0.0",publisher:"vscode",license:"MIT",engines:{vscode:"0.10.x"},contributes:{configurationDefaults:{"[javascript]":{"editor.maxTokenizationLineLength":2500}},languages:[{id:"javascriptreact",aliases:["JavaScript JSX","JavaScript React","jsx"],extensions:[".jsx"],configuration:"./javascript-language-configuration.json"},{id:"javascript",aliases:["JavaScript","javascript","js"],extensions:[".js",".es6",".mjs",".cjs",".pac"],filenames:["jakefile"],firstLine:"^#!.*\\bnode",mimetypes:["text/javascript"],configuration:"./javascript-language-configuration.json"},{id:"jsx-tags",aliases:[],configuration:"./tags-language-configuration.json"}],grammars:[{language:"javascriptreact",scopeName:"source.js.jsx",path:"./syntaxes/JavaScriptReact.tmLanguage.json",embeddedLanguages:{"meta.tag.js":"jsx-tags","meta.tag.without-attributes.js":"jsx-tags","meta.tag.attributes.js.jsx":"javascriptreact","meta.embedded.expression.js":"javascriptreact"},tokenTypes:{"meta.template.expression":"other","meta.template.expression string":"string","meta.template.expression comment":"comment","entity.name.type.instance.jsdoc":"other","entity.name.function.tagged-template":"other","meta.import string.quoted":"other","variable.other.jsdoc":"other"}},{language:"javascript",scopeName:"source.js",path:"./syntaxes/JavaScript.tmLanguage.json",embeddedLanguages:{"meta.tag.js":"jsx-tags","meta.tag.without-attributes.js":"jsx-tags","meta.tag.attributes.js":"javascript","meta.embedded.expression.js":"javascript"},tokenTypes:{"meta.template.expression":"other","meta.template.expression string":"string","meta.template.expression comment":"comment","entity.name.type.instance.jsdoc":"other","entity.name.function.tagged-template":"other","meta.import string.quoted":"other","variable.other.jsdoc":"other"}},{scopeName:"source.js.regexp",path:"./syntaxes/Regular Expressions (JavaScript).tmLanguage"}],semanticTokenScopes:[{language:"javascript",scopes:{property:["variable.other.property.js"],"property.readonly":["variable.other.constant.property.js"],variable:["variable.other.readwrite.js"],"variable.readonly":["variable.other.constant.object.js"],"function":["entity.name.function.js"],namespace:["entity.name.type.module.js"],"variable.defaultLibrary":["support.variable.js"],"function.defaultLibrary":["support.function.js"]}},{language:"javascriptreact",scopes:{property:["variable.other.property.jsx"],"property.readonly":["variable.other.constant.property.jsx"],variable:["variable.other.readwrite.jsx"],"variable.readonly":["variable.other.constant.object.jsx"],"function":["entity.name.function.jsx"],namespace:["entity.name.type.module.jsx"],"variable.defaultLibrary":["support.variable.js"],"function.defaultLibrary":["support.function.js"]}}],snippets:[{language:"javascript",path:"./snippets/javascript.code-snippets"},{language:"javascriptreact",path:"./snippets/javascript.code-snippets"}]},repository:{type:"git",url:"https://github.com/microsoft/vscode.git"},main:undefined};
4
+
5
+ const { registerFileUrl } = registerExtension(manifest);
6
+ registerFileUrl('./syntaxes/JavaScriptReact.tmLanguage.json', new URL('./JavaScriptReact.tmLanguage.json', import.meta.url).toString(), 'application/json');
7
+ registerFileUrl('./syntaxes/JavaScript.tmLanguage.json', new URL('./JavaScript.tmLanguage.json', import.meta.url).toString(), 'application/json');
8
+ registerFileUrl('./syntaxes/Regular Expressions (JavaScript).tmLanguage', new URL('./Regular Expressions (JavaScript).tmLanguage', import.meta.url).toString());
9
+ registerFileUrl('./javascript-language-configuration.json', new URL('./javascript-language-configuration.json', import.meta.url).toString(), 'application/json');
10
+ registerFileUrl('./tags-language-configuration.json', new URL('./tags-language-configuration.json', import.meta.url).toString(), 'application/json');
11
+ registerFileUrl('./snippets/javascript.code-snippets', new URL('./javascript.code-snippets', import.meta.url).toString(), 'application/json');
@@ -0,0 +1,202 @@
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
+ }
@@ -0,0 +1,203 @@
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.json ADDED
@@ -0,0 +1,22 @@
1
+ {
2
+ "name": "@codingame/monaco-vscode-javascript-default-extension",
3
+ "version": "1.81.8-next.1",
4
+ "keywords": [],
5
+ "author": {
6
+ "name": "CodinGame",
7
+ "url": "http://www.codingame.com"
8
+ },
9
+ "license": "MIT",
10
+ "repository": {
11
+ "type": "git",
12
+ "url": "https://github.com/CodinGame/monaco-vscode-api"
13
+ },
14
+ "type": "module",
15
+ "private": false,
16
+ "description": "Default VSCode extension designed to be used with @codingame/monaco-vscode-api",
17
+ "main": "index.js",
18
+ "module": "index.js",
19
+ "dependencies": {
20
+ "vscode": "npm:@codingame/monaco-vscode-api@1.81.8-next.1"
21
+ }
22
+ }