@easyv/biz-components 0.0.52-beta.1 → 0.0.52-beta.2

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 (600) hide show
  1. package/dist/_virtual/index.es2.js +2 -2
  2. package/dist/_virtual/index.es3.js +2 -2
  3. package/dist/_virtual/index.es4.js +2 -2
  4. package/dist/components/easyv-monaco-editor/monaco-setup.es.js +4 -84
  5. package/dist/components/easyv-monaco-editor/monaco-setup.es.js.map +1 -1
  6. package/dist/node_modules/.pnpm/classnames@2.3.2/node_modules/classnames/index.es.js +1 -1
  7. package/dist/node_modules/.pnpm/co-web-worker@1.0.1/node_modules/co-web-worker/index.es.js +1 -1
  8. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/browser/dnd.es.js +1 -11
  9. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/browser/dnd.es.js.map +1 -1
  10. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/browser/dom.es.js +2 -156
  11. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/browser/dom.es.js.map +1 -1
  12. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/browser/ui/keybindingLabel/keybindingLabel.es.js +1 -9
  13. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/browser/ui/keybindingLabel/keybindingLabel.es.js.map +1 -1
  14. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/common/arrays.es.js +0 -75
  15. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/common/arrays.es.js.map +1 -1
  16. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/common/arraysFind.es.js +1 -11
  17. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/common/arraysFind.es.js.map +1 -1
  18. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/common/async.es.js +0 -65
  19. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/common/async.es.js.map +1 -1
  20. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/common/cancellation.es.js +1 -9
  21. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/common/cancellation.es.js.map +1 -1
  22. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/common/equals.es.js +4 -53
  23. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/common/equals.es.js.map +1 -1
  24. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/common/extpath.es.js +1 -8
  25. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/common/extpath.es.js.map +1 -1
  26. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/common/filters.es.js +0 -48
  27. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/common/filters.es.js.map +1 -1
  28. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/common/htmlContent.es.js +0 -10
  29. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/common/htmlContent.es.js.map +1 -1
  30. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/common/lifecycle.es.js +0 -17
  31. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/common/lifecycle.es.js.map +1 -1
  32. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/common/objects.es.js +1 -23
  33. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/common/objects.es.js.map +1 -1
  34. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/common/observableInternal/autorun.es.js +1 -19
  35. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/common/observableInternal/autorun.es.js.map +1 -1
  36. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/common/observableInternal/base.es.js +0 -9
  37. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/common/observableInternal/base.es.js.map +1 -1
  38. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/common/observableInternal/derived.es.js +0 -4
  39. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/common/observableInternal/derived.es.js.map +1 -1
  40. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/common/observableInternal/promise.es.js +2 -44
  41. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/common/observableInternal/promise.es.js.map +1 -1
  42. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/common/observableInternal/utils.es.js +1 -59
  43. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/common/observableInternal/utils.es.js.map +1 -1
  44. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/common/platform.es.js +0 -2
  45. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/common/platform.es.js.map +1 -1
  46. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/common/resources.es.js +6 -10
  47. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/common/resources.es.js.map +1 -1
  48. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/common/strings.es.js +0 -21
  49. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/common/strings.es.js.map +1 -1
  50. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/common/types.es.js +1 -1
  51. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/common/types.es.js.map +1 -1
  52. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/controller/textAreaHandler.es.js +2 -2
  53. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/controller/textAreaHandler.es.js.map +1 -1
  54. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/controller/textAreaInput.es.js +0 -4
  55. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/controller/textAreaInput.es.js.map +1 -1
  56. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/editorExtensions.es.js +8 -148
  57. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/editorExtensions.es.js.map +1 -1
  58. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/observableCodeEditor.es.js +2 -37
  59. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/observableCodeEditor.es.js.map +1 -1
  60. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/widget/diffEditor/utils.es.js +1 -7
  61. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/widget/diffEditor/utils.es.js.map +1 -1
  62. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/commands/replaceCommand.es.js +0 -19
  63. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/commands/replaceCommand.es.js.map +1 -1
  64. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/core/characterClassifier.es.js +1 -23
  65. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/core/characterClassifier.es.js.map +1 -1
  66. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/core/editorColorRegistry.es.js +2 -4
  67. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/core/editorColorRegistry.es.js.map +1 -1
  68. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/cursor/cursorWordOperations.es.js +1 -71
  69. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/cursor/cursorWordOperations.es.js.map +1 -1
  70. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/editorFeatures.es.js +1 -5
  71. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/editorFeatures.es.js.map +1 -1
  72. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/languages/autoIndent.es.js +0 -74
  73. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/languages/autoIndent.es.js.map +1 -1
  74. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/languages.es.js +3 -6
  75. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/languages.es.js.map +1 -1
  76. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/services/semanticTokensProviderStyling.es.js +1 -82
  77. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/services/semanticTokensProviderStyling.es.js.map +1 -1
  78. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/tokens/lineTokens.es.js +1 -13
  79. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/tokens/lineTokens.es.js.map +1 -1
  80. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/editorState/browser/keybindingCancellation.es.js +1 -15
  81. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/editorState/browser/keybindingCancellation.es.js.map +1 -1
  82. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/format/browser/format.es.js +8 -236
  83. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/format/browser/format.es.js.map +1 -1
  84. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/nls.es.js +1 -15
  85. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/nls.es.js.map +1 -1
  86. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/platform/actions/browser/menuEntryActionViewItem.es.js +0 -30
  87. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/platform/actions/browser/menuEntryActionViewItem.es.js.map +1 -1
  88. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/platform/actions/common/actions.es.js +5 -56
  89. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/platform/actions/common/actions.es.js.map +1 -1
  90. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/platform/contextkey/common/contextkeys.es.js +3 -5
  91. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/platform/contextkey/common/contextkeys.es.js.map +1 -1
  92. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/platform/list/browser/listService.es.js +1 -2
  93. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/platform/list/browser/listService.es.js.map +1 -1
  94. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/platform/observable/common/platformObservableUtils.es.js +2 -10
  95. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/platform/observable/common/platformObservableUtils.es.js.map +1 -1
  96. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/platform/theme/common/colors/editorColors.es.js +11 -22
  97. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/platform/theme/common/colors/editorColors.es.js.map +1 -1
  98. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/platform/theme/common/colors/listColors.es.js +1 -2
  99. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/platform/theme/common/colors/listColors.es.js.map +1 -1
  100. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/platform/theme/common/colors/minimapColors.es.js +1 -2
  101. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/platform/theme/common/colors/minimapColors.es.js.map +1 -1
  102. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/platform/theme/common/iconRegistry.es.js +2 -3
  103. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/platform/theme/common/iconRegistry.es.js.map +1 -1
  104. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/platform/workspace/common/workspace.es.js +3 -51
  105. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/platform/workspace/common/workspace.es.js.map +1 -1
  106. package/dist/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.es.js +1 -1
  107. package/dist/stats.html +1 -1
  108. package/dist/style.css +1 -1
  109. package/package.json +1 -1
  110. package/dist/monaco/editor.worker.bundle.js +0 -13517
  111. package/dist/monaco/json.worker.bundle.js +0 -21318
  112. package/dist/monaco/ts.worker.bundle.js +0 -256351
  113. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/browser/domObservable.es.js +0 -18
  114. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/browser/domObservable.es.js.map +0 -1
  115. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/browser/ui/findinput/replaceInput.es.js +0 -186
  116. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/browser/ui/findinput/replaceInput.es.js.map +0 -1
  117. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/browser/ui/resizable/resizable.es.js +0 -153
  118. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/browser/ui/resizable/resizable.es.js.map +0 -1
  119. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/common/dataTransfer.es.js +0 -129
  120. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/common/dataTransfer.es.js.map +0 -1
  121. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/common/errorMessage.es.js +0 -60
  122. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/common/errorMessage.es.js.map +0 -1
  123. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/common/hierarchicalKind.es.js +0 -25
  124. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/common/hierarchicalKind.es.js.map +0 -1
  125. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/common/labels.es.js +0 -12
  126. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/common/labels.es.js.map +0 -1
  127. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/common/search.es.js +0 -42
  128. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/common/search.es.js.map +0 -1
  129. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/common/uuid.es.js +0 -53
  130. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/base/common/uuid.es.js.map +0 -1
  131. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/basic-languages/_.contribution.es.js +0 -70
  132. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/basic-languages/_.contribution.es.js.map +0 -1
  133. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/basic-languages/javascript/javascript.contribution.es.js +0 -21
  134. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/basic-languages/javascript/javascript.contribution.es.js.map +0 -1
  135. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/basic-languages/javascript/javascript.es.js +0 -78
  136. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/basic-languages/javascript/javascript.es.js.map +0 -1
  137. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/basic-languages/typescript/typescript.es.js +0 -273
  138. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/basic-languages/typescript/typescript.es.js.map +0 -1
  139. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/dnd.es.js +0 -70
  140. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/dnd.es.js.map +0 -1
  141. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/editorBrowser.es.js +0 -20
  142. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/editorBrowser.es.js.map +0 -1
  143. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/widget/codeEditor/embeddedCodeEditorWidget.es.js +0 -57
  144. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/widget/codeEditor/embeddedCodeEditorWidget.es.js.map +0 -1
  145. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/widget/diffEditor/commands.es.js +0 -254
  146. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/widget/diffEditor/commands.es.js.map +0 -1
  147. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/widget/diffEditor/diffEditor.contribution.es.js +0 -79
  148. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/widget/diffEditor/diffEditor.contribution.es.js.map +0 -1
  149. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/commands/trimTrailingWhitespaceCommand.es.js +0 -81
  150. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/commands/trimTrailingWhitespaceCommand.es.js.map +0 -1
  151. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/model/bracketPairsTextModelPart/fixBrackets.es.js +0 -61
  152. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/model/bracketPairsTextModelPart/fixBrackets.es.js.map +0 -1
  153. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/services/getIconClasses.es.js +0 -84
  154. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/services/getIconClasses.es.js.map +0 -1
  155. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/services/semanticTokensDto.es.js +0 -67
  156. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/services/semanticTokensDto.es.js.map +0 -1
  157. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/services/treeViewsDnd.es.js +0 -23
  158. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/services/treeViewsDnd.es.js.map +0 -1
  159. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/services/treeViewsDndService.es.js +0 -14
  160. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/services/treeViewsDndService.es.js.map +0 -1
  161. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/tokens/sparseMultilineTokens.es.js +0 -389
  162. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/common/tokens/sparseMultilineTokens.es.js.map +0 -1
  163. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/anchorSelect/browser/anchorSelect.es.js +0 -182
  164. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/anchorSelect/browser/anchorSelect.es.js.map +0 -1
  165. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/bracketMatching/browser/bracketMatching.es.js +0 -370
  166. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/bracketMatching/browser/bracketMatching.es.js.map +0 -1
  167. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/caretOperations/browser/caretOperations.es.js +0 -46
  168. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/caretOperations/browser/caretOperations.es.js.map +0 -1
  169. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/caretOperations/browser/moveCaretCommand.es.js +0 -44
  170. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/caretOperations/browser/moveCaretCommand.es.js.map +0 -1
  171. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/caretOperations/browser/transpose.es.js +0 -59
  172. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/caretOperations/browser/transpose.es.js.map +0 -1
  173. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/clipboard/browser/clipboard.es.js +0 -258
  174. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/clipboard/browser/clipboard.es.js.map +0 -1
  175. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/codeAction/browser/codeAction.es.js +0 -271
  176. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/codeAction/browser/codeAction.es.js.map +0 -1
  177. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/codeAction/browser/codeActionCommands.es.js +0 -231
  178. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/codeAction/browser/codeActionCommands.es.js.map +0 -1
  179. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/codeAction/browser/codeActionContributions.es.js +0 -61
  180. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/codeAction/browser/codeActionContributions.es.js.map +0 -1
  181. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/codeAction/browser/codeActionController.es.js +0 -368
  182. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/codeAction/browser/codeActionController.es.js.map +0 -1
  183. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/codeAction/browser/codeActionKeybindingResolver.es.js +0 -78
  184. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/codeAction/browser/codeActionKeybindingResolver.es.js.map +0 -1
  185. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/codeAction/browser/codeActionMenu.es.js +0 -65
  186. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/codeAction/browser/codeActionMenu.es.js.map +0 -1
  187. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/codeAction/browser/codeActionModel.es.js +0 -317
  188. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/codeAction/browser/codeActionModel.es.js.map +0 -1
  189. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/codeAction/browser/lightBulbWidget.es.js +0 -413
  190. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/codeAction/browser/lightBulbWidget.es.js.map +0 -1
  191. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/codeAction/common/types.es.js +0 -141
  192. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/codeAction/common/types.es.js.map +0 -1
  193. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/codelens/browser/codeLensCache.es.js +0 -123
  194. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/codelens/browser/codeLensCache.es.js.map +0 -1
  195. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/codelens/browser/codelens.es.js +0 -94
  196. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/codelens/browser/codelens.es.js.map +0 -1
  197. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/codelens/browser/codelensController.es.js +0 -479
  198. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/codelens/browser/codelensController.es.js.map +0 -1
  199. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/codelens/browser/codelensWidget.es.js +0 -249
  200. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/codelens/browser/codelensWidget.es.js.map +0 -1
  201. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/colorPicker/browser/color.es.js +0 -113
  202. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/colorPicker/browser/color.es.js.map +0 -1
  203. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/colorPicker/browser/colorContributions.es.js +0 -61
  204. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/colorPicker/browser/colorContributions.es.js.map +0 -1
  205. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/colorPicker/browser/colorDetector.es.js +0 -263
  206. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/colorPicker/browser/colorDetector.es.js.map +0 -1
  207. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/colorPicker/browser/colorHoverParticipant.es.js +0 -254
  208. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/colorPicker/browser/colorHoverParticipant.es.js.map +0 -1
  209. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/colorPicker/browser/colorPickerModel.es.js +0 -72
  210. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/colorPicker/browser/colorPickerModel.es.js.map +0 -1
  211. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/colorPicker/browser/colorPickerWidget.es.js +0 -365
  212. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/colorPicker/browser/colorPickerWidget.es.js.map +0 -1
  213. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/colorPicker/browser/defaultDocumentColorProvider.es.js +0 -56
  214. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/colorPicker/browser/defaultDocumentColorProvider.es.js.map +0 -1
  215. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/colorPicker/browser/standaloneColorPickerActions.es.js +0 -89
  216. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/colorPicker/browser/standaloneColorPickerActions.es.js.map +0 -1
  217. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/colorPicker/browser/standaloneColorPickerWidget.es.js +0 -265
  218. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/colorPicker/browser/standaloneColorPickerWidget.es.js.map +0 -1
  219. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/comment/browser/blockCommentCommand.es.js +0 -127
  220. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/comment/browser/blockCommentCommand.es.js.map +0 -1
  221. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/comment/browser/comment.es.js +0 -159
  222. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/comment/browser/comment.es.js.map +0 -1
  223. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/comment/browser/lineCommentCommand.es.js +0 -302
  224. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/comment/browser/lineCommentCommand.es.js.map +0 -1
  225. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/contextmenu/browser/contextmenu.es.js +0 -358
  226. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/contextmenu/browser/contextmenu.es.js.map +0 -1
  227. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/cursorUndo/browser/cursorUndo.es.js +0 -142
  228. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/cursorUndo/browser/cursorUndo.es.js.map +0 -1
  229. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/diffEditorBreadcrumbs/browser/contribution.es.js +0 -60
  230. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/diffEditorBreadcrumbs/browser/contribution.es.js.map +0 -1
  231. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/dnd/browser/dnd.es.js +0 -207
  232. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/dnd/browser/dnd.es.js.map +0 -1
  233. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/dnd/browser/dragAndDropCommand.es.js +0 -45
  234. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/dnd/browser/dragAndDropCommand.es.js.map +0 -1
  235. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/documentSymbols/browser/documentSymbols.es.js +0 -19
  236. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/documentSymbols/browser/documentSymbols.es.js.map +0 -1
  237. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/documentSymbols/browser/outlineModel.es.js +0 -260
  238. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/documentSymbols/browser/outlineModel.es.js.map +0 -1
  239. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/dropOrPasteInto/browser/copyPasteContribution.es.js +0 -95
  240. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/dropOrPasteInto/browser/copyPasteContribution.es.js.map +0 -1
  241. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/dropOrPasteInto/browser/copyPasteController.es.js +0 -504
  242. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/dropOrPasteInto/browser/copyPasteController.es.js.map +0 -1
  243. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/dropOrPasteInto/browser/defaultProviders.es.js +0 -214
  244. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/dropOrPasteInto/browser/defaultProviders.es.js.map +0 -1
  245. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/dropOrPasteInto/browser/dropIntoEditorContribution.es.js +0 -62
  246. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/dropOrPasteInto/browser/dropIntoEditorContribution.es.js.map +0 -1
  247. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/dropOrPasteInto/browser/dropIntoEditorController.es.js +0 -168
  248. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/dropOrPasteInto/browser/dropIntoEditorController.es.js.map +0 -1
  249. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/dropOrPasteInto/browser/edit.es.js +0 -75
  250. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/dropOrPasteInto/browser/edit.es.js.map +0 -1
  251. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/dropOrPasteInto/browser/postEditWidget.es.js +0 -211
  252. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/dropOrPasteInto/browser/postEditWidget.es.js.map +0 -1
  253. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/editorState/browser/editorState.es.js +0 -102
  254. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/editorState/browser/editorState.es.js.map +0 -1
  255. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/find/browser/findController.es.js +0 -1074
  256. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/find/browser/findController.es.js.map +0 -1
  257. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/find/browser/findDecorations.es.js +0 -301
  258. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/find/browser/findDecorations.es.js.map +0 -1
  259. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/find/browser/findModel.es.js +0 -517
  260. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/find/browser/findModel.es.js.map +0 -1
  261. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/find/browser/findOptionsWidget.es.js +0 -155
  262. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/find/browser/findOptionsWidget.es.js.map +0 -1
  263. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/find/browser/findState.es.js +0 -273
  264. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/find/browser/findState.es.js.map +0 -1
  265. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/find/browser/findWidget.es.js +0 -1208
  266. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/find/browser/findWidget.es.js.map +0 -1
  267. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/find/browser/replaceAllCommand.es.js +0 -46
  268. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/find/browser/replaceAllCommand.es.js.map +0 -1
  269. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/find/browser/replacePattern.es.js +0 -237
  270. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/find/browser/replacePattern.es.js.map +0 -1
  271. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/folding/browser/folding.es.js +0 -1258
  272. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/folding/browser/folding.es.js.map +0 -1
  273. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/folding/browser/foldingDecorations.es.js +0 -161
  274. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/folding/browser/foldingDecorations.es.js.map +0 -1
  275. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/folding/browser/foldingModel.es.js +0 -453
  276. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/folding/browser/foldingModel.es.js.map +0 -1
  277. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/folding/browser/foldingRanges.es.js +0 -347
  278. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/folding/browser/foldingRanges.es.js.map +0 -1
  279. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/folding/browser/hiddenRangeModel.es.js +0 -124
  280. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/folding/browser/hiddenRangeModel.es.js.map +0 -1
  281. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/folding/browser/indentRangeProvider.es.js +0 -152
  282. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/folding/browser/indentRangeProvider.es.js.map +0 -1
  283. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/folding/browser/syntaxRangeProvider.es.js +0 -169
  284. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/folding/browser/syntaxRangeProvider.es.js.map +0 -1
  285. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/fontZoom/browser/fontZoom.es.js +0 -46
  286. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/fontZoom/browser/fontZoom.es.js.map +0 -1
  287. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/format/browser/formatActions.es.js +0 -271
  288. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/format/browser/formatActions.es.js.map +0 -1
  289. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/format/browser/formattingEdit.es.js +0 -52
  290. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/format/browser/formattingEdit.es.js.map +0 -1
  291. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/gotoError/browser/gotoError.es.js +0 -281
  292. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/gotoError/browser/gotoError.es.js.map +0 -1
  293. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/gotoError/browser/gotoErrorWidget.es.js +0 -350
  294. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/gotoError/browser/gotoErrorWidget.es.js.map +0 -1
  295. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/gotoError/browser/markerNavigationService.es.js +0 -194
  296. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/gotoError/browser/markerNavigationService.es.js.map +0 -1
  297. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/gotoSymbol/browser/goToCommands.es.js +0 -709
  298. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/gotoSymbol/browser/goToCommands.es.js.map +0 -1
  299. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/gotoSymbol/browser/goToSymbol.es.js +0 -126
  300. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/gotoSymbol/browser/goToSymbol.es.js.map +0 -1
  301. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/gotoSymbol/browser/link/clickLinkGesture.es.js +0 -143
  302. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/gotoSymbol/browser/link/clickLinkGesture.es.js.map +0 -1
  303. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/gotoSymbol/browser/link/goToDefinitionAtPosition.es.js +0 -248
  304. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/gotoSymbol/browser/link/goToDefinitionAtPosition.es.js.map +0 -1
  305. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/gotoSymbol/browser/peek/referencesController.es.js +0 -393
  306. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/gotoSymbol/browser/peek/referencesController.es.js.map +0 -1
  307. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/gotoSymbol/browser/peek/referencesTree.es.js +0 -189
  308. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/gotoSymbol/browser/peek/referencesTree.es.js.map +0 -1
  309. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/gotoSymbol/browser/peek/referencesWidget.es.js +0 -458
  310. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/gotoSymbol/browser/peek/referencesWidget.es.js.map +0 -1
  311. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/gotoSymbol/browser/referencesModel.es.js +0 -232
  312. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/gotoSymbol/browser/referencesModel.es.js.map +0 -1
  313. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/gotoSymbol/browser/symbolNavigation.es.js +0 -181
  314. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/gotoSymbol/browser/symbolNavigation.es.js.map +0 -1
  315. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/hover/browser/contentHoverComputer.es.js +0 -92
  316. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/hover/browser/contentHoverComputer.es.js.map +0 -1
  317. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/hover/browser/contentHoverController2.es.js +0 -298
  318. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/hover/browser/contentHoverController2.es.js.map +0 -1
  319. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/hover/browser/contentHoverRendered.es.js +0 -259
  320. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/hover/browser/contentHoverRendered.es.js.map +0 -1
  321. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/hover/browser/contentHoverStatusBar.es.js +0 -50
  322. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/hover/browser/contentHoverStatusBar.es.js.map +0 -1
  323. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/hover/browser/contentHoverTypes.es.js +0 -28
  324. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/hover/browser/contentHoverTypes.es.js.map +0 -1
  325. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/hover/browser/contentHoverWidget.es.js +0 -383
  326. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/hover/browser/contentHoverWidget.es.js.map +0 -1
  327. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/hover/browser/contentHoverWidgetWrapper.es.js +0 -340
  328. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/hover/browser/contentHoverWidgetWrapper.es.js.map +0 -1
  329. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/hover/browser/getHover.es.js +0 -46
  330. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/hover/browser/getHover.es.js.map +0 -1
  331. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/hover/browser/hoverAccessibleViews.es.js +0 -12
  332. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/hover/browser/hoverAccessibleViews.es.js.map +0 -1
  333. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/hover/browser/hoverActionIds.es.js +0 -32
  334. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/hover/browser/hoverActionIds.es.js.map +0 -1
  335. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/hover/browser/hoverActions.es.js +0 -452
  336. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/hover/browser/hoverActions.es.js.map +0 -1
  337. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/hover/browser/hoverContribution.es.js +0 -60
  338. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/hover/browser/hoverContribution.es.js.map +0 -1
  339. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/hover/browser/hoverOperation.es.js +0 -152
  340. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/hover/browser/hoverOperation.es.js.map +0 -1
  341. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/hover/browser/hoverTypes.es.js +0 -60
  342. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/hover/browser/hoverTypes.es.js.map +0 -1
  343. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/hover/browser/hoverUtils.es.js +0 -12
  344. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/hover/browser/hoverUtils.es.js.map +0 -1
  345. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/hover/browser/marginHoverComputer.es.js +0 -52
  346. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/hover/browser/marginHoverComputer.es.js.map +0 -1
  347. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/hover/browser/marginHoverController.es.js +0 -174
  348. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/hover/browser/marginHoverController.es.js.map +0 -1
  349. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/hover/browser/marginHoverWidget.es.js +0 -172
  350. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/hover/browser/marginHoverWidget.es.js.map +0 -1
  351. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/hover/browser/markdownHoverParticipant.es.js +0 -386
  352. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/hover/browser/markdownHoverParticipant.es.js.map +0 -1
  353. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/hover/browser/markerHoverParticipant.es.js +0 -239
  354. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/hover/browser/markerHoverParticipant.es.js.map +0 -1
  355. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/hover/browser/resizableContentWidget.es.js +0 -91
  356. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/hover/browser/resizableContentWidget.es.js.map +0 -1
  357. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/inPlaceReplace/browser/inPlaceReplace.es.js +0 -153
  358. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/inPlaceReplace/browser/inPlaceReplace.es.js.map +0 -1
  359. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/inPlaceReplace/browser/inPlaceReplaceCommand.es.js +0 -23
  360. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/inPlaceReplace/browser/inPlaceReplaceCommand.es.js.map +0 -1
  361. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/indentation/browser/indentation.es.js +0 -605
  362. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/indentation/browser/indentation.es.js.map +0 -1
  363. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/indentation/common/indentUtils.es.js +0 -31
  364. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/indentation/common/indentUtils.es.js.map +0 -1
  365. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/indentation/common/indentation.es.js +0 -83
  366. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/indentation/common/indentation.es.js.map +0 -1
  367. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/inlayHints/browser/inlayHints.es.js +0 -142
  368. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/inlayHints/browser/inlayHints.es.js.map +0 -1
  369. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/inlayHints/browser/inlayHintsContribution.es.js +0 -12
  370. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/inlayHints/browser/inlayHintsContribution.es.js.map +0 -1
  371. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/inlayHints/browser/inlayHintsController.es.js +0 -566
  372. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/inlayHints/browser/inlayHintsController.es.js.map +0 -1
  373. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/inlayHints/browser/inlayHintsHover.es.js +0 -147
  374. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/inlayHints/browser/inlayHintsHover.es.js.map +0 -1
  375. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/inlayHints/browser/inlayHintsLocations.es.js +0 -94
  376. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/inlayHints/browser/inlayHintsLocations.es.js.map +0 -1
  377. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/inlineCompletions/browser/controller/commandIds.es.js +0 -9
  378. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/inlineCompletions/browser/controller/commandIds.es.js.map +0 -1
  379. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/inlineCompletions/browser/controller/commands.es.js +0 -212
  380. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/inlineCompletions/browser/controller/commands.es.js.map +0 -1
  381. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionContextKeys.es.js +0 -62
  382. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionContextKeys.es.js.map +0 -1
  383. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionsController.es.js +0 -286
  384. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionsController.es.js.map +0 -1
  385. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/inlineCompletions/browser/hintsWidget/hoverParticipant.es.js +0 -153
  386. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/inlineCompletions/browser/hintsWidget/hoverParticipant.es.js.map +0 -1
  387. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/inlineCompletions/browser/hintsWidget/inlineCompletionsHintsWidget.es.js +0 -323
  388. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/inlineCompletions/browser/hintsWidget/inlineCompletionsHintsWidget.es.js.map +0 -1
  389. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/inlineCompletions/browser/inlineCompletions.contribution.es.js +0 -25
  390. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/inlineCompletions/browser/inlineCompletions.contribution.es.js.map +0 -1
  391. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/inlineCompletions/browser/inlineCompletionsAccessibleView.es.js +0 -6
  392. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/inlineCompletions/browser/inlineCompletionsAccessibleView.es.js.map +0 -1
  393. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/inlineCompletions/browser/model/ghostText.es.js +0 -92
  394. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/inlineCompletions/browser/model/ghostText.es.js.map +0 -1
  395. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsModel.es.js +0 -484
  396. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsModel.es.js.map +0 -1
  397. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsSource.es.js +0 -268
  398. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsSource.es.js.map +0 -1
  399. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/inlineCompletions/browser/model/provideInlineCompletions.es.js +0 -224
  400. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/inlineCompletions/browser/model/provideInlineCompletions.es.js.map +0 -1
  401. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/inlineCompletions/browser/model/singleTextEdit.es.js +0 -166
  402. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/inlineCompletions/browser/model/singleTextEdit.es.js.map +0 -1
  403. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/inlineCompletions/browser/model/suggestWidgetAdaptor.es.js +0 -173
  404. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/inlineCompletions/browser/model/suggestWidgetAdaptor.es.js.map +0 -1
  405. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/inlineCompletions/browser/utils.es.js +0 -55
  406. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/inlineCompletions/browser/utils.es.js.map +0 -1
  407. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/inlineCompletions/browser/view/ghostTextView.es.js +0 -311
  408. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/inlineCompletions/browser/view/ghostTextView.es.js.map +0 -1
  409. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/inlineEdit/browser/commandIds.es.js +0 -11
  410. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/inlineEdit/browser/commandIds.es.js.map +0 -1
  411. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/inlineEdit/browser/commands.es.js +0 -141
  412. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/inlineEdit/browser/commands.es.js.map +0 -1
  413. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/inlineEdit/browser/ghostTextWidget.es.js +0 -198
  414. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/inlineEdit/browser/ghostTextWidget.es.js.map +0 -1
  415. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/inlineEdit/browser/inlineEdit.contribution.es.js +0 -15
  416. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/inlineEdit/browser/inlineEdit.contribution.es.js.map +0 -1
  417. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/inlineEdit/browser/inlineEditController.es.js +0 -327
  418. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/inlineEdit/browser/inlineEditController.es.js.map +0 -1
  419. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/inlineEdit/browser/inlineEditHintsWidget.es.js +0 -208
  420. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/inlineEdit/browser/inlineEditHintsWidget.es.js.map +0 -1
  421. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/inlineEdit/browser/inlineEditSideBySideWidget.es.js +0 -310
  422. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/inlineEdit/browser/inlineEditSideBySideWidget.es.js.map +0 -1
  423. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/inlineEdits/browser/commands.es.js +0 -138
  424. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/inlineEdits/browser/commands.es.js.map +0 -1
  425. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/inlineEdits/browser/consts.es.js +0 -15
  426. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/inlineEdits/browser/consts.es.js.map +0 -1
  427. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/inlineEdits/browser/inlineEdits.contribution.es.js +0 -15
  428. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/inlineEdits/browser/inlineEdits.contribution.es.js.map +0 -1
  429. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/inlineEdits/browser/inlineEditsController.es.js +0 -105
  430. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/inlineEdits/browser/inlineEditsController.es.js.map +0 -1
  431. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/inlineEdits/browser/inlineEditsModel.es.js +0 -236
  432. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/inlineEdits/browser/inlineEditsModel.es.js.map +0 -1
  433. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/inlineEdits/browser/inlineEditsWidget.es.js +0 -322
  434. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/inlineEdits/browser/inlineEditsWidget.es.js.map +0 -1
  435. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/inlineProgress/browser/inlineProgress.es.js +0 -149
  436. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/inlineProgress/browser/inlineProgress.es.js.map +0 -1
  437. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/lineSelection/browser/lineSelection.es.js +0 -35
  438. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/lineSelection/browser/lineSelection.es.js.map +0 -1
  439. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/linesOperations/browser/copyLinesCommand.es.js +0 -67
  440. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/linesOperations/browser/copyLinesCommand.es.js.map +0 -1
  441. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/linesOperations/browser/linesOperations.es.js +0 -1114
  442. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/linesOperations/browser/linesOperations.es.js.map +0 -1
  443. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/linesOperations/browser/moveLinesCommand.es.js +0 -347
  444. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/linesOperations/browser/moveLinesCommand.es.js.map +0 -1
  445. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/linesOperations/browser/sortLinesCommand.es.js +0 -78
  446. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/linesOperations/browser/sortLinesCommand.es.js.map +0 -1
  447. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/linkedEditing/browser/linkedEditing.es.js +0 -382
  448. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/linkedEditing/browser/linkedEditing.es.js.map +0 -1
  449. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/links/browser/getLinks.es.js +0 -141
  450. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/links/browser/getLinks.es.js.map +0 -1
  451. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/links/browser/links.es.js +0 -374
  452. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/links/browser/links.es.js.map +0 -1
  453. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/longLinesHelper/browser/longLinesHelper.es.js +0 -28
  454. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/longLinesHelper/browser/longLinesHelper.es.js.map +0 -1
  455. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/message/browser/messageController.es.js +0 -190
  456. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/message/browser/messageController.es.js.map +0 -1
  457. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/multicursor/browser/multicursor.es.js +0 -1088
  458. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/multicursor/browser/multicursor.es.js.map +0 -1
  459. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/parameterHints/browser/parameterHints.es.js +0 -151
  460. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/parameterHints/browser/parameterHints.es.js.map +0 -1
  461. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/parameterHints/browser/parameterHintsModel.es.js +0 -262
  462. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/parameterHints/browser/parameterHintsModel.es.js.map +0 -1
  463. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/parameterHints/browser/parameterHintsWidget.es.js +0 -328
  464. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/parameterHints/browser/parameterHintsWidget.es.js.map +0 -1
  465. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/parameterHints/browser/provideSignatureHelp.es.js +0 -55
  466. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/parameterHints/browser/provideSignatureHelp.es.js.map +0 -1
  467. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/peekView/browser/peekView.es.js +0 -267
  468. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/peekView/browser/peekView.es.js.map +0 -1
  469. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/placeholderText/browser/placeholderText.contribution.es.js +0 -15
  470. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/placeholderText/browser/placeholderText.contribution.es.js.map +0 -1
  471. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/placeholderText/browser/placeholderTextContribution.es.js +0 -85
  472. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/placeholderText/browser/placeholderTextContribution.es.js.map +0 -1
  473. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/readOnlyMessage/browser/contribution.es.js +0 -41
  474. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/readOnlyMessage/browser/contribution.es.js.map +0 -1
  475. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/rename/browser/rename.es.js +0 -475
  476. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/rename/browser/rename.es.js.map +0 -1
  477. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/rename/browser/renameWidget.es.js +0 -756
  478. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/rename/browser/renameWidget.es.js.map +0 -1
  479. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/sectionHeaders/browser/sectionHeaders.es.js +0 -195
  480. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/sectionHeaders/browser/sectionHeaders.es.js.map +0 -1
  481. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/semanticTokens/browser/documentSemanticTokens.es.js +0 -334
  482. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/semanticTokens/browser/documentSemanticTokens.es.js.map +0 -1
  483. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/semanticTokens/browser/viewportSemanticTokens.es.js +0 -137
  484. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/semanticTokens/browser/viewportSemanticTokens.es.js.map +0 -1
  485. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/semanticTokens/common/getSemanticTokens.es.js +0 -197
  486. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/semanticTokens/common/getSemanticTokens.es.js.map +0 -1
  487. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/semanticTokens/common/semanticTokensConfig.es.js +0 -14
  488. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/semanticTokens/common/semanticTokensConfig.es.js.map +0 -1
  489. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/smartSelect/browser/bracketSelections.es.js +0 -134
  490. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/smartSelect/browser/bracketSelections.es.js.map +0 -1
  491. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/smartSelect/browser/smartSelect.es.js +0 -277
  492. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/smartSelect/browser/smartSelect.es.js.map +0 -1
  493. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/smartSelect/browser/wordSelections.es.js +0 -69
  494. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/smartSelect/browser/wordSelections.es.js.map +0 -1
  495. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/snippet/browser/snippetController2.es.js +0 -281
  496. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/snippet/browser/snippetController2.es.js.map +0 -1
  497. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/snippet/browser/snippetParser.es.js +0 -926
  498. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/snippet/browser/snippetParser.es.js.map +0 -1
  499. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/snippet/browser/snippetSession.es.js +0 -547
  500. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/snippet/browser/snippetSession.es.js.map +0 -1
  501. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/snippet/browser/snippetVariables.es.js +0 -282
  502. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/snippet/browser/snippetVariables.es.js.map +0 -1
  503. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/stickyScroll/browser/stickyScrollActions.es.js +0 -139
  504. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/stickyScroll/browser/stickyScrollActions.es.js.map +0 -1
  505. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/stickyScroll/browser/stickyScrollContribution.es.js +0 -17
  506. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/stickyScroll/browser/stickyScrollContribution.es.js.map +0 -1
  507. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/stickyScroll/browser/stickyScrollController.es.js +0 -537
  508. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/stickyScroll/browser/stickyScrollController.es.js.map +0 -1
  509. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/stickyScroll/browser/stickyScrollElement.es.js +0 -27
  510. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/stickyScroll/browser/stickyScrollElement.es.js.map +0 -1
  511. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/stickyScroll/browser/stickyScrollModelProvider.es.js +0 -321
  512. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/stickyScroll/browser/stickyScrollModelProvider.es.js.map +0 -1
  513. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/stickyScroll/browser/stickyScrollProvider.es.js +0 -175
  514. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/stickyScroll/browser/stickyScrollProvider.es.js.map +0 -1
  515. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/stickyScroll/browser/stickyScrollWidget.es.js +0 -451
  516. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/stickyScroll/browser/stickyScrollWidget.es.js.map +0 -1
  517. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/suggest/browser/completionModel.es.js +0 -176
  518. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/suggest/browser/completionModel.es.js.map +0 -1
  519. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/suggest/browser/suggest.es.js +0 -305
  520. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/suggest/browser/suggest.es.js.map +0 -1
  521. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/suggest/browser/suggestAlternatives.es.js +0 -90
  522. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/suggest/browser/suggestAlternatives.es.js.map +0 -1
  523. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/suggest/browser/suggestCommitCharacters.es.js +0 -56
  524. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/suggest/browser/suggestCommitCharacters.es.js.map +0 -1
  525. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/suggest/browser/suggestController.es.js +0 -983
  526. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/suggest/browser/suggestController.es.js.map +0 -1
  527. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/suggest/browser/suggestInlineCompletions.es.js +0 -185
  528. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/suggest/browser/suggestInlineCompletions.es.js.map +0 -1
  529. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/suggest/browser/suggestMemory.es.js +0 -253
  530. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/suggest/browser/suggestMemory.es.js.map +0 -1
  531. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/suggest/browser/suggestModel.es.js +0 -724
  532. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/suggest/browser/suggestModel.es.js.map +0 -1
  533. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/suggest/browser/suggestOvertypingCapturer.es.js +0 -58
  534. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/suggest/browser/suggestOvertypingCapturer.es.js.map +0 -1
  535. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/suggest/browser/suggestWidget.es.js +0 -909
  536. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/suggest/browser/suggestWidget.es.js.map +0 -1
  537. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/suggest/browser/suggestWidgetDetails.es.js +0 -402
  538. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/suggest/browser/suggestWidgetDetails.es.js.map +0 -1
  539. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/suggest/browser/suggestWidgetRenderer.es.js +0 -212
  540. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/suggest/browser/suggestWidgetRenderer.es.js.map +0 -1
  541. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/suggest/browser/suggestWidgetStatus.es.js +0 -72
  542. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/suggest/browser/suggestWidgetStatus.es.js.map +0 -1
  543. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/suggest/browser/wordContextKey.es.js +0 -71
  544. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/suggest/browser/wordContextKey.es.js.map +0 -1
  545. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/suggest/browser/wordDistance.es.js +0 -66
  546. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/suggest/browser/wordDistance.es.js.map +0 -1
  547. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/symbolIcons/browser/symbolIcons.es.js +0 -97
  548. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/symbolIcons/browser/symbolIcons.es.js.map +0 -1
  549. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/toggleTabFocusMode/browser/toggleTabFocusMode.es.js +0 -43
  550. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/toggleTabFocusMode/browser/toggleTabFocusMode.es.js.map +0 -1
  551. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/tokenization/browser/tokenization.es.js +0 -26
  552. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/tokenization/browser/tokenization.es.js.map +0 -1
  553. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/unicodeHighlighter/browser/bannerController.es.js +0 -113
  554. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/unicodeHighlighter/browser/bannerController.es.js.map +0 -1
  555. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter.es.js +0 -702
  556. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter.es.js.map +0 -1
  557. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/unusualLineTerminators/browser/unusualLineTerminators.es.js +0 -121
  558. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/unusualLineTerminators/browser/unusualLineTerminators.es.js.map +0 -1
  559. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/wordHighlighter/browser/highlightDecorations.es.js +0 -110
  560. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/wordHighlighter/browser/highlightDecorations.es.js.map +0 -1
  561. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/wordHighlighter/browser/textualHighlightProvider.es.js +0 -77
  562. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/wordHighlighter/browser/textualHighlightProvider.es.js.map +0 -1
  563. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/wordHighlighter/browser/wordHighlighter.es.js +0 -712
  564. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/wordHighlighter/browser/wordHighlighter.es.js.map +0 -1
  565. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/wordOperations/browser/wordOperations.es.js +0 -523
  566. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/wordOperations/browser/wordOperations.es.js.map +0 -1
  567. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/wordPartOperations/browser/wordPartOperations.es.js +0 -171
  568. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/wordPartOperations/browser/wordPartOperations.es.js.map +0 -1
  569. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/zoneWidget/browser/zoneWidget.es.js +0 -401
  570. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/contrib/zoneWidget/browser/zoneWidget.es.js.map +0 -1
  571. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/language/json/jsonMode.es.js +0 -2758
  572. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/language/json/jsonMode.es.js.map +0 -1
  573. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/language/json/monaco.contribution.es.js +0 -98
  574. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/language/json/monaco.contribution.es.js.map +0 -1
  575. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/language/typescript/monaco.contribution.es.js +0 -287
  576. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/language/typescript/monaco.contribution.es.js.map +0 -1
  577. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/language/typescript/tsMode.es.js +0 -1244
  578. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/language/typescript/tsMode.es.js.map +0 -1
  579. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/platform/accessibility/browser/accessibleViewRegistry.es.js +0 -23
  580. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/platform/accessibility/browser/accessibleViewRegistry.es.js.map +0 -1
  581. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/platform/action/common/actionCommonCategories.es.js +0 -13
  582. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/platform/action/common/actionCommonCategories.es.js.map +0 -1
  583. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/platform/actionWidget/browser/actionList.es.js +0 -285
  584. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/platform/actionWidget/browser/actionList.es.js.map +0 -1
  585. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/platform/actionWidget/browser/actionWidget.es.js +0 -265
  586. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/platform/actionWidget/browser/actionWidget.es.js.map +0 -1
  587. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/platform/dnd/browser/dnd.es.js +0 -35
  588. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/platform/dnd/browser/dnd.es.js.map +0 -1
  589. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/platform/files/common/files.es.js +0 -10
  590. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/platform/files/common/files.es.js.map +0 -1
  591. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/platform/history/browser/contextScopedHistoryWidget.es.js +0 -113
  592. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/platform/history/browser/contextScopedHistoryWidget.es.js.map +0 -1
  593. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/platform/history/browser/historyWidgetKeybindingHint.es.js +0 -8
  594. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/platform/history/browser/historyWidgetKeybindingHint.es.js.map +0 -1
  595. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/platform/observable/common/wrapInReloadableClass.es.js +0 -59
  596. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/platform/observable/common/wrapInReloadableClass.es.js.map +0 -1
  597. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/platform/opener/browser/link.es.js +0 -95
  598. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/platform/opener/browser/link.es.js.map +0 -1
  599. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/platform/severityIcon/browser/severityIcon.es.js +0 -26
  600. package/dist/node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/platform/severityIcon/browser/severityIcon.es.js.map +0 -1
