@codingame/monaco-editor-wrapper 1.14.3 → 1.14.6

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.
Files changed (54) hide show
  1. package/README.md +2 -2
  2. package/dist/JavaScript.tmLanguage.js +64 -10
  3. package/dist/JavaScriptReact.tmLanguage.js +64 -10
  4. package/dist/Scala.tmLanguage.js +8 -4
  5. package/dist/TypeScript.tmLanguage.js +64 -10
  6. package/dist/TypeScriptReact.tmLanguage.js +64 -10
  7. package/dist/angular.js +7 -1
  8. package/dist/c.tmLanguage.js +650 -432
  9. package/dist/cpp.tmLanguage.js +72 -84
  10. package/dist/cpptools.js +81 -5
  11. package/dist/css.tmLanguage.js +5 -5
  12. package/dist/css.worker.js +1 -1
  13. package/dist/dart3.js +40 -21
  14. package/dist/features/extensionConfigurations.js +1 -1
  15. package/dist/features/htmlContribution.js +1 -1
  16. package/dist/features/jsonContribution.js +1 -1
  17. package/dist/features/typescriptContribution.js +1 -1
  18. package/dist/fsharp.tmLanguage.js +2 -2
  19. package/dist/html.worker.js +1 -1
  20. package/dist/index.js +5 -4
  21. package/dist/java.js +1 -1
  22. package/dist/java2.js +35 -11
  23. package/dist/javascript-javascript.code-snippets.js +9 -0
  24. package/dist/javascript.js +1 -1
  25. package/dist/javascriptreact.js +1 -1
  26. package/dist/json.js +1 -3
  27. package/dist/json.worker.js +1 -1
  28. package/dist/jsonc.js +1 -3
  29. package/dist/lua2.js +184 -63
  30. package/dist/main.js +10639 -10610
  31. package/dist/markdown.tmLanguage.js +56 -17
  32. package/dist/monaco.d.ts +9 -0
  33. package/dist/objective-c.tmLanguage.js +276 -131
  34. package/dist/omnisharp-csharp.js +11 -11
  35. package/dist/omnisharp.js +24 -49
  36. package/dist/php.tmLanguage.js +280 -128
  37. package/dist/scalameta.js +19 -2
  38. package/dist/scss.js +12 -2
  39. package/dist/services/MultiEditorStandaloneCodeEditorService.d.ts +2 -2
  40. package/dist/solidity2.js +1 -1
  41. package/dist/theme-defaults~dark_vs.js +1 -1
  42. package/dist/theme-defaults~hc_light.js +36 -36
  43. package/dist/ts.worker.js +1 -1
  44. package/dist/typescript-language-features.js +17 -2
  45. package/dist/typescript.js +1 -1
  46. package/dist/typescriptreact.js +1 -1
  47. package/dist/vscode-R-rmarkdown.js +3 -3
  48. package/dist/vscode-R.js +9 -9
  49. package/dist/vscode-python.js +16 -6
  50. package/dist/worker.js +1 -1
  51. package/dist/xml.js +1 -2
  52. package/dist/xsl.js +1 -2
  53. package/package.json +23 -26
  54. package/stats.html +1 -1
package/dist/dart3.js CHANGED
@@ -145,10 +145,19 @@ var dart = [
145
145
  "description": "The theme to use for Dart DevTools.",
146
146
  "scope": 3
147
147
  },
