@codingame/monaco-editor-wrapper 2.2.0 → 2.2.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,6 @@
1
+ /**
2
+ * comes from https://github.com/microsoft/vscode/blob/16d0a319b28caa4b6cf4e6801fd508282b7533e0/src/vs/workbench/contrib/files/browser/files.contribution.ts#L132
3
+ * files.exclude and files.associations are required by the Lua language server
4
+ */
5
+ export declare const FILES_EXCLUDE_CONFIG = "files.exclude";
6
+ export declare const FILES_ASSOCIATIONS_CONFIG = "files.associations";
@@ -2,6 +2,7 @@ import * as monaco from 'monaco-editor';
2
2
  import { IConfigurationChangeEvent } from 'vscode/services';
3
3
  import * as vscode from 'vscode';
4
4
  import { updateUserConfiguration } from 'vscode/service-override/configuration';
5
+ import './files';
5
6
  export declare function onConfigurationChanged(listener: (e: IConfigurationChangeEvent) => void): vscode.Disposable;
6
7
  export declare function getConfiguration<C = Partial<monaco.editor.IEditorOptions>>(language?: string, section?: string): C | undefined;
7
8
  export { updateUserConfiguration };
@@ -1,7 +1 @@
1
1
  export declare function loadConfigurationForExtension(extensionId: string): Promise<void>;
2
- /**
3
- * comes from https://github.com/microsoft/vscode/blob/16d0a319b28caa4b6cf4e6801fd508282b7533e0/src/vs/workbench/contrib/files/browser/files.contribution.ts#L132
4
- * Required by the Lua language server
5
- */
6
- export declare const FILES_EXCLUDE_CONFIG = "files.exclude";
7
- export declare const FILES_ASSOCIATIONS_CONFIG = "files.associations";
@@ -1,4 +1,3 @@
1
- import { _ as _objectSpread2 } from '../_rollupPluginBabelHelpers.js';
2
1
  import * as monaco from 'monaco-editor/esm/vs/editor/editor.api';
3
2
 
4
3
  // Generated file, do not modify
@@ -138,65 +137,5 @@ async function loadConfigurationForExtension(extensionId) {
138
137
  const configuration = await loader$1();
139
138
  configurationRegistry.registerConfigurations(configuration);
140
139
  }
141
- /**
142
- * comes from https://github.com/microsoft/vscode/blob/16d0a319b28caa4b6cf4e6801fd508282b7533e0/src/vs/workbench/contrib/files/browser/files.contribution.ts#L132
143
- * Required by the Lua language server
144
- */
145
-
146
- const FILES_EXCLUDE_CONFIG = 'files.exclude';
147
- const FILES_ASSOCIATIONS_CONFIG = 'files.associations';
148
- const ConfigurationScope = monaco.extra.ConfigurationScope;
149
- const nls = {
150
- localize: (key, defaultValue) => defaultValue
151
- };
152
- configurationRegistry.registerConfiguration({
153
- id: 'files',
154
- order: 9,
155
- title: 'Files',
156
- type: 'object',
157
- properties: {
158
- [FILES_EXCLUDE_CONFIG]: {
159
- type: 'object',
160
- markdownDescription: nls.localize('exclude', 'Configure glob patterns for excluding files and folders. For example, the file Explorer decides which files and folders to show or hide based on this setting. Refer to the `#search.exclude#` setting to define search specific excludes. Read more about glob patterns [here](https://code.visualstudio.com/docs/editor/codebasics#_advanced-search-options).'),
161
- default: _objectSpread2(_objectSpread2({}, {
162
- '**/.git': true,
163
- '**/.svn': true,
164
- '**/.hg': true,
165
- '**/CVS': true,
166
- '**/.DS_Store': true,
167
- '**/Thumbs.db': true
168
- }), {
169
- '**/*.crswap': true
170
- /* filter out swap files used for local file access */
171
-
172
- } ),
173
- scope: ConfigurationScope.RESOURCE,
174
- additionalProperties: {
175
- anyOf: [{
176
- type: 'boolean',
177
- description: nls.localize('files.exclude.boolean', 'The glob pattern to match file paths against. Set to true or false to enable or disable the pattern.')
178
- }, {
179
- type: 'object',
180
- properties: {
181
- when: {
182
- type: 'string',
183
- // expression ({ "**/*.js": { "when": "$(basename).js" } })
184
- pattern: '\\w*\\$\\(basename\\)\\w*',
185
- default: '$(basename).ext',
186
- description: nls.localize('files.exclude.when', 'Additional check on the siblings of a matching file. Use $(basename) as variable for the matching file name.')
187
- }
188
- }
189
- }]
190
- }
191
- },
192
- [FILES_ASSOCIATIONS_CONFIG]: {
193
- type: 'object',
194
- markdownDescription: nls.localize('associations', 'Configure file associations to languages (e.g. `"*.extension": "html"`). These have precedence over the default associations of the languages installed.'),
195
- additionalProperties: {
196
- type: 'string'
197
- }
198
- }
199
- }
200
- });
201
140
 