@@ -1,17 +1,16 @@
1
1
  import { localize } from "../../nls.es.js";
2
- import { URI } from "../../base/common/uri.es.js";
2
+ import "../../base/common/path.es.js";
3
+ import "../../base/common/platform.es.js";
3
4
  import { ICodeEditorService } from "./services/codeEditorService.es.js";
4
- import { Position } from "../common/core/position.es.js";
5
- import { IModelService } from "../common/services/model.es.js";
6
- import { ITextModelService } from "../common/services/resolverService.es.js";
7
- import { MenuId, MenuRegistry, Action2 } from "../../platform/actions/common/actions.es.js";
5
+ import "../common/services/model.es.js";
6
+ import "../common/services/resolverService.es.js";
7
+ import { MenuId, MenuRegistry } from "../../platform/actions/common/actions.es.js";
8
8
  import { CommandsRegistry } from "../../platform/commands/common/commands.es.js";
9
9
  import { IContextKeyService, ContextKeyExpr } from "../../platform/contextkey/common/contextkey.es.js";
10
- import { IInstantiationService } from "../../platform/instantiation/common/instantiation.es.js";
10
+ import "../../platform/instantiation/common/instantiation.es.js";
11
11
  import { KeybindingsRegistry } from "../../platform/keybinding/common/keybindingsRegistry.es.js";
