@codingame/monaco-vscode-api 1.68.0 → 1.68.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.
package/dist/api.amd.js CHANGED
@@ -9480,9 +9480,12 @@ define(['exports', 'monaco-editor/esm/vs/base/common/errors.js', 'monaco-editor/
9480
9480
  await standaloneServices_js.StandaloneServices.get(bulkEditService_js.IBulkEditService).apply(resourceEdits);
9481
9481
  return true;
9482
9482
  },
9483
- get getConfiguration() {
9483
+ getConfiguration: (section, scope) => {
9484
9484
  const { workspace } = services.Services.get();
9485
- return workspace?.getConfiguration ?? (() => ({
9485
+ if (workspace?.getConfiguration != null) {
9486
+ return workspace.getConfiguration(section, scope);
9487
+ }
9488
+ return {
9486
9489
  get: (section, defaultValue) => {
9487
9490
  return defaultValue;
9488
9491
  },
@@ -9491,7 +9494,7 @@ define(['exports', 'monaco-editor/esm/vs/base/common/errors.js', 'monaco-editor/
9491
9494
  },
9492
9495
  inspect: unsupported$1,
9493
9496
  update: unsupported$1
9494
- }));
9497
+ };
9495
9498
  },
9496
9499
  get onDidChangeConfiguration() {
9497
9500
  const services$1 = services.Services.get();
package/dist/api.cjs CHANGED
@@ -9523,9 +9523,12 @@ const workspace$1 = {
9523
9523
  await standaloneServices_js.StandaloneServices.get(bulkEditService_js.IBulkEditService).apply(resourceEdits);
9524
9524
  return true;
9525
9525
  },
9526
- get getConfiguration() {
9526
+ getConfiguration: (section, scope) => {
9527
9527
  const { workspace } = services.Services.get();
9528
- return workspace?.getConfiguration ?? (() => ({
9528
+ if (workspace?.getConfiguration != null) {
9529
+ return workspace.getConfiguration(section, scope);
9530
+ }
9531
+ return {
9529
9532
  get: (section, defaultValue) => {
9530
9533
  return defaultValue;
9531
9534
  },
@@ -9534,7 +9537,7 @@ const workspace$1 = {
9534
9537
  },
9535
9538
  inspect: unsupported$1,
9536
9539
  update: unsupported$1
9537
- }));
9540
+ };
9538
9541
  },
9539
9542
  get onDidChangeConfiguration() {
9540
9543
  const services$1 = services.Services.get();
package/dist/api.js CHANGED
@@ -9501,9 +9501,12 @@ const workspace$1 = {
9501
9501
  await StandaloneServices.get(IBulkEditService).apply(resourceEdits);
9502
9502
  return true;
9503
9503
  },
9504
- get getConfiguration() {
9504
+ getConfiguration: (section, scope) => {
9505
9505
  const { workspace } = Services.get();
9506
- return workspace?.getConfiguration ?? (() => ({
9506
+ if (workspace?.getConfiguration != null) {
9507
+ return workspace.getConfiguration(section, scope);
9508
+ }
9509
+ return {
9507
9510
  get: (section, defaultValue) => {
9508
9511
  return defaultValue;
9509
9512
  },
@@ -9512,7 +9515,7 @@ const workspace$1 = {
9512
9515
  },
9513
9516
  inspect: unsupported$1,
9514
9517
  update: unsupported$1
9515
- }));
9518
+ };
9516
9519
  },
9517
9520
  get onDidChangeConfiguration() {
9518
9521
  const services = Services.get();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codingame/monaco-vscode-api",
3
- "version": "1.68.0",
3
+ "version": "1.68.1",
4
4
  "private": false,
5
5
  "description": "VSCode public API plugged on the monaco editor",
6
6
  "keywords": [],