148
- "dart.embedDevTools": {
149
- "type": "boolean",
150
- "default": true,
151
- "markdownDescription": "Whether to load [Dart DevTools](https://dart.dev/tools/dart-devtools) embedded inside VS Code.",
148
+ "dart.devToolsLocation": {
149
+ "enum": [
150
+ "beside",
151
+ "active",
152
+ "external"
153
+ ],
154
+ "enumDescriptions": [
155
+ "Open DevTools in beside the active editor",
156
+ "Open DevTools over the top of the active editor",
157
+ "Open DevTools externally in its own browser window"
158
+ ],
159
+ "default": "beside",
160
+ "markdownDescription": "Which editor/column to open [Dart DevTools](https://dart.dev/tools/dart-devtools) in.",
152
161
  "scope": 3
153
162
  },
154
163
  "dart.openDevTools": {
@@ -368,10 +377,10 @@ var dart = [
368
377
  "description": "The programming language to use for iOS apps when creating new projects using the 'Flutter: New Project' command.",
369
378
  "scope": 3
370
379
  },
371
- "dart.flutterCreateOffline": {
380
+ "dart.offline": {
372
381
  "type": "boolean",
373
382
  "default": false,
374
- "description": "Whether to use offline mode when creating new projects with the 'Flutter: New Project' command.",
383
+ "description": "Whether to use the --offline switch for commands like 'pub get' and 'Flutter: New Project'.",
375
384
  "scope": 3
376
385
  },
377
386
  "dart.flutterCreateOrganization": {
@@ -419,13 +428,17 @@ var dart = [
419
428
  "dart.flutterHotReloadOnSave": {
420
429
  "enum": [
421
430
  "never",
422
- "always",
423
- "manual"
431
+ "manual",
432
+ "manualIfDirty",
433
+ "all",
434
+ "allIfDirty"
424
435
  ],
425
436
  "enumDescriptions": [
426
437
  "Do not reload when saving",
438
+ "Reload for explicit manual saves (requires pressing Save explicitly if using autosave)",
439
+ "Reload for explicit manual saves (requires pressing Save explicitly if using autosave) only if the saved file had changes",
427
440
  "Reload for all saves, manual or automatic",
428
- "Only reload for manual saves (requires pressing Save explicitly if using autosave)"
441
+ "Reload for all saves, manual or automatic only if the saved file had changes"
429
442
  ],
430
443
  "default": "manual",
431
444
  "markdownDescription": "Whether to automatically send a Hot Reload request to Flutter apps during a debug session when saving files. Dart apps are controlled by the hotReloadOnSave setting.",
@@ -434,13 +447,17 @@ var dart = [
434
447
  "dart.hotReloadOnSave": {
435
448
  "enum": [
436
449
  "never",
437
- "always",
438
- "manual"
450
+ "manual",
451
+ "manualIfDirty",
452
+ "all",
453
+ "allIfDirty"
439
454
  ],
440
455
  "enumDescriptions": [
441
456
  "Do not reload when saving",
457
+ "Reload for explicit manual saves (requires pressing Save explicitly if using autosave)",
458
+ "Reload for explicit manual saves (requires pressing Save explicitly if using autosave) only if the saved file had changes",
442
459
  "Reload for all saves, manual or automatic",
443
- "Only reload for manual saves (requires pressing Save explicitly if using autosave)"
460
+ "Reload for all saves, manual or automatic only if the saved file had changes"
444
461
  ],
445
462
  "default": "never",
446
463
  "markdownDescription": "Whether to automatically send a Hot Reload request to Dart apps during a debug session when saving files. Flutter apps are controlled by the flutterHotReloadOnSave setting.",
@@ -485,11 +502,13 @@ var dart = [
485
502
  "dart.flutterShowEmulators": {
486
503
  "enum": [
487
504
  "local",
488
- "always"
505
+ "always",
506
+ "never"
489
507
  ],
490
508
  "enumDescriptions": [
491
509
  "Only show for local workspaces",
492
- "Always show, even for remote sessions"
510
+ "Always show, even for remote sessions",
511
+ "Never show emulators"
493
512
  ],
494
513
  "default": "local",
495
514
  "markdownDescription": "When to show the Flutter emulators. These are usually hidden for remote workspaces because it is usually not possible to see or interact with emulators in a remote session. If you are using remoting/containers in a way that you can interact with launched emulator processes, you may wish to set this to 'always'.",
@@ -624,7 +643,7 @@ var dart = [
624
643
  },
625
644
  "dart.maxCompletionItems": {
626
645
  "type": "number",
627
- "default": 2000,
646
+ "default": 100000,
628
647
  "description": "The maximum number of completion items to return from a code completion request. Updated results will be fetched as additional characters are typed. Lower numbers may improved performance. Only affects LSP for > Dart SDK 2.17.",
629
648
  "scope": 3
630
649
  },
@@ -834,13 +853,13 @@ var dart = [
834
853
  "string"
835
854
  ],
836
855
  "default": null,
837
- "markdownDescription": "The location of the Dart SDK to use for analyzing and executing code. If blank, Dart Code will attempt to find it from the `PATH` environment variable. When editing a Flutter project, the version of Dart included in the Flutter SDK is used in preference.",
856
+ "markdownDescription": "The location of the Dart SDK to use for analyzing and executing code. If blank (or not a valid SDK), Dart Code will attempt to find it from the `PATH` environment variable. When editing a Flutter project, the version of Dart included in the Flutter SDK is used in preference.",
838
857
  "scope": 6
839
858
  },
840
859
  "dart.sdkPaths": {
841
860
  "type": "array",
842
861
  "default": [],
843
- "description": "An array of paths that either directly point to a Dart SDK or the parent directory of multiple Dart SDKs. When set, the version number in the status bar can be used to quickly switch between SDKs.",
862
+ "description": "An array of paths that either directly point to a Dart SDK or the parent directory of multiple Dart SDKs that can be used for fast SDK switching. These paths are not used directly when searching for an SDK. When this setting is populated, the SDK version number in the status bar can be used to quickly switch between SDKs.",
844
863
  "items": {
845
864
  "type": "string"
846
865
  },
@@ -858,13 +877,13 @@ var dart = [
858
877
  "string"
859
878
  ],
860
879
  "default": null,
861
- "markdownDescription": "The location of the Flutter SDK to use. If blank, Dart Code will attempt to find it from the project directory, `FLUTTER_ROOT` environment variable and the `PATH` environment variable.",
880
+ "markdownDescription": "The location of the Flutter SDK to use. If blank (or not a valid SDK), Dart Code will attempt to find it from the project directory, `FLUTTER_ROOT` environment variable and the `PATH` environment variable.",
862
881
  "scope": 6
863
882
  },
864
883
  "dart.flutterSdkPaths": {
865
884
  "type": "array",
866
885
  "default": [],
867
- "description": "An array of paths that either directly point to a Flutter SDK or the parent directory of multiple Flutter SDKs. When set, the version number in the status bar can be used to quickly switch between SDKs.",
886
+ "description": "An array of paths that either directly point to a Flutter SDK or the parent directory of multiple Flutter SDKs that can be used for fast SDK switching. These paths are not used directly when searching for an SDK. When this setting is populated, the version number in the status bar can be used to quickly switch between SDKs.",
868
887
  "items": {
869
888
  "type": "string"
870
889
  },
@@ -928,8 +947,8 @@ var dart = [
928
947
  "properties": {
929
948
  "dart.enableServerSnippets": {
930
949
  "type": "boolean",
931
- "default": false,
932
- "markdownDescription": "Whether to enable using code snippets from the Dart Analysis Server and disable the snippets included in the extension. If the version of the Dart/Flutter SDK you're using does not support server snippets, this will result in no snippets being available.",
950
+ "default": true,
951
+ "markdownDescription": "Whether to use code snippets from the Dart Analysis Server instead of those included in the extension. Server snippets are context and language-version aware and should be preferred.",
933
952
  "scope": 3
934
953
  },
935
954
  "dart.normalizeFileCasing": {
@@ -1,5 +1,5 @@
1
1
  import { _ as _objectSpread2 } from '../_rollupPluginBabelHelpers.js';
2
- import * as monaco from 'monaco-editor/esm/vs/editor/edcore.main';
2
+ import * as monaco from 'monaco-editor/esm/vs/editor/editor.api';
3
3
 
4
4
  // Generated file, do not modify
5
5
 
@@ -1,4 +1,4 @@
1
- import * as monaco from 'monaco-editor/esm/vs/editor/edcore.main';
1
+ import * as monaco from 'monaco-editor/esm/vs/editor/editor.api';
2
2
  import 'monaco-editor/esm/vs/language/html/monaco.contribution';
3
3
  import { r as registerConfigurations, g as getConfiguration, o as onConfigurationChanged } from '../index.js';
4
4
  import { r as registerWorkerLoader } from '../worker.js';
@@ -1,6 +1,6 @@
1
1
  import { _ as _objectSpread2 } from '../_rollupPluginBabelHelpers.js';
2
2
  import 'monaco-editor/esm/vs/language/json/monaco.contribution';
3
- import * as monaco from 'monaco-editor/esm/vs/editor/edcore.main';
3
+ import * as monaco from 'monaco-editor/esm/vs/editor/editor.api';
4
4
  import { r as registerWorkerLoader } from '../worker.js';
5
5
 
6
6
  const registry = monaco.extra.Registry.as(monaco.extra.JsonContributionExtensions.JSONContribution); // Hack because the commands are filled by a code not run in monaco-editor
@@ -1,6 +1,6 @@
1
1
  import { _ as _objectSpread2 } from '../_rollupPluginBabelHelpers.js';
2
2
  import 'monaco-editor/esm/vs/language/typescript/monaco.contribution';
3
- import * as monaco from 'monaco-editor/esm/vs/editor/edcore.main';
3
+ import * as monaco from 'monaco-editor/esm/vs/editor/editor.api';
4
4
  import { r as registerWorkerLoader } from '../worker.js';
5
5
 
6
6
  var typescriptGlobal = "// Declare \"static\" methods in Error\ninterface ErrorConstructor {\n /** Create .stack property on a target object */\n captureStackTrace(targetObject: object, constructorOpt?: Function): void;\n\n /**\n * Optional override for formatting stack traces\n *\n * @see https://v8.dev/docs/stack-trace-api#customizing-stack-traces\n */\n prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;\n\n stackTraceLimit: number;\n}\n\n/*-----------------------------------------------*\n * *\n * GLOBAL *\n * *\n ------------------------------------------------*/\n\n// For backwards compability\ninterface NodeRequire extends NodeJS.Require { }\ninterface RequireResolve extends NodeJS.RequireResolve { }\ninterface NodeModule extends NodeJS.Module { }\n\ndeclare var process: NodeJS.Process;\ndeclare var console: Console;\n\ndeclare var __filename: string;\ndeclare var __dirname: string;\n\ndeclare var require: NodeRequire;\ndeclare var module: NodeModule;\n\n// Same as module.exports\ndeclare var exports: any;\n\n/**\n * Only available if `--expose-gc` is passed to the process.\n */\ndeclare var gc: undefined | (() => void);\n\n//#region borrowed\n// from https://github.com/microsoft/TypeScript/blob/38da7c600c83e7b31193a62495239a0fe478cb67/lib/lib.webworker.d.ts#L633 until moved to separate lib\n/** A controller object that allows you to abort one or more DOM requests as and when desired. */\ninterface AbortController {\n /**\n * Returns the AbortSignal object associated with this object.\n */\n\n readonly signal: AbortSignal;\n /**\n * Invoking this method will set this object's AbortSignal's aborted flag and signal to any observers that the associated activity is to be aborted.\n */\n abort(): void;\n}\n\n/** A signal object that allows you to communicate with a DOM request (such as a Fetch) and abort it if required via an AbortController object. */\ninterface AbortSignal {\n /**\n * Returns true if this AbortSignal's AbortController has signaled to abort, and false otherwise.\n */\n readonly aborted: boolean;\n}\n\ndeclare var AbortController: {\n prototype: AbortController;\n new(): AbortController;\n};\n\ndeclare var AbortSignal: {\n prototype: AbortSignal;\n new(): AbortSignal;\n // TODO: Add abort() static\n};\n//#endregion borrowed\n\n//#region ArrayLike.at()\ninterface RelativeIndexable<T> {\n /**\n * Takes an integer value and returns the item at that index,\n * allowing for positive and negative integers.\n * Negative integers count back from the last item in the array.\n */\n at(index: number): T | undefined;\n}\ninterface String extends RelativeIndexable<string> {}\ninterface Array<T> extends RelativeIndexable<T> {}\ninterface Int8Array extends RelativeIndexable<number> {}\ninterface Uint8Array extends RelativeIndexable<number> {}\ninterface Uint8ClampedArray extends RelativeIndexable<number> {}\ninterface Int16Array extends RelativeIndexable<number> {}\ninterface Uint16Array extends RelativeIndexable<number> {}\ninterface Int32Array extends RelativeIndexable<number> {}\ninterface Uint32Array extends RelativeIndexable<number> {}\ninterface Float32Array extends RelativeIndexable<number> {}\ninterface Float64Array extends RelativeIndexable<number> {}\ninterface BigInt64Array extends RelativeIndexable<bigint> {}\ninterface BigUint64Array extends RelativeIndexable<bigint> {}\n//#endregion ArrayLike.at() end\n\n/*----------------------------------------------*\n* *\n* GLOBAL INTERFACES *\n* *\n*-----------------------------------------------*/\ndeclare namespace NodeJS {\n interface CallSite {\n /**\n * Value of \"this\"\n */\n getThis(): unknown;\n\n /**\n * Type of \"this\" as a string.\n * This is the name of the function stored in the constructor field of\n * \"this\", if available. Otherwise the object's [[Class]] internal\n * property.\n */\n getTypeName(): string | null;\n\n /**\n * Current function\n */\n getFunction(): Function | undefined;\n\n /**\n * Name of the current function, typically its name property.\n * If a name property is not available an attempt will be made to try\n * to infer a name from the function's context.\n */\n getFunctionName(): string | null;\n\n /**\n * Name of the property [of \"this\" or one of its prototypes] that holds\n * the current function\n */\n getMethodName(): string | null;\n\n /**\n * Name of the script [if this function was defined in a script]\n */\n getFileName(): string | null;\n\n /**\n * Current line number [if this function was defined in a script]\n */\n getLineNumber(): number | null;\n\n /**\n * Current column number [if this function was defined in a script]\n */\n getColumnNumber(): number | null;\n\n /**\n * A call site object representing the location where eval was called\n * [if this function was created using a call to eval]\n */\n getEvalOrigin(): string | undefined;\n\n /**\n * Is this a toplevel invocation, that is, is \"this\" the global object?\n */\n isToplevel(): boolean;\n\n /**\n * Does this call take place in code defined by a call to eval?\n */\n isEval(): boolean;\n\n /**\n * Is this call in native V8 code?\n */\n isNative(): boolean;\n\n /**\n * Is this a constructor call?\n */\n isConstructor(): boolean;\n }\n\n interface ErrnoException extends Error {\n errno?: number | undefined;\n code?: string | undefined;\n path?: string | undefined;\n syscall?: string | undefined;\n }\n\n interface ReadableStream extends EventEmitter {\n readable: boolean;\n read(size?: number): string | Buffer;\n setEncoding(encoding: BufferEncoding): this;\n pause(): this;\n resume(): this;\n isPaused(): boolean;\n pipe<T extends WritableStream>(destination: T, options?: { end?: boolean | undefined; }): T;\n unpipe(destination?: WritableStream): this;\n unshift(chunk: string | Uint8Array, encoding?: BufferEncoding): void;\n wrap(oldStream: ReadableStream): this;\n [Symbol.asyncIterator](): AsyncIterableIterator<string | Buffer>;\n }\n\n interface WritableStream extends EventEmitter {\n writable: boolean;\n write(buffer: Uint8Array | string, cb?: (err?: Error | null) => void): boolean;\n write(str: string, encoding?: BufferEncoding, cb?: (err?: Error | null) => void): boolean;\n end(cb?: () => void): void;\n end(data: string | Uint8Array, cb?: () => void): void;\n end(str: string, encoding?: BufferEncoding, cb?: () => void): void;\n }\n\n interface ReadWriteStream extends ReadableStream, WritableStream { }\n\n interface RefCounted {\n ref(): this;\n unref(): this;\n }\n\n type TypedArray =\n | Uint8Array\n | Uint8ClampedArray\n | Uint16Array\n | Uint32Array\n | Int8Array\n | Int16Array\n | Int32Array\n | BigUint64Array\n | BigInt64Array\n | Float32Array\n | Float64Array;\n type ArrayBufferView = TypedArray | DataView;\n\n interface Require {\n (id: string): any;\n resolve: RequireResolve;\n cache: Dict<NodeModule>;\n /**\n * @deprecated\n */\n extensions: RequireExtensions;\n main: Module | undefined;\n }\n\n interface RequireResolve {\n (id: string, options?: { paths?: string[] | undefined; }): string;\n paths(request: string): string[] | null;\n }\n\n interface RequireExtensions extends Dict<(m: Module, filename: string) => any> {\n '.js': (m: Module, filename: string) => any;\n '.json': (m: Module, filename: string) => any;\n '.node': (m: Module, filename: string) => any;\n }\n interface Module {\n /**\n * `true` if the module is running during the Node.js preload\n */\n isPreloading: boolean;\n exports: any;\n require: Require;\n id: string;\n filename: string;\n loaded: boolean;\n /** @deprecated since 14.6.0 Please use `require.main` and `module.children` instead. */\n parent: Module | null | undefined;\n children: Module[];\n /**\n * @since 11.14.0\n *\n * The directory name of the module. This is usually the same as the path.dirname() of the module.id.\n */\n path: string;\n paths: string[];\n }\n\n interface Dict<T> {\n [key: string]: T | undefined;\n }\n\n interface ReadOnlyDict<T> {\n readonly [key: string]: T | undefined;\n }\n}\n";
@@ -3,7 +3,7 @@ var information_for_contributors = [
3
3
  "If you want to provide a fix or improvement, please create a pull request against the original repository.",
4
4
  "Once accepted there, we are happy to receive an update request."
5
5
  ];
6
- var version = "https://github.com/ionide/ionide-fsgrammar/commit/b528e4360b4cd967aa93c2f7849e459ff91d192c";
6
+ var version = "https://github.com/ionide/ionide-fsgrammar/commit/8825a76681cdc14801b5d9490372ff67ec6b9711";
7
7
  var name = "fsharp";
8
8
  var scopeName = "source.fsharp";
9
9
  var patterns = [
@@ -1147,7 +1147,7 @@ var repository = {
1147
1147
  },
1148
1148
  {
1149
1149
  name: "namespace.open.fsharp",
1150
- begin: "\\b(open)\\s+([[:alpha:]][[:alpha:]0-9'_]*)(?=(\\.[A-Z][[:alpha:]0-9_]*)*)",
1150
+ begin: "\\b(open type|open)\\s+([[:alpha:]][[:alpha:]0-9'_]*)(?=(\\.[A-Z][[:alpha:]0-9_]*)*)",
1151
1151
  end: "(\\s|$)",
1152
1152
  beginCaptures: {
1153
1153
  "1": {