12
12
  import { Registry } from "../../platform/registry/common/platform.es.js";
13
- import { ITelemetryService } from "../../platform/telemetry/common/telemetry.es.js";
14
- import { assertType } from "../../base/common/types.es.js";
13
+ import "../../platform/telemetry/common/telemetry.es.js";
15
14
  import { ILogService } from "../../platform/log/common/log.es.js";
16
15
  import { getActiveElement } from "../../base/browser/dom.es.js";
17
16
  class Command {
@@ -164,142 +163,10 @@ class EditorCommand extends Command {
164
163
  return EditorCommand.runEditorCommand(accessor, args, this.precondition, (accessor2, editor, args2) => this.runEditorCommand(accessor2, editor, args2));
165
164
  }
166
165
  }
167
- class EditorAction extends EditorCommand {
168
- static convertOptions(opts) {
169
- let menuOpts;
170
- if (Array.isArray(opts.menuOpts)) {
171
- menuOpts = opts.menuOpts;
172
- } else if (opts.menuOpts) {
173
- menuOpts = [opts.menuOpts];
174
- } else {
175
- menuOpts = [];
176
- }
177
- function withDefaults(item) {
178
- if (!item.menuId) {
179
- item.menuId = MenuId.EditorContext;
180
- }
181
- if (!item.title) {
182
- item.title = opts.label;
183
- }
184
- item.when = ContextKeyExpr.and(opts.precondition, item.when);
185
- return item;
186
- }
187
- if (Array.isArray(opts.contextMenuOpts)) {
188
- menuOpts.push(...opts.contextMenuOpts.map(withDefaults));
189
- } else if (opts.contextMenuOpts) {
190
- menuOpts.push(withDefaults(opts.contextMenuOpts));
191
- }
192
- opts.menuOpts = menuOpts;
193
- return opts;
194
- }
195
- constructor(opts) {
196
- super(EditorAction.convertOptions(opts));
197
- this.label = opts.label;
198
- this.alias = opts.alias;
199
- }
200
- runEditorCommand(accessor, editor, args) {
201
- this.reportTelemetry(accessor, editor);
202
- return this.run(accessor, editor, args || {});
203
- }
204
- reportTelemetry(accessor, editor) {
205
- accessor.get(ITelemetryService).publicLog2("editorActionInvoked", { name: this.label, id: this.id });
206
- }
207
- }
208
- class MultiEditorAction extends EditorAction {
209
- constructor() {
210
- super(...arguments);
211
- this._implementations = [];
212
- }
213
- /**
214
- * A higher priority gets to be looked at first
215
- */
216
- addImplementation(priority, implementation) {
217
- this._implementations.push([priority, implementation]);
218
- this._implementations.sort((a, b) => b[0] - a[0]);
219
- return {
220
- dispose: () => {
221
- for (let i = 0; i < this._implementations.length; i++) {
222
- if (this._implementations[i][1] === implementation) {
223
- this._implementations.splice(i, 1);
224
- return;
225
- }
226
- }
227
- }
228
- };
229
- }
230
- run(accessor, editor, args) {
231
- for (const impl of this._implementations) {
232
- const result = impl[1](accessor, editor, args);
233
- if (result) {
234
- if (typeof result === "boolean") {
235
- return;
236
- }
237
- return result;
238
- }
239
- }
240
- }
241
- }
242
- class EditorAction2 extends Action2 {
243
- run(accessor, ...args) {
244
- const codeEditorService = accessor.get(ICodeEditorService);
245
- const editor = codeEditorService.getFocusedCodeEditor() || codeEditorService.getActiveCodeEditor();
246
- if (!editor) {
247
- return;
248
- }
249
- return editor.invokeWithinContext((editorAccessor) => {
250
- var _a;
251
- const kbService = editorAccessor.get(IContextKeyService);
252
- const logService = editorAccessor.get(ILogService);
253
- const enabled = kbService.contextMatchesRules(this.desc.precondition ?? void 0);
254
- if (!enabled) {
255
- logService.debug(`[EditorAction2] NOT running command because its precondition is FALSE`, this.desc.id, (_a = this.desc.precondition) == null ? void 0 : _a.serialize());
256
- return;
257
- }
258
- return this.runEditorCommand(editorAccessor, editor, ...args);
259
- });
260
- }
261
- }
262
- function registerModelAndPositionCommand(id, handler) {
263
- CommandsRegistry.registerCommand(id, function(accessor, ...args) {
264
- const instaService = accessor.get(IInstantiationService);
265
- const [resource, position] = args;
266
- assertType(URI.isUri(resource));
267
- assertType(Position.isIPosition(position));
268
- const model = accessor.get(IModelService).getModel(resource);
269
- if (model) {
270
- const editorPosition = Position.lift(position);
271
- return instaService.invokeFunction(handler, model, editorPosition, ...args.slice(2));
272
- }
273
- return accessor.get(ITextModelService).createModelReference(resource).then((reference) => {
274
- return new Promise((resolve, reject) => {
275
- try {
276
- const result = instaService.invokeFunction(handler, reference.object.textEditorModel, Position.lift(position), args.slice(2));
277
- resolve(result);
278
- } catch (err) {
279
- reject(err);
280
- }
281
- }).finally(() => {
282
- reference.dispose();
283
- });
284
- });
285
- });
286
- }
287
166
  function registerEditorCommand(editorCommand) {
288
167
  EditorContributionRegistry.INSTANCE.registerEditorCommand(editorCommand);
289
168
  return editorCommand;
290
169
  }
291
- function registerEditorAction(ctor) {
292
- const action = new ctor();
293
- EditorContributionRegistry.INSTANCE.registerEditorAction(action);
294
- return action;
295
- }
296
- function registerMultiEditorAction(action) {
297
- EditorContributionRegistry.INSTANCE.registerEditorAction(action);
298
- return action;
299
- }
300
- function registerInstantiatedEditorAction(editorAction) {
301
- EditorContributionRegistry.INSTANCE.registerEditorAction(editorAction);
302
- }
303
170
  function registerEditorContribution(id, ctor, instantiation) {
304
171
  EditorContributionRegistry.INSTANCE.registerEditorContribution(id, ctor, instantiation);
305
172
  }
@@ -439,21 +306,14 @@ const SelectAllCommand = registerCommand(new MultiCommand({
439
306
  }));
440
307
  export {
441
308
  Command,
442
- EditorAction,
443
- EditorAction2,
444
309
  EditorCommand,
445
310
  EditorExtensionsRegistry,
446
311
  MultiCommand,
447
- MultiEditorAction,
448
312
  ProxyCommand,
449
313
  RedoCommand,
450
314
  SelectAllCommand,
451
315
  UndoCommand,
452
- registerEditorAction,
453
316
  registerEditorCommand,
454
- registerEditorContribution,
455
- registerInstantiatedEditorAction,
456
- registerModelAndPositionCommand,
457
- registerMultiEditorAction
317
+ registerEditorContribution
458
318
  };