202
- export { FILES_ASSOCIATIONS_CONFIG, FILES_EXCLUDE_CONFIG, loadConfigurationForExtension };
141
+ export { loadConfigurationForExtension };
@@ -4,6 +4,7 @@ import { r as registerConfigurations, g as getConfiguration, o as onConfiguratio
4
4
  import { r as registerWorkerLoader } from '../worker.js';
5
5
  import 'vscode/services';
6
6
  import 'vscode/service-override/configuration';
7
+ import '../_rollupPluginBabelHelpers.js';
7
8
 
8
9
  const workerLoader = async () => (await import(
9
10
  /* webpackChunkName: "MonacoHtmlWorker" */
package/dist/index.js CHANGED
@@ -1,6 +1,7 @@
1
1
  import * as monaco from 'monaco-editor/esm/vs/editor/editor.api';
2
2
  import { IConfigurationService } from 'vscode/services';
3
3
  import 'vscode/service-override/configuration';
4
+ import { _ as _objectSpread2 } from './_rollupPluginBabelHelpers.js';
4
5
 
5
6
  var configurationDefaults = {
6
7
  "[go]": {
@@ -1218,6 +1219,76 @@ var extensions = {
1218
1219
  semanticTokenModifiers: semanticTokenModifiers
1219
1220
  };
1220
1221
 
1222
+ const configurationRegistry$1 = monaco.extra.Registry.as(monaco.extra.ConfigurationExtensions.Configuration);
1223
+ /**
1224
+ * comes from https://github.com/microsoft/vscode/blob/16d0a319b28caa4b6cf4e6801fd508282b7533e0/src/vs/workbench/contrib/files/browser/files.contribution.ts#L132
1225
+ * files.exclude and files.associations are required by the Lua language server
1226
+ */
1227
+
1228
+ const FILES_EXCLUDE_CONFIG = 'files.exclude';
1229
+ const FILES_ASSOCIATIONS_CONFIG = 'files.associations';
1230
+ const ConfigurationScope = monaco.extra.ConfigurationScope;
1231
+ const nls = {
1232
+ localize: (key, defaultValue) => defaultValue
1233
+ };
1234
+ configurationRegistry$1.registerConfiguration({
1235
+ id: 'files',
1236
+ order: 9,
1237
+ title: 'Files',
1238
+ type: 'object',
1239
+ properties: {
1240
+ 'files.eol': {
1241
+ type: 'string',
1242
+ enum: ['\n', '\r\n', 'auto'],
1243
+ enumDescriptions: [nls.localize('eol.LF', 'LF'), nls.localize('eol.CRLF', 'CRLF'), nls.localize('eol.auto', 'Uses operating system specific end of line character.')],
1244
+ default: 'auto',
1245
+ description: nls.localize('eol', 'The default end of line character.'),
1246
+ scope: ConfigurationScope.LANGUAGE_OVERRIDABLE
1247
+ },
1248
+ [FILES_EXCLUDE_CONFIG]: {
1249
+ type: 'object',
1250
+ markdownDescription: nls.localize('exclude', 'Configure glob patterns for excluding files and folders. For example, the file Explorer decides which files and folders to show or hide based on this setting. Refer to the `#search.exclude#` setting to define search specific excludes. Read more about glob patterns [here](https://code.visualstudio.com/docs/editor/codebasics#_advanced-search-options).'),
1251
+ default: _objectSpread2(_objectSpread2({}, {
1252
+ '**/.git': true,
1253
+ '**/.svn': true,
1254
+ '**/.hg': true,
1255
+ '**/CVS': true,
1256
+ '**/.DS_Store': true,
1257
+ '**/Thumbs.db': true
1258
+ }), {
1259
+ '**/*.crswap': true
1260
+ /* filter out swap files used for local file access */
1261
+
1262
+ } ),
1263
+ scope: ConfigurationScope.RESOURCE,
1264
+ additionalProperties: {
1265
+ anyOf: [{
1266
+ type: 'boolean',
1267
+ description: nls.localize('files.exclude.boolean', 'The glob pattern to match file paths against. Set to true or false to enable or disable the pattern.')
1268
+ }, {
1269
+ type: 'object',
1270
+ properties: {
1271
+ when: {
1272
+ type: 'string',
1273
+ // expression ({ "**/*.js": { "when": "$(basename).js" } })
1274
+ pattern: '\\w*\\$\\(basename\\)\\w*',
1275
+ default: '$(basename).ext',
1276
+ description: nls.localize('files.exclude.when', 'Additional check on the siblings of a matching file. Use $(basename) as variable for the matching file name.')
1277
+ }
1278
+ }
1279
+ }]
1280
+ }
1281
+ },
1282
+ [FILES_ASSOCIATIONS_CONFIG]: {
1283
+ type: 'object',
1284
+ markdownDescription: nls.localize('associations', 'Configure file associations to languages (e.g. `"*.extension": "html"`). These have precedence over the default associations of the languages installed.'),
1285
+ additionalProperties: {
1286
+ type: 'string'
1287
+ }
1288
+ }
1289
+ }
1290
+ });
1291
+
1221
1292
  const configurationRegistry = monaco.extra.Registry.as(monaco.extra.ConfigurationExtensions.Configuration);
1222
1293
  configurationRegistry.registerDefaultConfigurations([{
1223
1294
  overrides: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codingame/monaco-editor-wrapper",
3
- "version": "2.2.0",
3
+ "version": "2.2.1",
4
4
  "private": false,
5
5
  "description": "Enhanced Monaco editor with TextMate grammars and more",
6
6
  "scripts": {