459
319
  //# sourceMappingURL=editorExtensions.es.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"editorExtensions.es.js","sources":["../../../../../../../../../../../../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/editorExtensions.js"],"sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\nimport * as nls from '../../nls.js';\nimport { URI } from '../../base/common/uri.js';\nimport { ICodeEditorService } from './services/codeEditorService.js';\nimport { Position } from '../common/core/position.js';\nimport { IModelService } from '../common/services/model.js';\nimport { ITextModelService } from '../common/services/resolverService.js';\nimport { MenuId, MenuRegistry, Action2 } from '../../platform/actions/common/actions.js';\nimport { CommandsRegistry } from '../../platform/commands/common/commands.js';\nimport { ContextKeyExpr, IContextKeyService } from '../../platform/contextkey/common/contextkey.js';\nimport { IInstantiationService } from '../../platform/instantiation/common/instantiation.js';\nimport { KeybindingsRegistry } from '../../platform/keybinding/common/keybindingsRegistry.js';\nimport { Registry } from '../../platform/registry/common/platform.js';\nimport { ITelemetryService } from '../../platform/telemetry/common/telemetry.js';\nimport { assertType } from '../../base/common/types.js';\nimport { ILogService } from '../../platform/log/common/log.js';\nimport { getActiveElement } from '../../base/browser/dom.js';\nexport class Command {\n constructor(opts) {\n this.id = opts.id;\n this.precondition = opts.precondition;\n this._kbOpts = opts.kbOpts;\n this._menuOpts = opts.menuOpts;\n this.metadata = opts.metadata;\n }\n register() {\n if (Array.isArray(this._menuOpts)) {\n this._menuOpts.forEach(this._registerMenuItem, this);\n }\n else if (this._menuOpts) {\n this._registerMenuItem(this._menuOpts);\n }\n if (this._kbOpts) {\n const kbOptsArr = Array.isArray(this._kbOpts) ? this._kbOpts : [this._kbOpts];\n for (const kbOpts of kbOptsArr) {\n let kbWhen = kbOpts.kbExpr;\n if (this.precondition) {\n if (kbWhen) {\n kbWhen = ContextKeyExpr.and(kbWhen, this.precondition);\n }\n else {\n kbWhen = this.precondition;\n }\n }\n const desc = {\n id: this.id,\n weight: kbOpts.weight,\n args: kbOpts.args,\n when: kbWhen,\n primary: kbOpts.primary,\n secondary: kbOpts.secondary,\n win: kbOpts.win,\n linux: kbOpts.linux,\n mac: kbOpts.mac,\n };\n KeybindingsRegistry.registerKeybindingRule(desc);\n }\n }\n CommandsRegistry.registerCommand({\n id: this.id,\n handler: (accessor, args) => this.runCommand(accessor, args),\n metadata: this.metadata\n });\n }\n _registerMenuItem(item) {\n MenuRegistry.appendMenuItem(item.menuId, {\n group: item.group,\n command: {\n id: this.id,\n title: item.title,\n icon: item.icon,\n precondition: this.precondition\n },\n when: item.when,\n order: item.order\n });\n }\n}\nexport class MultiCommand extends Command {\n constructor() {\n super(...arguments);\n this._implementations = [];\n }\n /**\n * A higher priority gets to be looked at first\n */\n addImplementation(priority, name, implementation, when) {\n this._implementations.push({ priority, name, implementation, when });\n this._implementations.sort((a, b) => b.priority - a.priority);\n return {\n dispose: () => {\n for (let i = 0; i < this._implementations.length; i++) {\n if (this._implementations[i].implementation === implementation) {\n this._implementations.splice(i, 1);\n return;\n }\n }\n }\n };\n }\n runCommand(accessor, args) {\n const logService = accessor.get(ILogService);\n const contextKeyService = accessor.get(IContextKeyService);\n logService.trace(`Executing Command '${this.id}' which has ${this._implementations.length} bound.`);\n for (const impl of this._implementations) {\n if (impl.when) {\n const context = contextKeyService.getContext(getActiveElement());\n const value = impl.when.evaluate(context);\n if (!value) {\n continue;\n }\n }\n const result = impl.implementation(accessor, args);\n if (result) {\n logService.trace(`Command '${this.id}' was handled by '${impl.name}'.`);\n if (typeof result === 'boolean') {\n return;\n }\n return result;\n }\n }\n logService.trace(`The Command '${this.id}' was not handled by any implementation.`);\n }\n}\n//#endregion\n/**\n * A command that delegates to another command's implementation.\n *\n * This lets different commands be registered but share the same implementation\n */\nexport class ProxyCommand extends Command {\n constructor(command, opts) {\n super(opts);\n this.command = command;\n }\n runCommand(accessor, args) {\n return this.command.runCommand(accessor, args);\n }\n}\nexport class EditorCommand extends Command {\n /**\n * Create a command class that is bound to a certain editor contribution.\n */\n static bindToContribution(controllerGetter) {\n return class EditorControllerCommandImpl extends EditorCommand {\n constructor(opts) {\n super(opts);\n this._callback = opts.handler;\n }\n runEditorCommand(accessor, editor, args) {\n const controller = controllerGetter(editor);\n if (controller) {\n this._callback(controller, args);\n }\n }\n };\n }\n static runEditorCommand(accessor, args, precondition, runner) {\n const codeEditorService = accessor.get(ICodeEditorService);\n // Find the editor with text focus or active\n const editor = codeEditorService.getFocusedCodeEditor() || codeEditorService.getActiveCodeEditor();\n if (!editor) {\n // well, at least we tried...\n return;\n }\n return editor.invokeWithinContext((editorAccessor) => {\n const kbService = editorAccessor.get(IContextKeyService);\n if (!kbService.contextMatchesRules(precondition ?? undefined)) {\n // precondition does not hold\n return;\n }\n return runner(editorAccessor, editor, args);\n });\n }\n runCommand(accessor, args) {\n return EditorCommand.runEditorCommand(accessor, args, this.precondition, (accessor, editor, args) => this.runEditorCommand(accessor, editor, args));\n }\n}\nexport class EditorAction extends EditorCommand {\n static convertOptions(opts) {\n let menuOpts;\n if (Array.isArray(opts.menuOpts)) {\n menuOpts = opts.menuOpts;\n }\n else if (opts.menuOpts) {\n menuOpts = [opts.menuOpts];\n }\n else {\n menuOpts = [];\n }\n function withDefaults(item) {\n if (!item.menuId) {\n item.menuId = MenuId.EditorContext;\n }\n if (!item.title) {\n item.title = opts.label;\n }\n item.when = ContextKeyExpr.and(opts.precondition, item.when);\n return item;\n }\n if (Array.isArray(opts.contextMenuOpts)) {\n menuOpts.push(...opts.contextMenuOpts.map(withDefaults));\n }\n else if (opts.contextMenuOpts) {\n menuOpts.push(withDefaults(opts.contextMenuOpts));\n }\n opts.menuOpts = menuOpts;\n return opts;\n }\n constructor(opts) {\n super(EditorAction.convertOptions(opts));\n this.label = opts.label;\n this.alias = opts.alias;\n }\n runEditorCommand(accessor, editor, args) {\n this.reportTelemetry(accessor, editor);\n return this.run(accessor, editor, args || {});\n }\n reportTelemetry(accessor, editor) {\n accessor.get(ITelemetryService).publicLog2('editorActionInvoked', { name: this.label, id: this.id });\n }\n}\nexport class MultiEditorAction extends EditorAction {\n constructor() {\n super(...arguments);\n this._implementations = [];\n }\n /**\n * A higher priority gets to be looked at first\n */\n addImplementation(priority, implementation) {\n this._implementations.push([priority, implementation]);\n this._implementations.sort((a, b) => b[0] - a[0]);\n return {\n dispose: () => {\n for (let i = 0; i < this._implementations.length; i++) {\n if (this._implementations[i][1] === implementation) {\n this._implementations.splice(i, 1);\n return;\n }\n }\n }\n };\n }\n run(accessor, editor, args) {\n for (const impl of this._implementations) {\n const result = impl[1](accessor, editor, args);\n if (result) {\n if (typeof result === 'boolean') {\n return;\n }\n return result;\n }\n }\n }\n}\n//#endregion EditorAction\n//#region EditorAction2\nexport class EditorAction2 extends Action2 {\n run(accessor, ...args) {\n // Find the editor with text focus or active\n const codeEditorService = accessor.get(ICodeEditorService);\n const editor = codeEditorService.getFocusedCodeEditor() || codeEditorService.getActiveCodeEditor();\n if (!editor) {\n // well, at least we tried...\n return;\n }\n // precondition does hold\n return editor.invokeWithinContext((editorAccessor) => {\n const kbService = editorAccessor.get(IContextKeyService);\n const logService = editorAccessor.get(ILogService);\n const enabled = kbService.contextMatchesRules(this.desc.precondition ?? undefined);\n if (!enabled) {\n logService.debug(`[EditorAction2] NOT running command because its precondition is FALSE`, this.desc.id, this.desc.precondition?.serialize());\n return;\n }\n return this.runEditorCommand(editorAccessor, editor, ...args);\n });\n }\n}\n//#endregion\n// --- Registration of commands and actions\nexport function registerModelAndPositionCommand(id, handler) {\n CommandsRegistry.registerCommand(id, function (accessor, ...args) {\n const instaService = accessor.get(IInstantiationService);\n const [resource, position] = args;\n assertType(URI.isUri(resource));\n assertType(Position.isIPosition(position));\n const model = accessor.get(IModelService).getModel(resource);\n if (model) {\n const editorPosition = Position.lift(position);\n return instaService.invokeFunction(handler, model, editorPosition, ...args.slice(2));\n }\n return accessor.get(ITextModelService).createModelReference(resource).then(reference => {\n return new Promise((resolve, reject) => {\n try {\n const result = instaService.invokeFunction(handler, reference.object.textEditorModel, Position.lift(position), args.slice(2));\n resolve(result);\n }\n catch (err) {\n reject(err);\n }\n }).finally(() => {\n reference.dispose();\n });\n });\n });\n}\nexport function registerEditorCommand(editorCommand) {\n EditorContributionRegistry.INSTANCE.registerEditorCommand(editorCommand);\n return editorCommand;\n}\nexport function registerEditorAction(ctor) {\n const action = new ctor();\n EditorContributionRegistry.INSTANCE.registerEditorAction(action);\n return action;\n}\nexport function registerMultiEditorAction(action) {\n EditorContributionRegistry.INSTANCE.registerEditorAction(action);\n return action;\n}\nexport function registerInstantiatedEditorAction(editorAction) {\n EditorContributionRegistry.INSTANCE.registerEditorAction(editorAction);\n}\n/**\n * Registers an editor contribution. Editor contributions have a lifecycle which is bound\n * to a specific code editor instance.\n */\nexport function registerEditorContribution(id, ctor, instantiation) {\n EditorContributionRegistry.INSTANCE.registerEditorContribution(id, ctor, instantiation);\n}\nexport var EditorExtensionsRegistry;\n(function (EditorExtensionsRegistry) {\n function getEditorCommand(commandId) {\n return EditorContributionRegistry.INSTANCE.getEditorCommand(commandId);\n }\n EditorExtensionsRegistry.getEditorCommand = getEditorCommand;\n function getEditorActions() {\n return EditorContributionRegistry.INSTANCE.getEditorActions();\n }\n EditorExtensionsRegistry.getEditorActions = getEditorActions;\n function getEditorContributions() {\n return EditorContributionRegistry.INSTANCE.getEditorContributions();\n }\n EditorExtensionsRegistry.getEditorContributions = getEditorContributions;\n function getSomeEditorContributions(ids) {\n return EditorContributionRegistry.INSTANCE.getEditorContributions().filter(c => ids.indexOf(c.id) >= 0);\n }\n EditorExtensionsRegistry.getSomeEditorContributions = getSomeEditorContributions;\n function getDiffEditorContributions() {\n return EditorContributionRegistry.INSTANCE.getDiffEditorContributions();\n }\n EditorExtensionsRegistry.getDiffEditorContributions = getDiffEditorContributions;\n})(EditorExtensionsRegistry || (EditorExtensionsRegistry = {}));\n// Editor extension points\nconst Extensions = {\n EditorCommonContributions: 'editor.contributions'\n};\nclass EditorContributionRegistry {\n static { this.INSTANCE = new EditorContributionRegistry(); }\n constructor() {\n this.editorContributions = [];\n this.diffEditorContributions = [];\n this.editorActions = [];\n this.editorCommands = Object.create(null);\n }\n registerEditorContribution(id, ctor, instantiation) {\n this.editorContributions.push({ id, ctor: ctor, instantiation });\n }\n getEditorContributions() {\n return this.editorContributions.slice(0);\n }\n getDiffEditorContributions() {\n return this.diffEditorContributions.slice(0);\n }\n registerEditorAction(action) {\n action.register();\n this.editorActions.push(action);\n }\n getEditorActions() {\n return this.editorActions;\n }\n registerEditorCommand(editorCommand) {\n editorCommand.register();\n this.editorCommands[editorCommand.id] = editorCommand;\n }\n getEditorCommand(commandId) {\n return (this.editorCommands[commandId] || null);\n }\n}\nRegistry.add(Extensions.EditorCommonContributions, EditorContributionRegistry.INSTANCE);\nfunction registerCommand(command) {\n command.register();\n return command;\n}\nexport const UndoCommand = registerCommand(new MultiCommand({\n id: 'undo',\n precondition: undefined,\n kbOpts: {\n weight: 0 /* KeybindingWeight.EditorCore */,\n primary: 2048 /* KeyMod.CtrlCmd */ | 56 /* KeyCode.KeyZ */\n },\n menuOpts: [{\n menuId: MenuId.MenubarEditMenu,\n group: '1_do',\n title: nls.localize({ key: 'miUndo', comment: ['&& denotes a mnemonic'] }, \"&&Undo\"),\n order: 1\n }, {\n menuId: MenuId.CommandPalette,\n group: '',\n title: nls.localize('undo', \"Undo\"),\n order: 1\n }]\n}));\nregisterCommand(new ProxyCommand(UndoCommand, { id: 'default:undo', precondition: undefined }));\nexport const RedoCommand = registerCommand(new MultiCommand({\n id: 'redo',\n precondition: undefined,\n kbOpts: {\n weight: 0 /* KeybindingWeight.EditorCore */,\n primary: 2048 /* KeyMod.CtrlCmd */ | 55 /* KeyCode.KeyY */,\n secondary: [2048 /* KeyMod.CtrlCmd */ | 1024 /* KeyMod.Shift */ | 56 /* KeyCode.KeyZ */],\n mac: { primary: 2048 /* KeyMod.CtrlCmd */ | 1024 /* KeyMod.Shift */ | 56 /* KeyCode.KeyZ */ }\n },\n menuOpts: [{\n menuId: MenuId.MenubarEditMenu,\n group: '1_do',\n title: nls.localize({ key: 'miRedo', comment: ['&& denotes a mnemonic'] }, \"&&Redo\"),\n order: 2\n }, {\n menuId: MenuId.CommandPalette,\n group: '',\n title: nls.localize('redo', \"Redo\"),\n order: 1\n }]\n}));\nregisterCommand(new ProxyCommand(RedoCommand, { id: 'default:redo', precondition: undefined }));\nexport const SelectAllCommand = registerCommand(new MultiCommand({\n id: 'editor.action.selectAll',\n precondition: undefined,\n kbOpts: {\n weight: 0 /* KeybindingWeight.EditorCore */,\n kbExpr: null,\n primary: 2048 /* KeyMod.CtrlCmd */ | 31 /* KeyCode.KeyA */\n },\n menuOpts: [{\n menuId: MenuId.MenubarSelectionMenu,\n group: '1_basic',\n title: nls.localize({ key: 'miSelectAll', comment: ['&& denotes a mnemonic'] }, \"&&Select All\"),\n order: 1\n }, {\n menuId: MenuId.CommandPalette,\n group: '',\n title: nls.localize('selectAll', \"Select All\"),\n order: 1\n }]\n}));\n"],"names":["accessor","args","EditorExtensionsRegistry","nls.localize"],"mappings":";;;;;;;;;;;;;;;;AAoBO,MAAM,QAAQ;AAAA,EACjB,YAAY,MAAM;AACd,SAAK,KAAK,KAAK;AACf,SAAK,eAAe,KAAK;AACzB,SAAK,UAAU,KAAK;AACpB,SAAK,YAAY,KAAK;AACtB,SAAK,WAAW,KAAK;AAAA,EAC7B;AAAA,EACI,WAAW;AACP,QAAI,MAAM,QAAQ,KAAK,SAAS,GAAG;AAC/B,WAAK,UAAU,QAAQ,KAAK,mBAAmB,IAAI;AAAA,IAC/D,WACiB,KAAK,WAAW;AACrB,WAAK,kBAAkB,KAAK,SAAS;AAAA,IACjD;AACQ,QAAI,KAAK,SAAS;AACd,YAAM,YAAY,MAAM,QAAQ,KAAK,OAAO,IAAI,KAAK,UAAU,CAAC,KAAK,OAAO;AAC5E,iBAAW,UAAU,WAAW;AAC5B,YAAI,SAAS,OAAO;AACpB,YAAI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QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,SAAS,OAA4B;AAAA;AAAA,EACxC;AAAA,EACD,UAAU,CAAC;AAAA,IACH,QAAQ,OAAO;AAAA,IACf,OAAO;AAAA,IACP,OAAOA,SAAa,EAAE,KAAK,eAAe,SAAS,CAAC,uBAAuB,EAAG,GAAE,cAAc;AAAA,IAC9F,OAAO;AAAA,EACnB,GAAW;AAAA,IACC,QAAQ,OAAO;AAAA,IACf,OAAO;AAAA,IACP,OAAOA,SAAa,aAAa,YAAY;AAAA,IAC7C,OAAO;AAAA,EACV,CAAA;AACT,CAAC,CAAC;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"editorExtensions.es.js","sources":["../../../../../../../../../../../../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/editorExtensions.js"],"sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\nimport * as nls from '../../nls.js';\nimport { URI } from '../../base/common/uri.js';\nimport { ICodeEditorService } from './services/codeEditorService.js';\nimport { Position } from '../common/core/position.js';\nimport { IModelService } from '../common/services/model.js';\nimport { ITextModelService } from '../common/services/resolverService.js';\nimport { MenuId, MenuRegistry, Action2 } from '../../platform/actions/common/actions.js';\nimport { CommandsRegistry } from '../../platform/commands/common/commands.js';\nimport { ContextKeyExpr, IContextKeyService } from '../../platform/contextkey/common/contextkey.js';\nimport { IInstantiationService } from '../../platform/instantiation/common/instantiation.js';\nimport { KeybindingsRegistry } from '../../platform/keybinding/common/keybindingsRegistry.js';\nimport { Registry } from '../../platform/registry/common/platform.js';\nimport { ITelemetryService } from '../../platform/telemetry/common/telemetry.js';\nimport { assertType } from '../../base/common/types.js';\nimport { ILogService } from '../../platform/log/common/log.js';\nimport { getActiveElement } from '../../base/browser/dom.js';\nexport class Command {\n constructor(opts) {\n this.id = opts.id;\n this.precondition = opts.precondition;\n this._kbOpts = opts.kbOpts;\n this._menuOpts = opts.menuOpts;\n this.metadata = opts.metadata;\n }\n register() {\n if (Array.isArray(this._menuOpts)) {\n this._menuOpts.forEach(this._registerMenuItem, this);\n }\n else if (this._menuOpts) {\n this._registerMenuItem(this._menuOpts);\n }\n if (this._kbOpts) {\n const kbOptsArr = Array.isArray(this._kbOpts) ? this._kbOpts : [this._kbOpts];\n for (const kbOpts of kbOptsArr) {\n let kbWhen = kbOpts.kbExpr;\n if (this.precondition) {\n if (kbWhen) {\n kbWhen = ContextKeyExpr.and(kbWhen, this.precondition);\n }\n else {\n kbWhen = this.precondition;\n }\n }\n const desc = {\n id: this.id,\n weight: kbOpts.weight,\n args: kbOpts.args,\n when: kbWhen,\n primary: kbOpts.primary,\n secondary: kbOpts.secondary,\n win: kbOpts.win,\n linux: kbOpts.linux,\n mac: kbOpts.mac,\n };\n KeybindingsRegistry.registerKeybindingRule(desc);\n }\n }\n CommandsRegistry.registerCommand({\n id: this.id,\n handler: (accessor, args) => this.runCommand(accessor, args),\n metadata: this.metadata\n });\n }\n _registerMenuItem(item) {\n MenuRegistry.appendMenuItem(item.menuId, {\n group: item.group,\n command: {\n id: this.id,\n title: item.title,\n icon: item.icon,\n precondition: this.precondition\n },\n when: item.when,\n order: item.order\n });\n }\n}\nexport class MultiCommand extends Command {\n constructor() {\n super(...arguments);\n this._implementations = [];\n }\n /**\n * A higher priority gets to be looked at first\n */\n addImplementation(priority, name, implementation, when) {\n this._implementations.push({ priority, name, implementation, when });\n this._implementations.sort((a, b) => b.priority - a.priority);\n return {\n dispose: () => {\n for (let i = 0; i < this._implementations.length; i++) {\n if (this._implementations[i].implementation === implementation) {\n this._implementations.splice(i, 1);\n return;\n }\n }\n }\n };\n }\n runCommand(accessor, args) {\n const logService = accessor.get(ILogService);\n const contextKeyService = accessor.get(IContextKeyService);\n logService.trace(`Executing Command '${this.id}' which has ${this._implementations.length} bound.`);\n for (const impl of this._implementations) {\n if (impl.when) {\n const context = contextKeyService.getContext(getActiveElement());\n const value = impl.when.evaluate(context);\n if (!value) {\n continue;\n }\n }\n const result = impl.implementation(accessor, args);\n if (result) {\n logService.trace(`Command '${this.id}' was handled by '${impl.name}'.`);\n if (typeof result === 'boolean') {\n return;\n }\n return result;\n }\n }\n logService.trace(`The Command '${this.id}' was not handled by any implementation.`);\n }\n}\n//#endregion\n/**\n * A command that delegates to another command's implementation.\n *\n * This lets different commands be registered but share the same implementation\n */\nexport class ProxyCommand extends Command {\n constructor(command, opts) {\n super(opts);\n this.command = command;\n }\n runCommand(accessor, args) {\n return this.command.runCommand(accessor, args);\n }\n}\nexport class EditorCommand extends Command {\n /**\n * Create a command class that is bound to a certain editor contribution.\n */\n static bindToContribution(controllerGetter) {\n return class EditorControllerCommandImpl extends EditorCommand {\n constructor(opts) {\n super(opts);\n this._callback = opts.handler;\n }\n runEditorCommand(accessor, editor, args) {\n const controller = controllerGetter(editor);\n if (controller) {\n this._callback(controller, args);\n }\n }\n };\n }\n static runEditorCommand(accessor, args, precondition, runner) {\n const codeEditorService = accessor.get(ICodeEditorService);\n // Find the editor with text focus or active\n const editor = codeEditorService.getFocusedCodeEditor() || codeEditorService.getActiveCodeEditor();\n if (!editor) {\n // well, at least we tried...\n return;\n }\n return editor.invokeWithinContext((editorAccessor) => {\n const kbService = editorAccessor.get(IContextKeyService);\n if (!kbService.contextMatchesRules(precondition ?? undefined)) {\n // precondition does not hold\n return;\n }\n return runner(editorAccessor, editor, args);\n });\n }\n runCommand(accessor, args) {\n return EditorCommand.runEditorCommand(accessor, args, this.precondition, (accessor, editor, args) => this.runEditorCommand(accessor, editor, args));\n }\n}\nexport class EditorAction extends EditorCommand {\n static convertOptions(opts) {\n let menuOpts;\n if (Array.isArray(opts.menuOpts)) {\n menuOpts = opts.menuOpts;\n }\n else if (opts.menuOpts) {\n menuOpts = [opts.menuOpts];\n }\n else {\n menuOpts = [];\n }\n function withDefaults(item) {\n if (!item.menuId) {\n item.menuId = MenuId.EditorContext;\n }\n if (!item.title) {\n item.title = opts.label;\n }\n item.when = ContextKeyExpr.and(opts.precondition, item.when);\n return item;\n }\n if (Array.isArray(opts.contextMenuOpts)) {\n menuOpts.push(...opts.contextMenuOpts.map(withDefaults));\n }\n else if (opts.contextMenuOpts) {\n menuOpts.push(withDefaults(opts.contextMenuOpts));\n }\n opts.menuOpts = menuOpts;\n return opts;\n }\n constructor(opts) {\n super(EditorAction.convertOptions(opts));\n this.label = opts.label;\n this.alias = opts.alias;\n }\n runEditorCommand(accessor, editor, args) {\n this.reportTelemetry(accessor, editor);\n return this.run(accessor, editor, args || {});\n }\n reportTelemetry(accessor, editor) {\n accessor.get(ITelemetryService).publicLog2('editorActionInvoked', { name: this.label, id: this.id });\n }\n}\nexport class MultiEditorAction extends EditorAction {\n constructor() {\n super(...arguments);\n this._implementations = [];\n }\n /**\n * A higher priority gets to be looked at first\n */\n addImplementation(priority, implementation) {\n this._implementations.push([priority, implementation]);\n this._implementations.sort((a, b) => b[0] - a[0]);\n return {\n dispose: () => {\n for (let i = 0; i < this._implementations.length; i++) {\n if (this._implementations[i][1] === implementation) {\n this._implementations.splice(i, 1);\n return;\n }\n }\n }\n };\n }\n run(accessor, editor, args) {\n for (const impl of this._implementations) {\n const result = impl[1](accessor, editor, args);\n if (result) {\n if (typeof result === 'boolean') {\n return;\n }\n return result;\n }\n }\n }\n}\n//#endregion EditorAction\n//#region EditorAction2\nexport class EditorAction2 extends Action2 {\n run(accessor, ...args) {\n // Find the editor with text focus or active\n const codeEditorService = accessor.get(ICodeEditorService);\n const editor = codeEditorService.getFocusedCodeEditor() || codeEditorService.getActiveCodeEditor();\n if (!editor) {\n // well, at least we tried...\n return;\n }\n // precondition does hold\n return editor.invokeWithinContext((editorAccessor) => {\n const kbService = editorAccessor.get(IContextKeyService);\n const logService = editorAccessor.get(ILogService);\n const enabled = kbService.contextMatchesRules(this.desc.precondition ?? undefined);\n if (!enabled) {\n logService.debug(`[EditorAction2] NOT running command because its precondition is FALSE`, this.desc.id, this.desc.precondition?.serialize());\n return;\n }\n return this.runEditorCommand(editorAccessor, editor, ...args);\n });\n }\n}\n//#endregion\n// --- Registration of commands and actions\nexport function registerModelAndPositionCommand(id, handler) {\n CommandsRegistry.registerCommand(id, function (accessor, ...args) {\n const instaService = accessor.get(IInstantiationService);\n const [resource, position] = args;\n assertType(URI.isUri(resource));\n assertType(Position.isIPosition(position));\n const model = accessor.get(IModelService).getModel(resource);\n if (model) {\n const editorPosition = Position.lift(position);\n return instaService.invokeFunction(handler, model, editorPosition, ...args.slice(2));\n }\n return accessor.get(ITextModelService).createModelReference(resource).then(reference => {\n return new Promise((resolve, reject) => {\n try {\n const result = instaService.invokeFunction(handler, reference.object.textEditorModel, Position.lift(position), args.slice(2));\n resolve(result);\n }\n catch (err) {\n reject(err);\n }\n }).finally(() => {\n reference.dispose();\n });\n });\n });\n}\nexport function registerEditorCommand(editorCommand) {\n EditorContributionRegistry.INSTANCE.registerEditorCommand(editorCommand);\n return editorCommand;\n}\nexport function registerEditorAction(ctor) {\n const action = new ctor();\n EditorContributionRegistry.INSTANCE.registerEditorAction(action);\n return action;\n}\nexport function registerMultiEditorAction(action) {\n EditorContributionRegistry.INSTANCE.registerEditorAction(action);\n return action;\n}\nexport function registerInstantiatedEditorAction(editorAction) {\n EditorContributionRegistry.INSTANCE.registerEditorAction(editorAction);\n}\n/**\n * Registers an editor contribution. Editor contributions have a lifecycle which is bound\n * to a specific code editor instance.\n */\nexport function registerEditorContribution(id, ctor, instantiation) {\n EditorContributionRegistry.INSTANCE.registerEditorContribution(id, ctor, instantiation);\n}\nexport var EditorExtensionsRegistry;\n(function (EditorExtensionsRegistry) {\n function getEditorCommand(commandId) {\n return EditorContributionRegistry.INSTANCE.getEditorCommand(commandId);\n }\n EditorExtensionsRegistry.getEditorCommand = getEditorCommand;\n function getEditorActions() {\n return EditorContributionRegistry.INSTANCE.getEditorActions();\n }\n EditorExtensionsRegistry.getEditorActions = getEditorActions;\n function getEditorContributions() {\n return EditorContributionRegistry.INSTANCE.getEditorContributions();\n }\n EditorExtensionsRegistry.getEditorContributions = getEditorContributions;\n function getSomeEditorContributions(ids) {\n return EditorContributionRegistry.INSTANCE.getEditorContributions().filter(c => ids.indexOf(c.id) >= 0);\n }\n EditorExtensionsRegistry.getSomeEditorContributions = getSomeEditorContributions;\n function getDiffEditorContributions() {\n return EditorContributionRegistry.INSTANCE.getDiffEditorContributions();\n }\n EditorExtensionsRegistry.getDiffEditorContributions = getDiffEditorContributions;\n})(EditorExtensionsRegistry || (EditorExtensionsRegistry = {}));\n// Editor extension points\nconst Extensions = {\n EditorCommonContributions: 'editor.contributions'\n};\nclass EditorContributionRegistry {\n static { this.INSTANCE = new EditorContributionRegistry(); }\n constructor() {\n this.editorContributions = [];\n this.diffEditorContributions = [];\n this.editorActions = [];\n this.editorCommands = Object.create(null);\n }\n registerEditorContribution(id, ctor, instantiation) {\n this.editorContributions.push({ id, ctor: ctor, instantiation });\n }\n getEditorContributions() {\n return this.editorContributions.slice(0);\n }\n getDiffEditorContributions() {\n return this.diffEditorContributions.slice(0);\n }\n registerEditorAction(action) {\n action.register();\n this.editorActions.push(action);\n }\n getEditorActions() {\n return this.editorActions;\n }\n registerEditorCommand(editorCommand) {\n editorCommand.register();\n this.editorCommands[editorCommand.id] = editorCommand;\n }\n getEditorCommand(commandId) {\n return (this.editorCommands[commandId] || null);\n }\n}\nRegistry.add(Extensions.EditorCommonContributions, EditorContributionRegistry.INSTANCE);\nfunction registerCommand(command) {\n command.register();\n return command;\n}\nexport const UndoCommand = registerCommand(new MultiCommand({\n id: 'undo',\n precondition: undefined,\n kbOpts: {\n weight: 0 /* KeybindingWeight.EditorCore */,\n primary: 2048 /* KeyMod.CtrlCmd */ | 56 /* KeyCode.KeyZ */\n },\n menuOpts: [{\n menuId: MenuId.MenubarEditMenu,\n group: '1_do',\n title: nls.localize({ key: 'miUndo', comment: ['&& denotes a mnemonic'] }, \"&&Undo\"),\n order: 1\n }, {\n menuId: MenuId.CommandPalette,\n group: '',\n title: nls.localize('undo', \"Undo\"),\n order: 1\n }]\n}));\nregisterCommand(new ProxyCommand(UndoCommand, { id: 'default:undo', precondition: undefined }));\nexport const RedoCommand = registerCommand(new MultiCommand({\n id: 'redo',\n precondition: undefined,\n kbOpts: {\n weight: 0 /* KeybindingWeight.EditorCore */,\n primary: 2048 /* KeyMod.CtrlCmd */ | 55 /* KeyCode.KeyY */,\n secondary: [2048 /* KeyMod.CtrlCmd */ | 1024 /* KeyMod.Shift */ | 56 /* KeyCode.KeyZ */],\n mac: { primary: 2048 /* KeyMod.CtrlCmd */ | 1024 /* KeyMod.Shift */ | 56 /* KeyCode.KeyZ */ }\n },\n menuOpts: [{\n menuId: MenuId.MenubarEditMenu,\n group: '1_do',\n title: nls.localize({ key: 'miRedo', comment: ['&& denotes a mnemonic'] }, \"&&Redo\"),\n order: 2\n }, {\n menuId: MenuId.CommandPalette,\n group: '',\n title: nls.localize('redo', \"Redo\"),\n order: 1\n }]\n}));\nregisterCommand(new ProxyCommand(RedoCommand, { id: 'default:redo', precondition: undefined }));\nexport const SelectAllCommand = registerCommand(new MultiCommand({\n id: 'editor.action.selectAll',\n precondition: undefined,\n kbOpts: {\n weight: 0 /* KeybindingWeight.EditorCore */,\n kbExpr: null,\n primary: 2048 /* KeyMod.CtrlCmd */ | 31 /* KeyCode.KeyA */\n },\n menuOpts: [{\n menuId: MenuId.MenubarSelectionMenu,\n group: '1_basic',\n title: nls.localize({ key: 'miSelectAll', comment: ['&& denotes a mnemonic'] }, \"&&Select All\"),\n order: 1\n }, {\n menuId: MenuId.CommandPalette,\n group: '',\n title: nls.localize('selectAll', \"Select All\"),\n order: 1\n }]\n}));\n"],"names":["accessor","args","EditorExtensionsRegistry","nls.localize"],"mappings":";;;;;;;;;;;;;;;AAoBO,MAAM,QAAQ;AAAA,EACjB,YAAY,MAAM;AACd,SAAK,KAAK,KAAK;AACf,SAAK,eAAe,KAAK;AACzB,SAAK,UAAU,KAAK;AACpB,SAAK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E;AAAA,EACD,UAAU,CAAC;AAAA,IACH,QAAQ,OAAO;AAAA,IACf,OAAO;AAAA,IACP,OAAOA,SAAa,EAAE,KAAK,UAAU,SAAS,CAAC,uBAAuB,EAAG,GAAE,QAAQ;AAAA,IACnF,OAAO;AAAA,EACnB,GAAW;AAAA,IACC,QAAQ,OAAO;AAAA,IACf,OAAO;AAAA,IACP,OAAOA,SAAa,QAAQ,MAAM;AAAA,IAClC,OAAO;AAAA,EACV,CAAA;AACT,CAAC,CAAC;AACF,gBAAgB,IAAI,aAAa,aAAa,EAAE,IAAI,gBAAgB,cAAc,OAAS,CAAE,CAAC;AAClF,MAAC,mBAAmB,gBAAgB,IAAI,aAAa;AAAA,EAC7D,IAAI;AAAA,EACJ,cAAc;AAAA,EACd,QAAQ;AAAA,IACJ,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,SAAS,OAA4B;AAAA;AAAA,EACxC;AAAA,EACD,UAAU,CAAC;AAAA,IACH,QAAQ,OAAO;AAAA,IACf,OAAO;AAAA,IACP,OAAOA,SAAa,EAAE,KAAK,eAAe,SAAS,CAAC,uBAAuB,EAAG,GAAE,cAAc;AAAA,IAC9F,OAAO;AAAA,EACnB,GAAW;AAAA,IACC,QAAQ,OAAO;AAAA,IACf,OAAO;AAAA,IACP,OAAOA,SAAa,aAAa,YAAY;AAAA,IAC7C,OAAO;AAAA,EACV,CAAA;AACT,CAAC,CAAC;","x_google_ignoreList":[0]}
@@ -2,7 +2,7 @@ import { equalsIfDefined, itemsEquals } from "../../base/common/equals.es.js";
2
2
  import { Disposable, DisposableStore, toDisposable } from "../../base/common/lifecycle.es.js";
3
3
  import { TransactionImpl, observableValue } from "../../base/common/observableInternal/base.es.js";
4
4
  import { derivedWithSetter, derived, derivedOpts } from "../../base/common/observableInternal/derived.es.js";
5
- import { autorunOpts, autorun, autorunWithStoreHandleChanges } from "../../base/common/observableInternal/autorun.es.js";
5
+ import { autorunOpts, autorun } from "../../base/common/observableInternal/autorun.es.js";
6
6
  import { observableFromEvent, observableSignal } from "../../base/common/observableInternal/utils.es.js";
7
7
  import { observableValueOpts } from "../../base/common/observableInternal/api.es.js";
8
8
  import { Selection } from "../common/core/selection.es.js";
@@ -206,43 +206,8 @@ const _ObservableCodeEditor = class _ObservableCodeEditor extends Disposable {
206
206
  };
207
207
  _ObservableCodeEditor._map = /* @__PURE__ */ new Map();
208
208
  let ObservableCodeEditor = _ObservableCodeEditor;
209
- function reactToChange(observable, cb) {
210
- return autorunWithStoreHandleChanges({
211
- createEmptyChangeSummary: () => ({ deltas: [], didChange: false }),
212
- handleChange: (context, changeSummary) => {
213
- if (context.didChange(observable)) {
214
- const e = context.change;
215
- if (e !== void 0) {
216
- changeSummary.deltas.push(e);
217
- }
218
- changeSummary.didChange = true;
219
- }
220
- return true;
221
- }
222
- }, (reader, changeSummary) => {
223
- const value = observable.read(reader);
224
- if (changeSummary.didChange) {
225
- cb(value, changeSummary.deltas);
226
- }
227
- });
228
- }
229
- function reactToChangeWithStore(observable, cb) {
230
- const store = new DisposableStore();
231
- const disposable = reactToChange(observable, (value, deltas) => {
232
- store.clear();
233
- cb(value, deltas, store);
234
- });
235
- return {
236
- dispose() {
237
- disposable.dispose();
238
- store.dispose();
239
- }
240
- };
241
- }
242
209
  export {
243
210
  ObservableCodeEditor,
244
- observableCodeEditor,
245
- reactToChange,
246
- reactToChangeWithStore
211
+ observableCodeEditor
247
212
  };
248
213
  //# sourceMappingURL=observableCodeEditor.es.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"observableCodeEditor.es.js","sources":["../../../../../../../../../../../../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/observableCodeEditor.js"],"sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\nimport { equalsIfDefined, itemsEquals } from '../../base/common/equals.js';\nimport { Disposable, DisposableStore, toDisposable } from '../../base/common/lifecycle.js';\nimport { autorun, autorunOpts, autorunWithStoreHandleChanges, derived, derivedOpts, observableFromEvent, observableSignal, observableValue, observableValueOpts } from '../../base/common/observable.js';\nimport { TransactionImpl } from '../../base/common/observableInternal/base.js';\nimport { derivedWithSetter } from '../../base/common/observableInternal/derived.js';\nimport { Selection } from '../common/core/selection.js';\n/**\n * Returns a facade for the code editor that provides observables for various states/events.\n*/\nexport function observableCodeEditor(editor) {\n return ObservableCodeEditor.get(editor);\n}\nexport class ObservableCodeEditor extends Disposable {\n static { this._map = new Map(); }\n /**\n * Make sure that editor is not disposed yet!\n */\n static get(editor) {\n let result = ObservableCodeEditor._map.get(editor);\n if (!result) {\n result = new ObservableCodeEditor(editor);\n ObservableCodeEditor._map.set(editor, result);\n const d = editor.onDidDispose(() => {\n const item = ObservableCodeEditor._map.get(editor);\n if (item) {\n ObservableCodeEditor._map.delete(editor);\n item.dispose();\n d.dispose();\n }\n });\n }\n return result;\n }\n _beginUpdate() {\n this._updateCounter++;\n if (this._updateCounter === 1) {\n this._currentTransaction = new TransactionImpl(() => {\n /** @description Update editor state */\n });\n }\n }\n _endUpdate() {\n this._updateCounter--;\n if (this._updateCounter === 0) {\n const t = this._currentTransaction;\n this._currentTransaction = undefined;\n t.finish();\n }\n }\n constructor(editor) {\n super();\n this.editor = editor;\n this._updateCounter = 0;\n this._currentTransaction = undefined;\n this._model = observableValue(this, this.editor.getModel());\n this.model = this._model;\n this.isReadonly = observableFromEvent(this, this.editor.onDidChangeConfiguration, () => this.editor.getOption(92 /* EditorOption.readOnly */));\n this._versionId = observableValueOpts({ owner: this, lazy: true }, this.editor.getModel()?.getVersionId() ?? null);\n this.versionId = this._versionId;\n this._selections = observableValueOpts({ owner: this, equalsFn: equalsIfDefined(itemsEquals(Selection.selectionsEqual)), lazy: true }, this.editor.getSelections() ?? null);\n this.selections = this._selections;\n this.isFocused = observableFromEvent(this, e => {\n const d1 = this.editor.onDidFocusEditorWidget(e);\n const d2 = this.editor.onDidBlurEditorWidget(e);\n return {\n dispose() {\n d1.dispose();\n d2.dispose();\n }\n };\n }, () => this.editor.hasWidgetFocus());\n this.value = derivedWithSetter(this, reader => { this.versionId.read(reader); return this.model.read(reader)?.getValue() ?? ''; }, (value, tx) => {\n const model = this.model.get();\n if (model !== null) {\n if (value !== model.getValue()) {\n model.setValue(value);\n }\n }\n });\n this.valueIsEmpty = derived(this, reader => { this.versionId.read(reader); return this.editor.getModel()?.getValueLength() === 0; });\n this.cursorSelection = derivedOpts({ owner: this, equalsFn: equalsIfDefined(Selection.selectionsEqual) }, reader => this.selections.read(reader)?.[0] ?? null);\n this.onDidType = observableSignal(this);\n this.scrollTop = observableFromEvent(this.editor.onDidScrollChange, () => this.editor.getScrollTop());\n this.scrollLeft = observableFromEvent(this.editor.onDidScrollChange, () => this.editor.getScrollLeft());\n this.layoutInfo = observableFromEvent(this.editor.onDidLayoutChange, () => this.editor.getLayoutInfo());\n this.layoutInfoContentLeft = this.layoutInfo.map(l => l.contentLeft);\n this.layoutInfoDecorationsLeft = this.layoutInfo.map(l => l.decorationsLeft);\n this.contentWidth = observableFromEvent(this.editor.onDidContentSizeChange, () => this.editor.getContentWidth());\n this._overlayWidgetCounter = 0;\n this._register(this.editor.onBeginUpdate(() => this._beginUpdate()));\n this._register(this.editor.onEndUpdate(() => this._endUpdate()));\n this._register(this.editor.onDidChangeModel(() => {\n this._beginUpdate();\n try {\n this._model.set(this.editor.getModel(), this._currentTransaction);\n this._forceUpdate();\n }\n finally {\n this._endUpdate();\n }\n }));\n this._register(this.editor.onDidType((e) => {\n this._beginUpdate();\n try {\n this._forceUpdate();\n this.onDidType.trigger(this._currentTransaction, e);\n }\n finally {\n this._endUpdate();\n }\n }));\n this._register(this.editor.onDidChangeModelContent(e => {\n this._beginUpdate();\n try {\n this._versionId.set(this.editor.getModel()?.getVersionId() ?? null, this._currentTransaction, e);\n this._forceUpdate();\n }\n finally {\n this._endUpdate();\n }\n }));\n this._register(this.editor.onDidChangeCursorSelection(e => {\n this._beginUpdate();\n try {\n this._selections.set(this.editor.getSelections(), this._currentTransaction, e);\n this._forceUpdate();\n }\n finally {\n this._endUpdate();\n }\n }));\n }\n forceUpdate(cb) {\n this._beginUpdate();\n try {\n this._forceUpdate();\n if (!cb) {\n return undefined;\n }\n return cb(this._currentTransaction);\n }\n finally {\n this._endUpdate();\n }\n }\n _forceUpdate() {\n this._beginUpdate();\n try {\n this._model.set(this.editor.getModel(), this._currentTransaction);\n this._versionId.set(this.editor.getModel()?.getVersionId() ?? null, this._currentTransaction, undefined);\n this._selections.set(this.editor.getSelections(), this._currentTransaction, undefined);\n }\n finally {\n this._endUpdate();\n }\n }\n getOption(id) {\n return observableFromEvent(this, cb => this.editor.onDidChangeConfiguration(e => {\n if (e.hasChanged(id)) {\n cb(undefined);\n }\n }), () => this.editor.getOption(id));\n }\n setDecorations(decorations) {\n const d = new DisposableStore();\n const decorationsCollection = this.editor.createDecorationsCollection();\n d.add(autorunOpts({ owner: this, debugName: () => `Apply decorations from ${decorations.debugName}` }, reader => {\n const d = decorations.read(reader);\n decorationsCollection.set(d);\n }));\n d.add({\n dispose: () => {\n decorationsCollection.clear();\n }\n });\n return d;\n }\n createOverlayWidget(widget) {\n const overlayWidgetId = 'observableOverlayWidget' + (this._overlayWidgetCounter++);\n const w = {\n getDomNode: () => widget.domNode,\n getPosition: () => widget.position.get(),\n getId: () => overlayWidgetId,\n allowEditorOverflow: widget.allowEditorOverflow,\n getMinContentWidthInPx: () => widget.minContentWidthInPx.get(),\n };\n this.editor.addOverlayWidget(w);\n const d = autorun(reader => {\n widget.position.read(reader);\n widget.minContentWidthInPx.read(reader);\n this.editor.layoutOverlayWidget(w);\n });\n return toDisposable(() => {\n d.dispose();\n this.editor.removeOverlayWidget(w);\n });\n }\n}\nexport function reactToChange(observable, cb) {\n return autorunWithStoreHandleChanges({\n createEmptyChangeSummary: () => ({ deltas: [], didChange: false }),\n handleChange: (context, changeSummary) => {\n if (context.didChange(observable)) {\n const e = context.change;\n if (e !== undefined) {\n changeSummary.deltas.push(e);\n }\n changeSummary.didChange = true;\n }\n return true;\n },\n }, (reader, changeSummary) => {\n const value = observable.read(reader);\n if (changeSummary.didChange) {\n cb(value, changeSummary.deltas);\n }\n });\n}\nexport function reactToChangeWithStore(observable, cb) {\n const store = new DisposableStore();\n const disposable = reactToChange(observable, (value, deltas) => {\n store.clear();\n cb(value, deltas, store);\n });\n return {\n dispose() {\n disposable.dispose();\n store.dispose();\n }\n };\n}\n"],"names":["_a","d"],"mappings":";;;;;;;;AAaO,SAAS,qBAAqB,QAAQ;AACzC,SAAO,qBAAqB,IAAI,MAAM;AAC1C;AACO,MAAM,wBAAN,MAAM,8BAA6B,WAAW;AAAA;AAAA;AAAA;AAAA,EAKjD,OAAO,IAAI,QAAQ;AACf,QAAI,SAAS,sBAAqB,KAAK,IAAI,MAAM;AACjD,QAAI,CAAC,QAAQ;AACT,eAAS,IAAI,sBAAqB,MAAM;AACxC,4BAAqB,KAAK,IAAI,QAAQ,MAAM;AAC5C,YAAM,IAAI,OAAO,aAAa,MAAM;AAChC,cAAM,OAAO,sBAAqB,KAAK,IAAI,MAAM;AACjD,YAAI,MAAM;AACN,gCAAqB,KAAK,OAAO,MAAM;AACvC,eAAK,QAAS;AACd,YAAE,QAAS;AAAA,QAC/B;AAAA,MACA,CAAa;AAAA,IACb;AACQ,WAAO;AAAA,EACf;AAAA,EACI,eAAe;AACX,SAAK;AACL,QAAI,KAAK,mBAAmB,GAAG;AAC3B,WAAK,sBAAsB,IAAI,gBAAgB,MAAM;AAAA,MAEjE,CAAa;AAAA,IACb;AAAA,EACA;AAAA,EACI,aAAa;AACT,SAAK;AACL,QAAI,KAAK,mBAAmB,GAAG;AAC3B,YAAM,IAAI,KAAK;AACf,WAAK,sBAAsB;AAC3B,QAAE,OAAQ;AAAA,IACtB;AAAA,EACA;AAAA,EACI,YAAY,QAAQ;;AAChB,UAAO;AACP,SAAK,SAAS;AACd,SAAK,iBAAiB;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MAAM,QAAW;AACjB,wBAAc,OAAO,KAAK,CAAC;AAAA,QAC/C;AACgB,sBAAc,YAAY;AAAA,MAC1C;AACY,aAAO;AAAA,IACV;AAAA,EACT,GAAO,CAAC,QAAQ,kBAAkB;AAC1B,UAAM,QAAQ,WAAW,KAAK,MAAM;AACpC,QAAI,cAAc,WAAW;AACzB,SAAG,OAAO,cAAc,MAAM;AAAA,IAC1C;AAAA,EACA,CAAK;AACL;AACO,SAAS,uBAAuB,YAAY,IAAI;AACnD,QAAM,QAAQ,IAAI,gBAAiB;AACnC,QAAM,aAAa,cAAc,YAAY,CAAC,OAAO,WAAW;AAC5D,UAAM,MAAO;AACb,OAAG,OAAO,QAAQ,KAAK;AAAA,EAC/B,CAAK;AACD,SAAO;AAAA,IACH,UAAU;AACN,iBAAW,QAAS;AACpB,YAAM,QAAS;AAAA,IAC3B;AAAA,EACK;AACL;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"observableCodeEditor.es.js","sources":["../../../../../../../../../../../../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/observableCodeEditor.js"],"sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\nimport { equalsIfDefined, itemsEquals } from '../../base/common/equals.js';\nimport { Disposable, DisposableStore, toDisposable } from '../../base/common/lifecycle.js';\nimport { autorun, autorunOpts, autorunWithStoreHandleChanges, derived, derivedOpts, observableFromEvent, observableSignal, observableValue, observableValueOpts } from '../../base/common/observable.js';\nimport { TransactionImpl } from '../../base/common/observableInternal/base.js';\nimport { derivedWithSetter } from '../../base/common/observableInternal/derived.js';\nimport { Selection } from '../common/core/selection.js';\n/**\n * Returns a facade for the code editor that provides observables for various states/events.\n*/\nexport function observableCodeEditor(editor) {\n return ObservableCodeEditor.get(editor);\n}\nexport class ObservableCodeEditor extends Disposable {\n static { this._map = new Map(); }\n /**\n * Make sure that editor is not disposed yet!\n */\n static get(editor) {\n let result = ObservableCodeEditor._map.get(editor);\n if (!result) {\n result = new ObservableCodeEditor(editor);\n ObservableCodeEditor._map.set(editor, result);\n const d = editor.onDidDispose(() => {\n const item = ObservableCodeEditor._map.get(editor);\n if (item) {\n ObservableCodeEditor._map.delete(editor);\n item.dispose();\n d.dispose();\n }\n });\n }\n return result;\n }\n _beginUpdate() {\n this._updateCounter++;\n if (this._updateCounter === 1) {\n this._currentTransaction = new TransactionImpl(() => {\n /** @description Update editor state */\n });\n }\n }\n _endUpdate() {\n this._updateCounter--;\n if (this._updateCounter === 0) {\n const t = this._currentTransaction;\n this._currentTransaction = undefined;\n t.finish();\n }\n }\n constructor(editor) {\n super();\n this.editor = editor;\n this._updateCounter = 0;\n this._currentTransaction = undefined;\n this._model = observableValue(this, this.editor.getModel());\n this.model = this._model;\n this.isReadonly = observableFromEvent(this, this.editor.onDidChangeConfiguration, () => this.editor.getOption(92 /* EditorOption.readOnly */));\n this._versionId = observableValueOpts({ owner: this, lazy: true }, this.editor.getModel()?.getVersionId() ?? null);\n this.versionId = this._versionId;\n this._selections = observableValueOpts({ owner: this, equalsFn: equalsIfDefined(itemsEquals(Selection.selectionsEqual)), lazy: true }, this.editor.getSelections() ?? null);\n this.selections = this._selections;\n this.isFocused = observableFromEvent(this, e => {\n const d1 = this.editor.onDidFocusEditorWidget(e);\n const d2 = this.editor.onDidBlurEditorWidget(e);\n return {\n dispose() {\n d1.dispose();\n d2.dispose();\n }\n };\n }, () => this.editor.hasWidgetFocus());\n this.value = derivedWithSetter(this, reader => { this.versionId.read(reader); return this.model.read(reader)?.getValue() ?? ''; }, (value, tx) => {\n const model = this.model.get();\n if (model !== null) {\n if (value !== model.getValue()) {\n model.setValue(value);\n }\n }\n });\n this.valueIsEmpty = derived(this, reader => { this.versionId.read(reader); return this.editor.getModel()?.getValueLength() === 0; });\n this.cursorSelection = derivedOpts({ owner: this, equalsFn: equalsIfDefined(Selection.selectionsEqual) }, reader => this.selections.read(reader)?.[0] ?? null);\n this.onDidType = observableSignal(this);\n this.scrollTop = observableFromEvent(this.editor.onDidScrollChange, () => this.editor.getScrollTop());\n this.scrollLeft = observableFromEvent(this.editor.onDidScrollChange, () => this.editor.getScrollLeft());\n this.layoutInfo = observableFromEvent(this.editor.onDidLayoutChange, () => this.editor.getLayoutInfo());\n this.layoutInfoContentLeft = this.layoutInfo.map(l => l.contentLeft);\n this.layoutInfoDecorationsLeft = this.layoutInfo.map(l => l.decorationsLeft);\n this.contentWidth = observableFromEvent(this.editor.onDidContentSizeChange, () => this.editor.getContentWidth());\n this._overlayWidgetCounter = 0;\n this._register(this.editor.onBeginUpdate(() => this._beginUpdate()));\n this._register(this.editor.onEndUpdate(() => this._endUpdate()));\n this._register(this.editor.onDidChangeModel(() => {\n this._beginUpdate();\n try {\n this._model.set(this.editor.getModel(), this._currentTransaction);\n this._forceUpdate();\n }\n finally {\n this._endUpdate();\n }\n }));\n this._register(this.editor.onDidType((e) => {\n this._beginUpdate();\n try {\n this._forceUpdate();\n this.onDidType.trigger(this._currentTransaction, e);\n }\n finally {\n this._endUpdate();\n }\n }));\n this._register(this.editor.onDidChangeModelContent(e => {\n this._beginUpdate();\n try {\n this._versionId.set(this.editor.getModel()?.getVersionId() ?? null, this._currentTransaction, e);\n this._forceUpdate();\n }\n finally {\n this._endUpdate();\n }\n }));\n this._register(this.editor.onDidChangeCursorSelection(e => {\n this._beginUpdate();\n try {\n this._selections.set(this.editor.getSelections(), this._currentTransaction, e);\n this._forceUpdate();\n }\n finally {\n this._endUpdate();\n }\n }));\n }\n forceUpdate(cb) {\n this._beginUpdate();\n try {\n this._forceUpdate();\n if (!cb) {\n return undefined;\n }\n return cb(this._currentTransaction);\n }\n finally {\n this._endUpdate();\n }\n }\n _forceUpdate() {\n this._beginUpdate();\n try {\n this._model.set(this.editor.getModel(), this._currentTransaction);\n this._versionId.set(this.editor.getModel()?.getVersionId() ?? null, this._currentTransaction, undefined);\n this._selections.set(this.editor.getSelections(), this._currentTransaction, undefined);\n }\n finally {\n this._endUpdate();\n }\n }\n getOption(id) {\n return observableFromEvent(this, cb => this.editor.onDidChangeConfiguration(e => {\n if (e.hasChanged(id)) {\n cb(undefined);\n }\n }), () => this.editor.getOption(id));\n }\n setDecorations(decorations) {\n const d = new DisposableStore();\n const decorationsCollection = this.editor.createDecorationsCollection();\n d.add(autorunOpts({ owner: this, debugName: () => `Apply decorations from ${decorations.debugName}` }, reader => {\n const d = decorations.read(reader);\n decorationsCollection.set(d);\n }));\n d.add({\n dispose: () => {\n decorationsCollection.clear();\n }\n });\n return d;\n }\n createOverlayWidget(widget) {\n const overlayWidgetId = 'observableOverlayWidget' + (this._overlayWidgetCounter++);\n const w = {\n getDomNode: () => widget.domNode,\n getPosition: () => widget.position.get(),\n getId: () => overlayWidgetId,\n allowEditorOverflow: widget.allowEditorOverflow,\n getMinContentWidthInPx: () => widget.minContentWidthInPx.get(),\n };\n this.editor.addOverlayWidget(w);\n const d = autorun(reader => {\n widget.position.read(reader);\n widget.minContentWidthInPx.read(reader);\n this.editor.layoutOverlayWidget(w);\n });\n return toDisposable(() => {\n d.dispose();\n this.editor.removeOverlayWidget(w);\n });\n }\n}\nexport function reactToChange(observable, cb) {\n return autorunWithStoreHandleChanges({\n createEmptyChangeSummary: () => ({ deltas: [], didChange: false }),\n handleChange: (context, changeSummary) => {\n if (context.didChange(observable)) {\n const e = context.change;\n if (e !== undefined) {\n changeSummary.deltas.push(e);\n }\n changeSummary.didChange = true;\n }\n return true;\n },\n }, (reader, changeSummary) => {\n const value = observable.read(reader);\n if (changeSummary.didChange) {\n cb(value, changeSummary.deltas);\n }\n });\n}\nexport function reactToChangeWithStore(observable, cb) {\n const store = new DisposableStore();\n const disposable = reactToChange(observable, (value, deltas) => {\n store.clear();\n cb(value, deltas, store);\n });\n return {\n dispose() {\n disposable.dispose();\n store.dispose();\n }\n };\n}\n"],"names":["_a","d"],"mappings":";;;;;;;;AAaO,SAA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AAAA,MAC7C;AAAA,IACA,CAAS;AACD,WAAO;AAAA,EACf;AAAA,EACI,oBAAoB,QAAQ;AACxB,UAAM,kBAAkB,4BAA6B,KAAK;AAC1D,UAAM,IAAI;AAAA,MACN,YAAY,MAAM,OAAO;AAAA,MACzB,aAAa,MAAM,OAAO,SAAS,IAAK;AAAA,MACxC,OAAO,MAAM;AAAA,MACb,qBAAqB,OAAO;AAAA,MAC5B,wBAAwB,MAAM,OAAO,oBAAoB,IAAK;AAAA,IACjE;AACD,SAAK,OAAO,iBAAiB,CAAC;AAC9B,UAAM,IAAI,QAAQ,YAAU;AACxB,aAAO,SAAS,KAAK,MAAM;AAC3B,aAAO,oBAAoB,KAAK,MAAM;AACtC,WAAK,OAAO,oBAAoB,CAAC;AAAA,IAC7C,CAAS;AACD,WAAO,aAAa,MAAM;AACtB,QAAE,QAAS;AACX,WAAK,OAAO,oBAAoB,CAAC;AAAA,IAC7C,CAAS;AAAA,EACT;AACA;AAxLa,sBAAK,OAAO,oBAAI;AADtB,IAAM,uBAAN;","x_google_ignoreList":[0]}
@@ -1,5 +1,5 @@
1
1
  import { findLast } from "../../../../base/common/arraysFind.es.js";
2
- import { CancellationTokenSource } from "../../../../base/common/cancellation.es.js";
2
+ import "../../../../base/common/cancellation.es.js";
3
3
  import { DisposableStore, toDisposable, Disposable } from "../../../../base/common/lifecycle.es.js";
4
4
  import { observableValue, transaction } from "../../../../base/common/observableInternal/base.es.js";
5
5
  import "../../../../base/common/observableInternal/derived.es.js";
@@ -289,11 +289,6 @@ function applyViewZones(editor, viewZones, setIsUpdating, zoneIds) {
289
289
  });
290
290
  return store;
291
291
  }
292
- class DisposableCancellationTokenSource extends CancellationTokenSource {
293
- dispose() {
294
- super.dispose(true);
295
- }
296
- }
297
292
  function translatePosition(posInOriginal, mappings) {
298
293
  const mapping = findLast(mappings, (m) => m.original.startLineNumber <= posInOriginal.lineNumber);
299
294
  if (!mapping) {
@@ -411,7 +406,6 @@ class ClonedRefCounted extends RefCounted {
411
406
  }
412
407
  }
413
408
  export {
414
- DisposableCancellationTokenSource,
415
409
  ManagedOverlayWidget,
416
410
  ObservableElementSizeObserver,
417
411
  PlaceholderViewZone,
@@ -1 +1 @@
1
- {"version":3,"file":"utils.es.js","sources":["../../../../../../../../../../../../../../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/widget/diffEditor/utils.js"],"sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\nimport { findLast } from '../../../../base/common/arraysFind.js';\nimport { CancellationTokenSource } from '../../../../base/common/cancellation.js';\nimport { Disposable, DisposableStore, toDisposable } from '../../../../base/common/lifecycle.js';\nimport { autorun, autorunHandleChanges, autorunOpts, autorunWithStore, observableValue, transaction } from '../../../../base/common/observable.js';\nimport { ElementSizeObserver } from '../../config/elementSizeObserver.js';\nimport { Position } from '../../../common/core/position.js';\nimport { Range } from '../../../common/core/range.js';\nimport { TextLength } from '../../../common/core/textLength.js';\nexport function joinCombine(arr1, arr2, keySelector, combine) {\n if (arr1.length === 0) {\n return arr2;\n }\n if (arr2.length === 0) {\n return arr1;\n }\n const result = [];\n let i = 0;\n let j = 0;\n while (i < arr1.length && j < arr2.length) {\n const val1 = arr1[i];\n const val2 = arr2[j];\n const key1 = keySelector(val1);\n const key2 = keySelector(val2);\n if (key1 < key2) {\n result.push(val1);\n i++;\n }\n else if (key1 > key2) {\n result.push(val2);\n j++;\n }\n else {\n result.push(combine(val1, val2));\n i++;\n j++;\n }\n }\n while (i < arr1.length) {\n result.push(arr1[i]);\n i++;\n }\n while (j < arr2.length) {\n result.push(arr2[j]);\n j++;\n }\n return result;\n}\n// TODO make utility\nexport function applyObservableDecorations(editor, decorations) {\n const d = new DisposableStore();\n const decorationsCollection = editor.createDecorationsCollection();\n d.add(autorunOpts({ debugName: () => `Apply decorations from ${decorations.debugName}` }, reader => {\n const d = decorations.read(reader);\n decorationsCollection.set(d);\n }));\n d.add({\n dispose: () => {\n decorationsCollection.clear();\n }\n });\n return d;\n}\nexport function appendRemoveOnDispose(parent, child) {\n parent.appendChild(child);\n return toDisposable(() => {\n child.remove();\n });\n}\nexport function prependRemoveOnDispose(parent, child) {\n parent.prepend(child);\n return toDisposable(() => {\n child.remove();\n });\n}\nexport class ObservableElementSizeObserver extends Disposable {\n get width() { return this._width; }\n get height() { return this._height; }\n get automaticLayout() { return this._automaticLayout; }\n constructor(element, dimension) {\n super();\n this._automaticLayout = false;\n this.elementSizeObserver = this._register(new ElementSizeObserver(element, dimension));\n this._width = observableValue(this, this.elementSizeObserver.getWidth());\n this._height = observableValue(this, this.elementSizeObserver.getHeight());\n this._register(this.elementSizeObserver.onDidChange(e => transaction(tx => {\n /** @description Set width/height from elementSizeObserver */\n this._width.set(this.elementSizeObserver.getWidth(), tx);\n this._height.set(this.elementSizeObserver.getHeight(), tx);\n })));\n }\n observe(dimension) {\n this.elementSizeObserver.observe(dimension);\n }\n setAutomaticLayout(automaticLayout) {\n this._automaticLayout = automaticLayout;\n if (automaticLayout) {\n this.elementSizeObserver.startObserving();\n }\n else {\n this.elementSizeObserver.stopObserving();\n }\n }\n}\nexport function animatedObservable(targetWindow, base, store) {\n let targetVal = base.get();\n let startVal = targetVal;\n let curVal = targetVal;\n const result = observableValue('animatedValue', targetVal);\n let animationStartMs = -1;\n const durationMs = 300;\n let animationFrame = undefined;\n store.add(autorunHandleChanges({\n createEmptyChangeSummary: () => ({ animate: false }),\n handleChange: (ctx, s) => {\n if (ctx.didChange(base)) {\n s.animate = s.animate || ctx.change;\n }\n return true;\n }\n }, (reader, s) => {\n /** @description update value */\n if (animationFrame !== undefined) {\n targetWindow.cancelAnimationFrame(animationFrame);\n animationFrame = undefined;\n }\n startVal = curVal;\n targetVal = base.read(reader);\n animationStartMs = Date.now() - (s.animate ? 0 : durationMs);\n update();\n }));\n function update() {\n const passedMs = Date.now() - animationStartMs;\n curVal = Math.floor(easeOutExpo(passedMs, startVal, targetVal - startVal, durationMs));\n if (passedMs < durationMs) {\n animationFrame = targetWindow.requestAnimationFrame(update);\n }\n else {\n curVal = targetVal;\n }\n result.set(curVal, undefined);\n }\n return result;\n}\nfunction easeOutExpo(t, b, c, d) {\n return t === d ? b + c : c * (-Math.pow(2, -10 * t / d) + 1) + b;\n}\nexport class ViewZoneOverlayWidget extends Disposable {\n constructor(editor, viewZone, htmlElement) {\n super();\n this._register(new ManagedOverlayWidget(editor, htmlElement));\n this._register(applyStyle(htmlElement, {\n height: viewZone.actualHeight,\n top: viewZone.actualTop,\n }));\n }\n}\nexport class PlaceholderViewZone {\n get afterLineNumber() { return this._afterLineNumber.get(); }\n constructor(_afterLineNumber, heightInPx) {\n this._afterLineNumber = _afterLineNumber;\n this.heightInPx = heightInPx;\n this.domNode = document.createElement('div');\n this._actualTop = observableValue(this, undefined);\n this._actualHeight = observableValue(this, undefined);\n this.actualTop = this._actualTop;\n this.actualHeight = this._actualHeight;\n this.showInHiddenAreas = true;\n this.onChange = this._afterLineNumber;\n this.onDomNodeTop = (top) => {\n this._actualTop.set(top, undefined);\n };\n this.onComputedHeight = (height) => {\n this._actualHeight.set(height, undefined);\n };\n }\n}\nexport class ManagedOverlayWidget {\n static { this._counter = 0; }\n constructor(_editor, _domElement) {\n this._editor = _editor;\n this._domElement = _domElement;\n this._overlayWidgetId = `managedOverlayWidget-${ManagedOverlayWidget._counter++}`;\n this._overlayWidget = {\n getId: () => this._overlayWidgetId,\n getDomNode: () => this._domElement,\n getPosition: () => null\n };\n this._editor.addOverlayWidget(this._overlayWidget);\n }\n dispose() {\n this._editor.removeOverlayWidget(this._overlayWidget);\n }\n}\nexport function applyStyle(domNode, style) {\n return autorun(reader => {\n /** @description applyStyle */\n for (let [key, val] of Object.entries(style)) {\n if (val && typeof val === 'object' && 'read' in val) {\n val = val.read(reader);\n }\n if (typeof val === 'number') {\n val = `${val}px`;\n }\n key = key.replace(/[A-Z]/g, m => '-' + m.toLowerCase());\n domNode.style[key] = val;\n }\n });\n}\nexport function applyViewZones(editor, viewZones, setIsUpdating, zoneIds) {\n const store = new DisposableStore();\n const lastViewZoneIds = [];\n store.add(autorunWithStore((reader, store) => {\n /** @description applyViewZones */\n const curViewZones = viewZones.read(reader);\n const viewZonIdsPerViewZone = new Map();\n const viewZoneIdPerOnChangeObservable = new Map();\n // Add/remove view zones\n if (setIsUpdating) {\n setIsUpdating(true);\n }\n editor.changeViewZones(a => {\n for (const id of lastViewZoneIds) {\n a.removeZone(id);\n zoneIds?.delete(id);\n }\n lastViewZoneIds.length = 0;\n for (const z of curViewZones) {\n const id = a.addZone(z);\n if (z.setZoneId) {\n z.setZoneId(id);\n }\n lastViewZoneIds.push(id);\n zoneIds?.add(id);\n viewZonIdsPerViewZone.set(z, id);\n }\n });\n if (setIsUpdating) {\n setIsUpdating(false);\n }\n // Layout zone on change\n store.add(autorunHandleChanges({\n createEmptyChangeSummary() {\n return { zoneIds: [] };\n },\n handleChange(context, changeSummary) {\n const id = viewZoneIdPerOnChangeObservable.get(context.changedObservable);\n if (id !== undefined) {\n changeSummary.zoneIds.push(id);\n }\n return true;\n },\n }, (reader, changeSummary) => {\n /** @description layoutZone on change */\n for (const vz of curViewZones) {\n if (vz.onChange) {\n viewZoneIdPerOnChangeObservable.set(vz.onChange, viewZonIdsPerViewZone.get(vz));\n vz.onChange.read(reader);\n }\n }\n if (setIsUpdating) {\n setIsUpdating(true);\n }\n editor.changeViewZones(a => { for (const id of changeSummary.zoneIds) {\n a.layoutZone(id);\n } });\n if (setIsUpdating) {\n setIsUpdating(false);\n }\n }));\n }));\n store.add({\n dispose() {\n if (setIsUpdating) {\n setIsUpdating(true);\n }\n editor.changeViewZones(a => { for (const id of lastViewZoneIds) {\n a.removeZone(id);\n } });\n zoneIds?.clear();\n if (setIsUpdating) {\n setIsUpdating(false);\n }\n }\n });\n return store;\n}\nexport class DisposableCancellationTokenSource extends CancellationTokenSource {\n dispose() {\n super.dispose(true);\n }\n}\nexport function translatePosition(posInOriginal, mappings) {\n const mapping = findLast(mappings, m => m.original.startLineNumber <= posInOriginal.lineNumber);\n if (!mapping) {\n // No changes before the position\n return Range.fromPositions(posInOriginal);\n }\n if (mapping.original.endLineNumberExclusive <= posInOriginal.lineNumber) {\n const newLineNumber = posInOriginal.lineNumber - mapping.original.endLineNumberExclusive + mapping.modified.endLineNumberExclusive;\n return Range.fromPositions(new Position(newLineNumber, posInOriginal.column));\n }\n if (!mapping.innerChanges) {\n // Only for legacy algorithm\n return Range.fromPositions(new Position(mapping.modified.startLineNumber, 1));\n }\n const innerMapping = findLast(mapping.innerChanges, m => m.originalRange.getStartPosition().isBeforeOrEqual(posInOriginal));\n if (!innerMapping) {\n const newLineNumber = posInOriginal.lineNumber - mapping.original.startLineNumber + mapping.modified.startLineNumber;\n return Range.fromPositions(new Position(newLineNumber, posInOriginal.column));\n }\n if (innerMapping.originalRange.containsPosition(posInOriginal)) {\n return innerMapping.modifiedRange;\n }\n else {\n const l = lengthBetweenPositions(innerMapping.originalRange.getEndPosition(), posInOriginal);\n return Range.fromPositions(l.addToPosition(innerMapping.modifiedRange.getEndPosition()));\n }\n}\nfunction lengthBetweenPositions(position1, position2) {\n if (position1.lineNumber === position2.lineNumber) {\n return new TextLength(0, position2.column - position1.column);\n }\n else {\n return new TextLength(position2.lineNumber - position1.lineNumber, position2.column - 1);\n }\n}\nexport function filterWithPrevious(arr, filter) {\n let prev;\n return arr.filter(cur => {\n const result = filter(cur, prev);\n prev = cur;\n return result;\n });\n}\nexport class RefCounted {\n static create(value, debugOwner = undefined) {\n return new BaseRefCounted(value, value, debugOwner);\n }\n static createWithDisposable(value, disposable, debugOwner = undefined) {\n const store = new DisposableStore();\n store.add(disposable);\n store.add(value);\n return new BaseRefCounted(value, store, debugOwner);\n }\n}\nclass BaseRefCounted extends RefCounted {\n constructor(object, _disposable, _debugOwner) {\n super();\n this.object = object;\n this._disposable = _disposable;\n this._debugOwner = _debugOwner;\n this._refCount = 1;\n this._isDisposed = false;\n this._owners = [];\n if (_debugOwner) {\n this._addOwner(_debugOwner);\n }\n }\n _addOwner(debugOwner) {\n if (debugOwner) {\n this._owners.push(debugOwner);\n }\n }\n createNewRef(debugOwner) {\n this._refCount++;\n if (debugOwner) {\n this._addOwner(debugOwner);\n }\n return new ClonedRefCounted(this, debugOwner);\n }\n dispose() {\n if (this._isDisposed) {\n return;\n }\n this._isDisposed = true;\n this._decreaseRefCount(this._debugOwner);\n }\n _decreaseRefCount(debugOwner) {\n this._refCount--;\n if (this._refCount === 0) {\n this._disposable.dispose();\n }\n if (debugOwner) {\n const idx = this._owners.indexOf(debugOwner);\n if (idx !== -1) {\n this._owners.splice(idx, 1);\n }\n }\n }\n}\nclass ClonedRefCounted extends RefCounted {\n constructor(_base, _debugOwner) {\n super();\n this._base = _base;\n this._debugOwner = _debugOwner;\n this._isDisposed = false;\n }\n get object() { return this._base.object; }\n createNewRef(debugOwner) {\n return this._base.createNewRef(debugOwner);\n }\n dispose() {\n if (this._isDisposed) {\n return;\n }\n this._isDisposed = true;\n this._base._decreaseRefCount(this._debugOwner);\n }\n}\n"],"names":["d","store","reader"],"mappings":";;;;;;;;;;;;AAYO,SAAS,YAAY,MAAM,MAAM,aAAa,SAAS;AAC1D,MAAI,KAAK,WAAW,GAAG;AACnB,WAAO;AAAA,EACf;AACI,MAAI,KAAK,WAAW,GAAG;AACnB,WAAO;AAAA,EACf;AACI,QAAM,SAAS,CAAE;AACjB,MAAI,IAAI;AACR,MAAI,IAAI;AACR,SAAO,IAAI,KAAK,UAAU,IAAI,KAAK,QAAQ;AACvC,UAAM,OAAO,KAAK,CAAC;AACnB,UAAM,OAAO,KAAK,CAAC;AACnB,UAAM,OAAO,YAAY,IAAI;AAC7B,UAAM,OAAO,YAAY,IAAI;AAC7B,QAAI,OAAO,MAAM;AACb,aAAO,KAAK,IAAI;AAChB;AAAA,IACZ,WACiB,OAAO,MAAM;AAClB,aAAO,KAAK,IAAI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,QAAI,YAAY;AACZ,YAAM,MAAM,KAAK,QAAQ,QAAQ,UAAU;AAC3C,UAAI,QAAQ,IAAI;AACZ,aAAK,QAAQ,OAAO,KAAK,CAAC;AAAA,MAC1C;AAAA,IACA;AAAA,EACA;AACA;AACA,MAAM,yBAAyB,WAAW;AAAA,EACtC,YAAY,OAAO,aAAa;AAC5B,UAAO;AACP,SAAK,QAAQ;AACb,SAAK,cAAc;AACnB,SAAK,cAAc;AAAA,EAC3B;AAAA,EACI,IAAI,SAAS;AAAE,WAAO,KAAK,MAAM;AAAA,EAAO;AAAA,EACxC,aAAa,YAAY;AACrB,WAAO,KAAK,MAAM,aAAa,UAAU;AAAA,EACjD;AAAA,EACI,UAAU;AACN,QAAI,KAAK,aAAa;AAClB;AAAA,IACZ;AACQ,SAAK,cAAc;AACnB,SAAK,MAAM,kBAAkB,KAAK,WAAW;AAAA,EACrD;AACA;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"utils.es.js","sources":["../../../../../../../../../../../../../../node_modules/.pnpm/monaco-editor@0.52.2/node_modules/monaco-editor/esm/vs/editor/browser/widget/diffEditor/utils.js"],"sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\nimport { findLast } from '../../../../base/common/arraysFind.js';\nimport { CancellationTokenSource } from '../../../../base/common/cancellation.js';\nimport { Disposable, DisposableStore, toDisposable } from '../../../../base/common/lifecycle.js';\nimport { autorun, autorunHandleChanges, autorunOpts, autorunWithStore, observableValue, transaction } from '../../../../base/common/observable.js';\nimport { ElementSizeObserver } from '../../config/elementSizeObserver.js';\nimport { Position } from '../../../common/core/position.js';\nimport { Range } from '../../../common/core/range.js';\nimport { TextLength } from '../../../common/core/textLength.js';\nexport function joinCombine(arr1, arr2, keySelector, combine) {\n if (arr1.length === 0) {\n return arr2;\n }\n if (arr2.length === 0) {\n return arr1;\n }\n const result = [];\n let i = 0;\n let j = 0;\n while (i < arr1.length && j < arr2.length) {\n const val1 = arr1[i];\n const val2 = arr2[j];\n const key1 = keySelector(val1);\n const key2 = keySelector(val2);\n if (key1 < key2) {\n result.push(val1);\n i++;\n }\n else if (key1 > key2) {\n result.push(val2);\n j++;\n }\n else {\n result.push(combine(val1, val2));\n i++;\n j++;\n }\n }\n while (i < arr1.length) {\n result.push(arr1[i]);\n i++;\n }\n while (j < arr2.length) {\n result.push(arr2[j]);\n j++;\n }\n return result;\n}\n// TODO make utility\nexport function applyObservableDecorations(editor, decorations) {\n const d = new DisposableStore();\n const decorationsCollection = editor.createDecorationsCollection();\n d.add(autorunOpts({ debugName: () => `Apply decorations from ${decorations.debugName}` }, reader => {\n const d = decorations.read(reader);\n decorationsCollection.set(d);\n }));\n d.add({\n dispose: () => {\n decorationsCollection.clear();\n }\n });\n return d;\n}\nexport function appendRemoveOnDispose(parent, child) {\n parent.appendChild(child);\n return toDisposable(() => {\n child.remove();\n });\n}\nexport function prependRemoveOnDispose(parent, child) {\n parent.prepend(child);\n return toDisposable(() => {\n child.remove();\n });\n}\nexport class ObservableElementSizeObserver extends Disposable {\n get width() { return this._width; }\n get height() { return this._height; }\n get automaticLayout() { return this._automaticLayout; }\n constructor(element, dimension) {\n super();\n this._automaticLayout = false;\n this.elementSizeObserver = this._register(new ElementSizeObserver(element, dimension));\n this._width = observableValue(this, this.elementSizeObserver.getWidth());\n this._height = observableValue(this, this.elementSizeObserver.getHeight());\n this._register(this.elementSizeObserver.onDidChange(e => transaction(tx => {\n /** @description Set width/height from elementSizeObserver */\n this._width.set(this.elementSizeObserver.getWidth(), tx);\n this._height.set(this.elementSizeObserver.getHeight(), tx);\n })));\n }\n observe(dimension) {\n this.elementSizeObserver.observe(dimension);\n }\n setAutomaticLayout(automaticLayout) {\n this._automaticLayout = automaticLayout;\n if (automaticLayout) {\n this.elementSizeObserver.startObserving();\n }\n else {\n this.elementSizeObserver.stopObserving();\n }\n }\n}\nexport function animatedObservable(targetWindow, base, store) {\n let targetVal = base.get();\n let startVal = targetVal;\n let curVal = targetVal;\n const result = observableValue('animatedValue', targetVal);\n let animationStartMs = -1;\n const durationMs = 300;\n let animationFrame = undefined;\n store.add(autorunHandleChanges({\n createEmptyChangeSummary: () => ({ animate: false }),\n handleChange: (ctx, s) => {\n if (ctx.didChange(base)) {\n s.animate = s.animate || ctx.change;\n }\n return true;\n }\n }, (reader, s) => {\n /** @description update value */\n if (animationFrame !== undefined) {\n targetWindow.cancelAnimationFrame(animationFrame);\n animationFrame = undefined;\n }\n startVal = curVal;\n targetVal = base.read(reader);\n animationStartMs = Date.now() - (s.animate ? 0 : durationMs);\n update();\n }));\n function update() {\n const passedMs = Date.now() - animationStartMs;\n curVal = Math.floor(easeOutExpo(passedMs, startVal, targetVal - startVal, durationMs));\n if (passedMs < durationMs) {\n animationFrame = targetWindow.requestAnimationFrame(update);\n }\n else {\n curVal = targetVal;\n }\n result.set(curVal, undefined);\n }\n return result;\n}\nfunction easeOutExpo(t, b, c, d) {\n return t === d ? b + c : c * (-Math.pow(2, -10 * t / d) + 1) + b;\n}\nexport class ViewZoneOverlayWidget extends Disposable {\n constructor(editor, viewZone, htmlElement) {\n super();\n this._register(new ManagedOverlayWidget(editor, htmlElement));\n this._register(applyStyle(htmlElement, {\n height: viewZone.actualHeight,\n top: viewZone.actualTop,\n }));\n }\n}\nexport class PlaceholderViewZone {\n get afterLineNumber() { return this._afterLineNumber.get(); }\n constructor(_afterLineNumber, heightInPx) {\n this._afterLineNumber = _afterLineNumber;\n this.heightInPx = heightInPx;\n this.domNode = document.createElement('div');\n this._actualTop = observableValue(this, undefined);\n this._actualHeight = observableValue(this, undefined);\n this.actualTop = this._actualTop;\n this.actualHeight = this._actualHeight;\n this.showInHiddenAreas = true;\n this.onChange = this._afterLineNumber;\n this.onDomNodeTop = (top) => {\n this._actualTop.set(top, undefined);\n };\n this.onComputedHeight = (height) => {\n this._actualHeight.set(height, undefined);\n };\n }\n}\nexport class ManagedOverlayWidget {\n static { this._counter = 0; }\n constructor(_editor, _domElement) {\n this._editor = _editor;\n this._domElement = _domElement;\n this._overlayWidgetId = `managedOverlayWidget-${ManagedOverlayWidget._counter++}`;\n this._overlayWidget = {\n getId: () => this._overlayWidgetId,\n getDomNode: () => this._domElement,\n getPosition: () => null\n };\n this._editor.addOverlayWidget(this._overlayWidget);\n }\n dispose() {\n this._editor.removeOverlayWidget(this._overlayWidget);\n }\n}\nexport function applyStyle(domNode, style) {\n return autorun(reader => {\n /** @description applyStyle */\n for (let [key, val] of Object.entries(style)) {\n if (val && typeof val === 'object' && 'read' in val) {\n val = val.read(reader);\n }\n if (typeof val === 'number') {\n val = `${val}px`;\n }\n key = key.replace(/[A-Z]/g, m => '-' + m.toLowerCase());\n domNode.style[key] = val;\n }\n });\n}\nexport function applyViewZones(editor, viewZones, setIsUpdating, zoneIds) {\n const store = new DisposableStore();\n const lastViewZoneIds = [];\n store.add(autorunWithStore((reader, store) => {\n /** @description applyViewZones */\n const curViewZones = viewZones.read(reader);\n const viewZonIdsPerViewZone = new Map();\n const viewZoneIdPerOnChangeObservable = new Map();\n // Add/remove view zones\n if (setIsUpdating) {\n setIsUpdating(true);\n }\n editor.changeViewZones(a => {\n for (const id of lastViewZoneIds) {\n a.removeZone(id);\n zoneIds?.delete(id);\n }\n lastViewZoneIds.length = 0;\n for (const z of curViewZones) {\n const id = a.addZone(z);\n if (z.setZoneId) {\n z.setZoneId(id);\n }\n lastViewZoneIds.push(id);\n zoneIds?.add(id);\n viewZonIdsPerViewZone.set(z, id);\n }\n });\n if (setIsUpdating) {\n setIsUpdating(false);\n }\n // Layout zone on change\n store.add(autorunHandleChanges({\n createEmptyChangeSummary() {\n return { zoneIds: [] };\n },\n handleChange(context, changeSummary) {\n const id = viewZoneIdPerOnChangeObservable.get(context.changedObservable);\n if (id !== undefined) {\n changeSummary.zoneIds.push(id);\n }\n return true;\n },\n }, (reader, changeSummary) => {\n /** @description layoutZone on change */\n for (const vz of curViewZones) {\n if (vz.onChange) {\n viewZoneIdPerOnChangeObservable.set(vz.onChange, viewZonIdsPerViewZone.get(vz));\n vz.onChange.read(reader);\n }\n }\n if (setIsUpdating) {\n setIsUpdating(true);\n }\n editor.changeViewZones(a => { for (const id of changeSummary.zoneIds) {\n a.layoutZone(id);\n } });\n if (setIsUpdating) {\n setIsUpdating(false);\n }\n }));\n }));\n store.add({\n dispose() {\n if (setIsUpdating) {\n setIsUpdating(true);\n }\n editor.changeViewZones(a => { for (const id of lastViewZoneIds) {\n a.removeZone(id);\n } });\n zoneIds?.clear();\n if (setIsUpdating) {\n setIsUpdating(false);\n }\n }\n });\n return store;\n}\nexport class DisposableCancellationTokenSource extends CancellationTokenSource {\n dispose() {\n super.dispose(true);\n }\n}\nexport function translatePosition(posInOriginal, mappings) {\n const mapping = findLast(mappings, m => m.original.startLineNumber <= posInOriginal.lineNumber);\n if (!mapping) {\n // No changes before the position\n return Range.fromPositions(posInOriginal);\n }\n if (mapping.original.endLineNumberExclusive <= posInOriginal.lineNumber) {\n const newLineNumber = posInOriginal.lineNumber - mapping.original.endLineNumberExclusive + mapping.modified.endLineNumberExclusive;\n return Range.fromPositions(new Position(newLineNumber, posInOriginal.column));\n }\n if (!mapping.innerChanges) {\n // Only for legacy algorithm\n return Range.fromPositions(new Position(mapping.modified.startLineNumber, 1));\n }\n const innerMapping = findLast(mapping.innerChanges, m => m.originalRange.getStartPosition().isBeforeOrEqual(posInOriginal));\n if (!innerMapping) {\n const newLineNumber = posInOriginal.lineNumber - mapping.original.startLineNumber + mapping.modified.startLineNumber;\n return Range.fromPositions(new Position(newLineNumber, posInOriginal.column));\n }\n if (innerMapping.originalRange.containsPosition(posInOriginal)) {\n return innerMapping.modifiedRange;\n }\n else {\n const l = lengthBetweenPositions(innerMapping.originalRange.getEndPosition(), posInOriginal);\n return Range.fromPositions(l.addToPosition(innerMapping.modifiedRange.getEndPosition()));\n }\n}\nfunction lengthBetweenPositions(position1, position2) {\n if (position1.lineNumber === position2.lineNumber) {\n return new TextLength(0, position2.column - position1.column);\n }\n else {\n return new TextLength(position2.lineNumber - position1.lineNumber, position2.column - 1);\n }\n}\nexport function filterWithPrevious(arr, filter) {\n let prev;\n return arr.filter(cur => {\n const result = filter(cur, prev);\n prev = cur;\n return result;\n });\n}\nexport class RefCounted {\n static create(value, debugOwner = undefined) {\n return new BaseRefCounted(value, value, debugOwner);\n }\n static createWithDisposable(value, disposable, debugOwner = undefined) {\n const store = new DisposableStore();\n store.add(disposable);\n store.add(value);\n return new BaseRefCounted(value, store, debugOwner);\n }\n}\nclass BaseRefCounted extends RefCounted {\n constructor(object, _disposable, _debugOwner) {\n super();\n this.object = object;\n this._disposable = _disposable;\n this._debugOwner = _debugOwner;\n this._refCount = 1;\n this._isDisposed = false;\n this._owners = [];\n if (_debugOwner) {\n this._addOwner(_debugOwner);\n }\n }\n _addOwner(debugOwner) {\n if (debugOwner) {\n this._owners.push(debugOwner);\n }\n }\n createNewRef(debugOwner) {\n this._refCount++;\n if (debugOwner) {\n this._addOwner(debugOwner);\n }\n return new ClonedRefCounted(this, debugOwner);\n }\n dispose() {\n if (this._isDisposed) {\n return;\n }\n this._isDisposed = true;\n this._decreaseRefCount(this._debugOwner);\n }\n _decreaseRefCount(debugOwner) {\n this._refCount--;\n if (this._refCount === 0) {\n this._disposable.dispose();\n }\n if (debugOwner) {\n const idx = this._owners.indexOf(debugOwner);\n if (idx !== -1) {\n this._owners.splice(idx, 1);\n }\n }\n }\n}\nclass ClonedRefCounted extends RefCounted {\n constructor(_base, _debugOwner) {\n super();\n this._base = _base;\n this._debugOwner = _debugOwner;\n this._isDisposed = false;\n }\n get object() { return this._base.object; }\n createNewRef(debugOwner) {\n return this._base.createNewRef(debugOwner);\n }\n dispose() {\n if (this._isDisposed) {\n return;\n }\n this._isDisposed = true;\n this._base._decreaseRefCount(this._debugOwner);\n }\n}\n"],"names":["d","store","reader"],"mappings":";;;;;;;;;;;;AAYO,SAAS,YAAY,MAAM,MAAM,aAAa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ACI,aAAa,YAAY;AACrB,SAAK;AACL,QAAI,YAAY;AACZ,WAAK,UAAU,UAAU;AAAA,IACrC;AACQ,WAAO,IAAI,iBAAiB,MAAM,UAAU;AAAA,EACpD;AAAA,EACI,UAAU;AACN,QAAI,KAAK,aAAa;AAClB;AAAA,IACZ;AACQ,SAAK,cAAc;AACnB,SAAK,kBAAkB,KAAK,WAAW;AAAA,EAC/C;AAAA,EACI,kBAAkB,YAAY;AAC1B,SAAK;AACL,QAAI,KAAK,cAAc,GAAG;AACtB,WAAK,YAAY,QAAS;AAAA,IACtC;AACQ,QAAI,YAAY;AACZ,YAAM,MAAM,KAAK,QAAQ,QAAQ,UAAU;AAC3C,UAAI,QAAQ,IAAI;AACZ,aAAK,QAAQ,OAAO,KAAK,CAAC;AAAA,MAC1C;AAAA,IACA;AAAA,EACA;AACA;AACA,MAAM,yBAAyB,WAAW;AAAA,EACtC,YAAY,OAAO,aAAa;AAC5B,UAAO;AACP,SAAK,QAAQ;AACb,SAAK,cAAc;AACnB,SAAK,cAAc;AAAA,EAC3B;AAAA,EACI,IAAI,SAAS;AAAE,WAAO,KAAK,MAAM;AAAA,EAAO;AAAA,EACxC,aAAa,YAAY;AACrB,WAAO,KAAK,MAAM,aAAa,UAAU;AAAA,EACjD;AAAA,EACI,UAAU;AACN,QAAI,KAAK,aAAa;AAClB;AAAA,IACZ;AACQ,SAAK,cAAc;AACnB,SAAK,MAAM,kBAAkB,KAAK,WAAW;AAAA,EACrD;AACA;","x_google_ignoreList":[0]}
@@ -14,24 +14,6 @@ class ReplaceCommand {
14
14
  return Selection.fromPositions(srcRange.getEndPosition());
15
15
  }
16
16
  }
17
- class ReplaceCommandThatSelectsText {
18
- constructor(range, text) {
19
- this._range = range;
20
- this._text = text;
21
- }
22
- getEditOperations(model, builder) {
23
- builder.addTrackedEditOperation(this._range, this._text);
24
- }
25
- computeCursorState(model, helper) {
26
- const inverseEditOperations = helper.getInverseEditOperations();
27
- const srcRange = inverseEditOperations[0].range;
28
- return Selection.fromRange(
29
- srcRange,
30
- 0
31
- /* SelectionDirection.LTR */
32
- );
33
- }
34
- }
35
17
  class ReplaceCommandWithoutChangingPosition {
36
18
  constructor(range, text, insertsAutoWhitespace = false) {
37
19
  this._range = range;
@@ -83,7 +65,6 @@ class ReplaceCommandThatPreservesSelection {
83
65
  export {
84
66
  ReplaceCommand,
85
67
  ReplaceCommandThatPreservesSelection,
86
- ReplaceCommandThatSelectsText,
87
68
  ReplaceCommandWithOffsetCursorState,
88
69
  ReplaceCommandWithoutChangingPosition
89
70
  };