@codingame/monaco-vscode-api 1.78.8 → 1.79.0

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 (641) hide show
  1. package/README.md +2 -1
  2. package/dist/activity.d.ts +2902 -0
  3. package/dist/api.js +6 -5
  4. package/dist/assets/activityaction.css +224 -0
  5. package/dist/assets/activitybarpart.css +65 -0
  6. package/dist/assets/basepanelpart.css +221 -0
  7. package/dist/assets/callHierarchy.css +62 -0
  8. package/dist/assets/{sidebysideeditor.css → compositepart.css} +10 -2
  9. package/dist/assets/debugViewlet.css +337 -0
  10. package/dist/assets/explorerviewlet.css +129 -0
  11. package/dist/assets/hover.css +127 -0
  12. package/dist/assets/interactiveSession.css +340 -0
  13. package/dist/assets/menubar.css +111 -0
  14. package/dist/assets/menubarControl.css +61 -0
  15. package/dist/assets/notificationsCenter.css +3 -3
  16. package/dist/assets/panelpart.css +75 -0
  17. package/dist/assets/part.css +109 -0
  18. package/dist/assets/repl.css +145 -0
  19. package/dist/assets/sidebarpart.css +61 -0
  20. package/dist/assets/tunnelView.css +107 -0
  21. package/dist/assets/typeHierarchy.css +62 -0
  22. package/dist/assets/views.css +297 -0
  23. package/dist/collections.d.ts +7 -0
  24. package/dist/colorRegistry.d.ts +710 -0
  25. package/dist/contextkey.d.ts +330 -0
  26. package/dist/debugProtocol.d.ts +2343 -0
  27. package/dist/default-extensions/bat.js +5 -4
  28. package/dist/default-extensions/clojure.js +4 -3
  29. package/dist/default-extensions/coffeescript.js +5 -4
  30. package/dist/default-extensions/cpp.js +10 -9
  31. package/dist/default-extensions/csharp.js +5 -4
  32. package/dist/default-extensions/css.js +4 -3
  33. package/dist/default-extensions/dart.js +4 -3
  34. package/dist/default-extensions/diff.js +4 -3
  35. package/dist/default-extensions/docker.js +4 -3
  36. package/dist/default-extensions/fsharp.js +5 -4
  37. package/dist/default-extensions/go.js +4 -3
  38. package/dist/default-extensions/groovy.js +5 -4
  39. package/dist/default-extensions/handlebars.js +4 -3
  40. package/dist/default-extensions/hlsl.js +4 -3
  41. package/dist/default-extensions/html.js +6 -5
  42. package/dist/default-extensions/ini.js +5 -4
  43. package/dist/default-extensions/java.js +5 -4
  44. package/dist/default-extensions/javascript.js +8 -7
  45. package/dist/default-extensions/json.js +5 -4
  46. package/dist/default-extensions/julia.js +4 -3
  47. package/dist/default-extensions/latex.js +10 -9
  48. package/dist/default-extensions/less.js +4 -3
  49. package/dist/default-extensions/log.js +3 -2
  50. package/dist/default-extensions/lua.js +4 -3
  51. package/dist/default-extensions/make.js +4 -3
  52. package/dist/default-extensions/markdown-basics.js +5 -4
  53. package/dist/default-extensions/objective-c.js +5 -4
  54. package/dist/default-extensions/perl.js +6 -5
  55. package/dist/default-extensions/php.js +6 -5
  56. package/dist/default-extensions/powershell.js +4 -3
  57. package/dist/default-extensions/pug.js +4 -3
  58. package/dist/default-extensions/python.js +5 -4
  59. package/dist/default-extensions/r.js +4 -3
  60. package/dist/default-extensions/razor.js +4 -3
  61. package/dist/default-extensions/references-view.js +8 -0
  62. package/dist/default-extensions/ruby.js +4 -3
  63. package/dist/default-extensions/rust.js +4 -3
  64. package/dist/default-extensions/scss.js +5 -4
  65. package/dist/default-extensions/shaderlab.js +4 -3
  66. package/dist/default-extensions/shellscript.js +4 -3
  67. package/dist/default-extensions/sql.js +4 -3
  68. package/dist/default-extensions/swift.js +5 -4
  69. package/dist/default-extensions/theme-abyss.js +3 -2
  70. package/dist/default-extensions/theme-defaults.js +31 -10
  71. package/dist/default-extensions/theme-kimbie-dark.js +3 -2
  72. package/dist/default-extensions/theme-monokai-dimmed.js +3 -2
  73. package/dist/default-extensions/theme-monokai.js +3 -2
  74. package/dist/default-extensions/theme-quietlight.js +3 -2
  75. package/dist/default-extensions/theme-red.js +3 -2
  76. package/dist/default-extensions/theme-seti.js +5 -2
  77. package/dist/default-extensions/theme-solarized-dark.js +3 -2
  78. package/dist/default-extensions/theme-solarized-light.js +3 -2
  79. package/dist/default-extensions/theme-tomorrow-night-blue.js +3 -2
  80. package/dist/default-extensions/typescript-basics.js +8 -7
  81. package/dist/default-extensions/vb.js +5 -4
  82. package/dist/default-extensions/xml.js +6 -5
  83. package/dist/default-extensions/yaml.js +4 -3
  84. package/dist/editor.d.ts +322 -0
  85. package/dist/editorBrowser.d.ts +3128 -0
  86. package/dist/event.d.ts +581 -0
  87. package/dist/extension-tools-d0cfdea1.js +25603 -0
  88. package/dist/extensions.d.ts +20 -829
  89. package/dist/extensions.d2.ts +457 -0
  90. package/dist/extensions.js +100 -5
  91. package/dist/extensionsRegistry.d.ts +239 -0
  92. package/dist/files.d.ts +853 -0
  93. package/dist/instantiation.d.ts +59 -0
  94. package/dist/jsonSchema.d.ts +90 -0
  95. package/dist/keybinding.d.ts +622 -0
  96. package/dist/languageFeatures.d.ts +4762 -0
  97. package/dist/log.d.ts +150 -0
  98. package/dist/monaco.d.ts +42 -5195
  99. package/dist/override/vs/workbench/contrib/files/browser/views/openEditorsView.js +2 -0
  100. package/dist/rollup-extension-directory-plugin.d.ts +5 -2
  101. package/dist/rollup-extension-directory-plugin.js +74 -46
  102. package/dist/rollup-vsix-plugin.d.ts +4 -2
  103. package/dist/rollup-vsix-plugin.js +57 -19
  104. package/dist/service-override/audioCue.d.ts +4 -19
  105. package/dist/service-override/configuration.d.ts +10 -628
  106. package/dist/service-override/configuration.js +16 -4
  107. package/dist/service-override/debug.d.ts +4 -19
  108. package/dist/service-override/dialogs.d.ts +3 -3
  109. package/dist/service-override/files.d.ts +53 -818
  110. package/dist/service-override/files.js +37 -15
  111. package/dist/service-override/keybindings.d.ts +9 -11
  112. package/dist/service-override/languages.d.ts +4 -74
  113. package/dist/service-override/layout.js +80 -6
  114. package/dist/service-override/modelEditor.d.ts +9 -557
  115. package/dist/service-override/modelEditor.js +5 -3
  116. package/dist/service-override/notifications.d.ts +3 -3
  117. package/dist/service-override/preferences.d.ts +3 -3
  118. package/dist/service-override/snippets.d.ts +3 -3
  119. package/dist/service-override/textmate.d.ts +3 -11
  120. package/dist/service-override/theme.d.ts +4 -16
  121. package/dist/service-override/views.d.ts +502 -0
  122. package/dist/service-override/views.js +177 -0
  123. package/dist/services.d.ts +1946 -16903
  124. package/dist/services.js +3 -0
  125. package/dist/standaloneServices.d.ts +14 -0
  126. package/dist/themables.d.ts +28 -0
  127. package/dist/uri.d.ts +151 -0
  128. package/dist/vscode/vs/base/browser/ui/menu/menubar.js +831 -0
  129. package/dist/vscode/vs/base/browser/ui/splitview/paneview.js +151 -2
  130. package/dist/vscode/vs/base/browser/ui/tree/treeDefaults.js +14 -0
  131. package/dist/vscode/vs/platform/backup/common/backup.js +7 -0
  132. package/dist/vscode/vs/platform/configuration/common/configurationRegistry.js +10 -0
  133. package/dist/vscode/vs/platform/credentials/common/credentials.js +3 -0
  134. package/dist/vscode/vs/platform/extensionManagement/common/extensionManagementUtil.js +4 -1
  135. package/dist/vscode/vs/platform/extensionManagement/common/extensionStorage.js +174 -0
  136. package/dist/vscode/vs/platform/files/common/fileService.js +2 -11
  137. package/dist/vscode/vs/platform/files/common/files.js +28 -0
  138. package/dist/vscode/vs/platform/files/common/io.js +2 -7
  139. package/dist/vscode/vs/platform/languagePacks/common/languagePacks.js +3 -0
  140. package/dist/vscode/vs/platform/remote/common/remoteAuthorityResolver.js +3 -1
  141. package/dist/vscode/vs/platform/storage/common/storage.js +332 -0
  142. package/dist/vscode/vs/platform/telemetry/common/telemetryUtils.js +2 -1
  143. package/dist/vscode/vs/platform/tunnel/common/tunnel.js +29 -1
  144. package/dist/vscode/vs/platform/update/common/update.js +3 -0
  145. package/dist/vscode/vs/platform/window/common/window.js +33 -0
  146. package/dist/vscode/vs/workbench/api/browser/mainThreadBulkEdits.js +18 -1
  147. package/dist/vscode/vs/workbench/api/browser/mainThreadDebugService.js +21 -0
  148. package/dist/vscode/vs/workbench/api/browser/mainThreadExtensionService.js +1 -1
  149. package/dist/vscode/vs/workbench/api/browser/mainThreadLanguageFeatures.js +13 -10
  150. package/dist/vscode/vs/workbench/api/browser/mainThreadLocalization.js +33 -0
  151. package/dist/vscode/vs/workbench/api/browser/mainThreadStorage.js +69 -0
  152. package/dist/vscode/vs/workbench/api/browser/mainThreadTreeViews.js +300 -0
  153. package/dist/vscode/vs/workbench/api/browser/mainThreadWorkspace.js +21 -1
  154. package/dist/vscode/vs/workbench/api/browser/viewsExtensionPoint.js +699 -0
  155. package/dist/vscode/vs/workbench/api/common/extHost.protocol.js +5 -1
  156. package/dist/vscode/vs/workbench/api/common/extHostConfiguration.js +13 -8
  157. package/dist/vscode/vs/workbench/api/common/extHostDebugService.js +31 -0
  158. package/dist/vscode/vs/workbench/api/common/extHostExtensionService.js +4 -4
  159. package/dist/vscode/vs/workbench/api/common/extHostLanguageFeatures.js +54 -43
  160. package/dist/vscode/vs/workbench/api/common/extHostTreeViews.js +823 -0
  161. package/dist/vscode/vs/workbench/api/common/extHostTypeConverters.js +33 -13
  162. package/dist/vscode/vs/workbench/api/common/extHostTypes.js +29 -1
  163. package/dist/vscode/vs/workbench/api/common/extHostVariableResolverService.js +3 -3
  164. package/dist/vscode/vs/workbench/api/common/extHostWorkspace.js +8 -0
  165. package/dist/vscode/vs/workbench/api/common/shared/dataTransferCache.js +1 -1
  166. package/dist/vscode/vs/workbench/browser/actions/layoutActions.js +318 -0
  167. package/dist/vscode/vs/workbench/browser/actions/listCommands.js +602 -0
  168. package/dist/vscode/vs/workbench/browser/actions/windowActions.js +271 -0
  169. package/dist/vscode/vs/workbench/browser/actions/workspaceActions.js +250 -0
  170. package/dist/vscode/vs/workbench/browser/actions/workspaceCommands.js +6 -0
  171. package/dist/vscode/vs/workbench/browser/composite.js +49 -1
  172. package/dist/vscode/vs/workbench/browser/dnd.js +395 -0
  173. package/dist/vscode/vs/workbench/browser/labels.js +426 -0
  174. package/dist/vscode/vs/workbench/browser/panecomposite.js +158 -0
  175. package/dist/vscode/vs/workbench/browser/part.js +84 -0
  176. package/dist/vscode/vs/workbench/browser/parts/activitybar/activitybarActions.js +582 -0
  177. package/dist/vscode/vs/workbench/browser/parts/activitybar/activitybarPart.js +784 -0
  178. package/dist/vscode/vs/workbench/browser/parts/auxiliarybar/auxiliaryBarActions.js +146 -0
  179. package/dist/vscode/vs/workbench/browser/parts/compositeBar.js +687 -0
  180. package/dist/vscode/vs/workbench/browser/parts/compositeBarActions.js +578 -0
  181. package/dist/vscode/vs/workbench/browser/parts/compositePart.js +319 -0
  182. package/dist/vscode/vs/workbench/browser/parts/editor/editorActions.js +7 -7
  183. package/dist/vscode/vs/workbench/browser/parts/editor/editorCommands.js +4 -1121
  184. package/dist/vscode/vs/workbench/browser/parts/panel/panelActions.js +381 -0
  185. package/dist/vscode/vs/workbench/browser/parts/panel/panelPart.js +753 -0
  186. package/dist/vscode/vs/workbench/browser/parts/sidebar/sidebarPart.js +217 -0
  187. package/dist/vscode/vs/workbench/browser/parts/titlebar/menubarControl.js +600 -0
  188. package/dist/vscode/vs/workbench/browser/parts/views/checkbox.js +80 -0
  189. package/dist/vscode/vs/workbench/browser/parts/views/treeView.js +1475 -0
  190. package/dist/vscode/vs/workbench/browser/parts/views/viewFilter.js +181 -0
  191. package/dist/vscode/vs/workbench/browser/parts/views/viewPane.js +50 -2
  192. package/dist/vscode/vs/workbench/browser/parts/views/viewPaneContainer.js +1020 -0
  193. package/dist/vscode/vs/workbench/browser/parts/views/viewsService.js +562 -0
  194. package/dist/vscode/vs/workbench/browser/parts/views/viewsViewlet.js +109 -0
  195. package/dist/vscode/vs/workbench/browser/style.js +43 -0
  196. package/dist/vscode/vs/workbench/common/activity.js +3 -0
  197. package/dist/vscode/vs/workbench/common/contextkeys.js +31 -9
  198. package/dist/vscode/vs/workbench/common/editor/textEditorModel.js +7 -8
  199. package/dist/vscode/vs/workbench/common/editor.js +1 -47
  200. package/dist/vscode/vs/workbench/common/theme.js +38 -25
  201. package/dist/vscode/vs/workbench/common/views.js +280 -1
  202. package/dist/vscode/vs/workbench/contrib/bulkEdit/browser/bulkCellEdits.js +62 -1
  203. package/dist/vscode/vs/workbench/contrib/bulkEdit/browser/bulkEditService.js +305 -0
  204. package/dist/vscode/vs/workbench/contrib/bulkEdit/browser/bulkFileEdits.js +373 -0
  205. package/dist/vscode/vs/workbench/contrib/bulkEdit/browser/bulkTextEdits.js +257 -0
  206. package/dist/vscode/vs/workbench/contrib/callHierarchy/browser/callHierarchy.contribution.js +259 -0
  207. package/dist/vscode/vs/workbench/contrib/callHierarchy/browser/callHierarchyPeek.js +337 -0
  208. package/dist/vscode/vs/workbench/contrib/callHierarchy/browser/callHierarchyTree.js +119 -0
  209. package/dist/vscode/vs/workbench/contrib/debug/browser/baseDebugView.js +8 -2
  210. package/dist/vscode/vs/workbench/contrib/debug/browser/breakpointEditorContribution.js +12 -4
  211. package/dist/vscode/vs/workbench/contrib/debug/browser/breakpointWidget.js +5 -0
  212. package/dist/vscode/vs/workbench/contrib/debug/browser/breakpointsView.js +585 -8
  213. package/dist/vscode/vs/workbench/contrib/debug/browser/callStackEditorContribution.js +5 -1
  214. package/dist/vscode/vs/workbench/contrib/debug/browser/callStackView.js +954 -0
  215. package/dist/vscode/vs/workbench/contrib/debug/browser/debug.contribution.js +151 -145
  216. package/dist/vscode/vs/workbench/contrib/debug/browser/debugANSIHandling.js +345 -0
  217. package/dist/vscode/vs/workbench/contrib/debug/browser/debugCommands.js +79 -3
  218. package/dist/vscode/vs/workbench/contrib/debug/browser/debugEditorActions.js +522 -0
  219. package/dist/vscode/vs/workbench/contrib/debug/browser/debugEditorContribution.js +10 -9
  220. package/dist/vscode/vs/workbench/contrib/debug/browser/debugHover.js +15 -7
  221. package/dist/vscode/vs/workbench/contrib/debug/browser/debugIcons.js +28 -1
  222. package/dist/vscode/vs/workbench/contrib/debug/browser/debugSession.js +72 -65
  223. package/dist/vscode/vs/workbench/contrib/debug/browser/debugViewlet.js +166 -0
  224. package/dist/vscode/vs/workbench/contrib/debug/browser/linkDetector.js +10 -10
  225. package/dist/vscode/vs/workbench/contrib/debug/browser/loadedScriptsView.js +629 -0
  226. package/dist/vscode/vs/workbench/contrib/debug/browser/repl.js +908 -0
  227. package/dist/vscode/vs/workbench/contrib/debug/browser/replFilter.js +46 -0
  228. package/dist/vscode/vs/workbench/contrib/debug/browser/replViewer.js +330 -0
  229. package/dist/vscode/vs/workbench/contrib/debug/browser/variablesView.js +295 -10
  230. package/dist/vscode/vs/workbench/contrib/debug/browser/watchExpressionsView.js +411 -0
  231. package/dist/vscode/vs/workbench/contrib/debug/browser/welcomeView.js +85 -0
  232. package/dist/vscode/vs/workbench/contrib/debug/common/debug.js +98 -1
  233. package/dist/vscode/vs/workbench/contrib/debug/common/debugModel.js +10 -1
  234. package/dist/vscode/vs/workbench/contrib/debug/common/debugViewModel.js +9 -1
  235. package/dist/vscode/vs/workbench/contrib/debug/common/replModel.js +51 -1
  236. package/dist/vscode/vs/workbench/contrib/externalUriOpener/common/externalUriOpenerService.js +3 -0
  237. package/dist/vscode/vs/workbench/contrib/files/browser/explorerViewlet.js +254 -0
  238. package/dist/vscode/vs/workbench/contrib/files/browser/fileActions.contribution.js +207 -0
  239. package/dist/vscode/vs/workbench/contrib/files/browser/fileActions.js +1119 -0
  240. package/dist/vscode/vs/workbench/contrib/files/browser/fileCommands.js +595 -0
  241. package/dist/vscode/vs/workbench/contrib/files/browser/fileConstants.js +26 -0
  242. package/dist/vscode/vs/workbench/contrib/files/browser/fileImportExport.js +708 -0
  243. package/dist/vscode/vs/workbench/contrib/files/browser/files.contribution.js +368 -13
  244. package/dist/vscode/vs/workbench/contrib/files/browser/files.js +88 -1
  245. package/dist/vscode/vs/workbench/contrib/files/browser/views/emptyView.js +88 -0
  246. package/dist/vscode/vs/workbench/contrib/files/browser/views/explorerDecorationsProvider.js +73 -0
  247. package/dist/vscode/vs/workbench/contrib/files/browser/views/explorerView.js +796 -0
  248. package/dist/vscode/vs/workbench/contrib/files/browser/views/explorerViewer.js +1209 -0
  249. package/dist/vscode/vs/workbench/contrib/files/common/files.js +194 -3
  250. package/dist/vscode/vs/workbench/contrib/interactiveSession/browser/interactiveSessionFollowups.js +30 -0
  251. package/dist/vscode/vs/workbench/contrib/interactiveSession/browser/interactiveSessionInputPart.js +196 -0
  252. package/dist/vscode/vs/workbench/contrib/interactiveSession/browser/interactiveSessionListRenderer.js +622 -0
  253. package/dist/vscode/vs/workbench/contrib/interactiveSession/browser/interactiveSessionOptions.js +77 -0
  254. package/dist/vscode/vs/workbench/contrib/interactiveSession/browser/interactiveSessionWidget.js +311 -0
  255. package/dist/vscode/vs/workbench/contrib/interactiveSession/common/interactiveSessionContextKeys.js +48 -0
  256. package/dist/vscode/vs/workbench/contrib/interactiveSession/common/interactiveSessionService.js +8 -0
  257. package/dist/vscode/vs/workbench/contrib/interactiveSession/common/interactiveSessionViewModel.js +207 -0
  258. package/dist/vscode/vs/workbench/contrib/interactiveSession/common/interactiveSessionWidgetHistoryService.js +3 -0
  259. package/dist/vscode/vs/workbench/contrib/interactiveSession/common/interactiveSessionWordCounter.js +25 -0
  260. package/dist/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser.js +27 -0
  261. package/dist/vscode/vs/workbench/contrib/notebook/common/notebookCommon.js +79 -1
  262. package/dist/vscode/vs/workbench/contrib/notebook/common/notebookEditorInput.js +249 -0
  263. package/dist/vscode/vs/workbench/contrib/notebook/common/notebookEditorModelResolverService.js +3 -0
  264. package/dist/vscode/vs/workbench/contrib/notebook/common/notebookService.js +10 -0
  265. package/dist/vscode/vs/workbench/contrib/quickaccess/browser/commandsQuickAccess.js +117 -19
  266. package/dist/vscode/vs/workbench/contrib/remote/browser/remoteExplorer.js +186 -0
  267. package/dist/vscode/vs/workbench/contrib/remote/browser/remoteIcons.js +23 -0
  268. package/dist/vscode/vs/workbench/contrib/remote/browser/tunnelView.js +1636 -0
  269. package/dist/vscode/vs/workbench/contrib/scm/common/scm.js +2 -0
  270. package/dist/vscode/vs/workbench/contrib/terminal/common/terminalColorRegistry.js +167 -0
  271. package/dist/vscode/vs/workbench/contrib/testing/common/testId.js +5 -2
  272. package/dist/vscode/vs/workbench/contrib/typeHierarchy/browser/typeHierarchy.contribution.js +244 -0
  273. package/dist/vscode/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyPeek.js +332 -0
  274. package/dist/vscode/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyTree.js +117 -0
  275. package/dist/vscode/vs/workbench/contrib/webview/browser/webview.js +41 -0
  276. package/dist/vscode/vs/workbench/contrib/webview/browser/webviewWindowDragMonitor.js +20 -0
  277. package/dist/vscode/vs/workbench/contrib/webviewView/browser/webviewViewPane.js +231 -0
  278. package/dist/vscode/vs/workbench/contrib/webviewView/browser/webviewViewService.js +3 -0
  279. package/dist/vscode/vs/workbench/services/actions/common/menusExtensionPoint.js +179 -1
  280. package/dist/vscode/vs/workbench/services/activity/browser/activityService.js +94 -0
  281. package/dist/vscode/vs/workbench/services/activity/common/activity.js +15 -1
  282. package/dist/vscode/vs/workbench/services/authentication/browser/authenticationService.js +35 -0
  283. package/dist/vscode/vs/workbench/services/authentication/common/authentication.js +3 -0
  284. package/dist/vscode/vs/workbench/services/configuration/browser/configuration.js +1 -1
  285. package/dist/vscode/vs/workbench/services/configurationResolver/common/variableResolver.js +13 -13
  286. package/dist/vscode/vs/workbench/services/extensions/common/extensionDescriptionRegistry.js +3 -3
  287. package/dist/vscode/vs/workbench/services/extensions/common/extensionStorageMigration.js +56 -0
  288. package/dist/vscode/vs/workbench/services/extensions/common/extensions.js +1 -1
  289. package/dist/vscode/vs/workbench/services/extensions/common/extensionsApiProposals.js +8 -0
  290. package/dist/vscode/vs/workbench/services/hover/browser/hover.js +3 -0
  291. package/dist/vscode/vs/workbench/services/hover/browser/hoverService.js +149 -0
  292. package/dist/vscode/vs/workbench/services/hover/browser/hoverWidget.js +514 -0
  293. package/dist/vscode/vs/workbench/services/keybinding/common/macLinuxKeyboardMapper.js +29 -29
  294. package/dist/vscode/vs/workbench/services/keybinding/common/windowsKeyboardMapper.js +11 -11
  295. package/dist/vscode/vs/workbench/services/language/common/languageService.js +1 -1
  296. package/dist/vscode/vs/workbench/services/layout/browser/layoutService.js +9 -1
  297. package/dist/vscode/vs/workbench/services/remote/common/remoteExplorerService.js +782 -0
  298. package/dist/vscode/vs/workbench/services/search/common/ignoreFile.js +102 -0
  299. package/dist/vscode/vs/workbench/services/search/common/queryBuilder.js +26 -8
  300. package/dist/vscode/vs/workbench/services/search/common/search.js +4 -3
  301. package/dist/vscode/vs/workbench/services/semanticSimilarity/common/semanticSimilarityService.js +3 -0
  302. package/dist/vscode/vs/workbench/services/textMate/browser/workerHost/textMateWorkerTokenizerController.js +6 -10
  303. package/dist/vscode/vs/workbench/services/textfile/common/textfiles.js +1 -1
  304. package/dist/vscode/vs/workbench/services/themes/browser/fileIconThemeData.js +2 -2
  305. package/dist/vscode/vs/workbench/services/themes/browser/productIconThemeData.js +4 -5
  306. package/dist/vscode/vs/workbench/services/themes/browser/workbenchThemeService.js +16 -10
  307. package/dist/vscode/vs/workbench/services/themes/common/themeConfiguration.js +36 -38
  308. package/dist/vscode/vs/workbench/services/themes/common/themeExtensionPoints.js +4 -8
  309. package/dist/vscode/vs/workbench/services/themes/common/workbenchThemeService.js +22 -1
  310. package/dist/vscode/vs/workbench/services/views/browser/treeViewsService.js +3 -0
  311. package/dist/vscode/vs/workbench/services/views/browser/viewDescriptorService.js +688 -0
  312. package/dist/vscode/vs/workbench/services/views/common/treeViewsService.js +20 -0
  313. package/dist/vscode/vs/workbench/services/views/common/viewContainerModel.js +613 -0
  314. package/dist/vscode-default-extensions/bat/language-configuration.json.extensionResource.js +2 -0
  315. package/dist/vscode-default-extensions/bat/snippets/batchfile.code-snippets.extensionResource.js +2 -0
  316. package/dist/vscode-default-extensions/bat/syntaxes/batchfile.tmLanguage.json.extensionResource.js +2 -0
  317. package/dist/vscode-default-extensions/clojure/language-configuration.json.extensionResource.js +2 -0
  318. package/dist/vscode-default-extensions/clojure/syntaxes/clojure.tmLanguage.json.extensionResource.js +2 -0
  319. package/dist/vscode-default-extensions/coffeescript/language-configuration.json.extensionResource.js +2 -0
  320. package/dist/vscode-default-extensions/coffeescript/snippets/coffeescript.code-snippets.extensionResource.js +2 -0
  321. package/dist/vscode-default-extensions/coffeescript/syntaxes/coffeescript.tmLanguage.json.extensionResource.js +2 -0
  322. package/dist/vscode-default-extensions/cpp/language-configuration.json.extensionResource.js +2 -0
  323. package/dist/vscode-default-extensions/cpp/snippets/c.code-snippets.extensionResource.js +2 -0
  324. package/dist/vscode-default-extensions/cpp/snippets/cpp.code-snippets.extensionResource.js +2 -0
  325. package/dist/vscode-default-extensions/cpp/syntaxes/c.tmLanguage.json.extensionResource.js +2 -0
  326. package/dist/vscode-default-extensions/cpp/syntaxes/cpp.embedded.macro.tmLanguage.json.extensionResource.js +2 -0
  327. package/dist/vscode-default-extensions/cpp/syntaxes/cpp.tmLanguage.json.extensionResource.js +2 -0
  328. package/dist/vscode-default-extensions/cpp/syntaxes/cuda-cpp.tmLanguage.json.extensionResource.js +2 -0
  329. package/dist/vscode-default-extensions/cpp/syntaxes/{platform.tmLanguage.json.js → platform.tmLanguage.json.extensionResource.js} +2 -2
  330. package/dist/vscode-default-extensions/csharp/language-configuration.json.extensionResource.js +2 -0
  331. package/dist/vscode-default-extensions/csharp/snippets/csharp.code-snippets.extensionResource.js +2 -0
  332. package/dist/vscode-default-extensions/csharp/syntaxes/csharp.tmLanguage.json.extensionResource.js +2 -0
  333. package/dist/vscode-default-extensions/css/language-configuration.json.extensionResource.js +2 -0
  334. package/dist/vscode-default-extensions/css/syntaxes/css.tmLanguage.json.extensionResource.js +2 -0
  335. package/dist/vscode-default-extensions/dart/language-configuration.json.extensionResource.js +2 -0
  336. package/dist/vscode-default-extensions/dart/syntaxes/dart.tmLanguage.json.extensionResource.js +2 -0
  337. package/dist/vscode-default-extensions/diff/language-configuration.json.extensionResource.js +2 -0
  338. package/dist/vscode-default-extensions/diff/syntaxes/diff.tmLanguage.json.extensionResource.js +2 -0
  339. package/dist/vscode-default-extensions/docker/language-configuration.json.extensionResource.js +2 -0
  340. package/dist/vscode-default-extensions/docker/syntaxes/docker.tmLanguage.json.extensionResource.js +2 -0
  341. package/dist/vscode-default-extensions/fsharp/language-configuration.json.extensionResource.js +2 -0
  342. package/dist/vscode-default-extensions/fsharp/snippets/fsharp.code-snippets.extensionResource.js +2 -0
  343. package/dist/vscode-default-extensions/fsharp/syntaxes/fsharp.tmLanguage.json.extensionResource.js +2 -0
  344. package/dist/vscode-default-extensions/go/language-configuration.json.extensionResource.js +2 -0
  345. package/dist/vscode-default-extensions/go/syntaxes/go.tmLanguage.json.extensionResource.js +2 -0
  346. package/dist/vscode-default-extensions/groovy/language-configuration.json.extensionResource.js +2 -0
  347. package/dist/vscode-default-extensions/groovy/snippets/groovy.code-snippets.extensionResource.js +2 -0
  348. package/dist/vscode-default-extensions/groovy/syntaxes/groovy.tmLanguage.json.extensionResource.js +2 -0
  349. package/dist/vscode-default-extensions/handlebars/language-configuration.json.extensionResource.js +2 -0
  350. package/dist/vscode-default-extensions/handlebars/syntaxes/Handlebars.tmLanguage.json.extensionResource.js +2 -0
  351. package/dist/vscode-default-extensions/hlsl/language-configuration.json.extensionResource.js +2 -0
  352. package/dist/vscode-default-extensions/hlsl/syntaxes/hlsl.tmLanguage.json.extensionResource.js +2 -0
  353. package/dist/vscode-default-extensions/html/language-configuration.json.extensionResource.js +2 -0
  354. package/dist/vscode-default-extensions/html/snippets/html.code-snippets.extensionResource.js +2 -0
  355. package/dist/vscode-default-extensions/html/syntaxes/html-derivative.tmLanguage.json.extensionResource.js +2 -0
  356. package/dist/vscode-default-extensions/html/syntaxes/html.tmLanguage.json.extensionResource.js +2 -0
  357. package/dist/vscode-default-extensions/ini/ini.language-configuration.json.extensionResource.js +2 -0
  358. package/dist/vscode-default-extensions/ini/properties.language-configuration.json.extensionResource.js +2 -0
  359. package/dist/vscode-default-extensions/ini/syntaxes/ini.tmLanguage.json.extensionResource.js +2 -0
  360. package/dist/vscode-default-extensions/java/language-configuration.json.extensionResource.js +2 -0
  361. package/dist/vscode-default-extensions/java/snippets/java.code-snippets.extensionResource.js +2 -0
  362. package/dist/vscode-default-extensions/java/syntaxes/java.tmLanguage.json.extensionResource.js +2 -0
  363. package/dist/vscode-default-extensions/javascript/javascript-language-configuration.json.extensionResource.js +2 -0
  364. package/dist/vscode-default-extensions/javascript/snippets/javascript.code-snippets.extensionResource.js +2 -0
  365. package/dist/vscode-default-extensions/javascript/syntaxes/JavaScript.tmLanguage.json.extensionResource.js +2 -0
  366. package/dist/vscode-default-extensions/javascript/syntaxes/JavaScriptReact.tmLanguage.json.extensionResource.js +2 -0
  367. package/dist/vscode-default-extensions/javascript/syntaxes/Regular Expressions (JavaScript).tmLanguage.extensionResource.js +2 -0
  368. package/dist/vscode-default-extensions/javascript/tags-language-configuration.json.extensionResource.js +2 -0
  369. package/dist/vscode-default-extensions/json/language-configuration.json.extensionResource.js +2 -0
  370. package/dist/vscode-default-extensions/json/syntaxes/JSON.tmLanguage.json.extensionResource.js +2 -0
  371. package/dist/vscode-default-extensions/json/syntaxes/JSONC.tmLanguage.json.extensionResource.js +2 -0
  372. package/dist/vscode-default-extensions/julia/language-configuration.json.extensionResource.js +2 -0
  373. package/dist/vscode-default-extensions/julia/syntaxes/julia.tmLanguage.json.extensionResource.js +2 -0
  374. package/dist/vscode-default-extensions/latex/latex-cpp-embedded-language-configuration.json.extensionResource.js +2 -0
  375. package/dist/vscode-default-extensions/latex/latex-language-configuration.json.extensionResource.js +2 -0
  376. package/dist/vscode-default-extensions/latex/markdown-latex-combined-language-configuration.json.extensionResource.js +2 -0
  377. package/dist/vscode-default-extensions/latex/syntaxes/Bibtex.tmLanguage.json.extensionResource.js +2 -0
  378. package/dist/vscode-default-extensions/latex/syntaxes/LaTeX.tmLanguage.json.extensionResource.js +2 -0
  379. package/dist/vscode-default-extensions/latex/syntaxes/TeX.tmLanguage.json.extensionResource.js +2 -0
  380. package/dist/vscode-default-extensions/latex/syntaxes/cpp-grammar-bailout.tmLanguage.json.extensionResource.js +2 -0
  381. package/dist/vscode-default-extensions/latex/syntaxes/markdown-latex-combined.tmLanguage.json.extensionResource.js +2 -0
  382. package/dist/vscode-default-extensions/less/language-configuration.json.extensionResource.js +2 -0
  383. package/dist/vscode-default-extensions/less/syntaxes/less.tmLanguage.json.extensionResource.js +2 -0
  384. package/dist/vscode-default-extensions/log/syntaxes/log.tmLanguage.json.extensionResource.js +2 -0
  385. package/dist/vscode-default-extensions/lua/language-configuration.json.extensionResource.js +2 -0
  386. package/dist/vscode-default-extensions/lua/syntaxes/lua.tmLanguage.json.extensionResource.js +2 -0
  387. package/dist/vscode-default-extensions/make/language-configuration.json.extensionResource.js +2 -0
  388. package/dist/vscode-default-extensions/make/syntaxes/make.tmLanguage.json.extensionResource.js +2 -0
  389. package/dist/vscode-default-extensions/markdown-basics/language-configuration.json.extensionResource.js +2 -0
  390. package/dist/vscode-default-extensions/markdown-basics/snippets/markdown.code-snippets.extensionResource.js +2 -0
  391. package/dist/vscode-default-extensions/markdown-basics/syntaxes/markdown.tmLanguage.json.extensionResource.js +2 -0
  392. package/dist/vscode-default-extensions/objective-c/language-configuration.json.extensionResource.js +2 -0
  393. package/dist/vscode-default-extensions/objective-c/syntaxes/objective-c.tmLanguage.json.extensionResource.js +2 -0
  394. package/dist/vscode-default-extensions/objective-c/syntaxes/objective-c__.tmLanguage.json.extensionResource.js +2 -0
  395. package/dist/vscode-default-extensions/perl/perl.language-configuration.json.extensionResource.js +2 -0
  396. package/dist/vscode-default-extensions/perl/perl6.language-configuration.json.extensionResource.js +2 -0
  397. package/dist/vscode-default-extensions/perl/syntaxes/perl.tmLanguage.json.extensionResource.js +2 -0
  398. package/dist/vscode-default-extensions/perl/syntaxes/perl6.tmLanguage.json.extensionResource.js +2 -0
  399. package/dist/vscode-default-extensions/php/language-configuration.json.extensionResource.js +2 -0
  400. package/dist/vscode-default-extensions/php/snippets/php.code-snippets.extensionResource.js +2 -0
  401. package/dist/vscode-default-extensions/php/syntaxes/html.tmLanguage.json.extensionResource.js +2 -0
  402. package/dist/vscode-default-extensions/php/syntaxes/php.tmLanguage.json.extensionResource.js +2 -0
  403. package/dist/vscode-default-extensions/powershell/language-configuration.json.extensionResource.js +2 -0
  404. package/dist/vscode-default-extensions/powershell/syntaxes/powershell.tmLanguage.json.extensionResource.js +2 -0
  405. package/dist/vscode-default-extensions/pug/language-configuration.json.extensionResource.js +2 -0
  406. package/dist/vscode-default-extensions/pug/syntaxes/pug.tmLanguage.json.extensionResource.js +2 -0
  407. package/dist/vscode-default-extensions/python/language-configuration.json.extensionResource.js +2 -0
  408. package/dist/vscode-default-extensions/python/syntaxes/MagicPython.tmLanguage.json.extensionResource.js +2 -0
  409. package/dist/vscode-default-extensions/python/syntaxes/MagicRegExp.tmLanguage.json.extensionResource.js +2 -0
  410. package/dist/vscode-default-extensions/r/language-configuration.json.extensionResource.js +2 -0
  411. package/dist/vscode-default-extensions/r/syntaxes/r.tmLanguage.json.extensionResource.js +2 -0
  412. package/dist/vscode-default-extensions/razor/language-configuration.json.extensionResource.js +2 -0
  413. package/dist/vscode-default-extensions/razor/syntaxes/cshtml.tmLanguage.json.extensionResource.js +2 -0
  414. package/dist/vscode-default-extensions/references-view/dist/extension.js.extensionResource.js +2 -0
  415. package/dist/vscode-default-extensions/references-view/package.json.js +2 -0
  416. package/dist/vscode-default-extensions/ruby/language-configuration.json.extensionResource.js +2 -0
  417. package/dist/vscode-default-extensions/ruby/syntaxes/ruby.tmLanguage.json.extensionResource.js +2 -0
  418. package/dist/vscode-default-extensions/rust/language-configuration.json.extensionResource.js +2 -0
  419. package/dist/vscode-default-extensions/rust/syntaxes/rust.tmLanguage.json.extensionResource.js +2 -0
  420. package/dist/vscode-default-extensions/scss/language-configuration.json.extensionResource.js +2 -0
  421. package/dist/vscode-default-extensions/scss/syntaxes/sassdoc.tmLanguage.json.extensionResource.js +2 -0
  422. package/dist/vscode-default-extensions/scss/syntaxes/scss.tmLanguage.json.extensionResource.js +2 -0
  423. package/dist/vscode-default-extensions/shaderlab/language-configuration.json.extensionResource.js +2 -0
  424. package/dist/vscode-default-extensions/shaderlab/syntaxes/shaderlab.tmLanguage.json.extensionResource.js +2 -0
  425. package/dist/vscode-default-extensions/shellscript/language-configuration.json.extensionResource.js +2 -0
  426. package/dist/vscode-default-extensions/shellscript/syntaxes/shell-unix-bash.tmLanguage.json.extensionResource.js +2 -0
  427. package/dist/vscode-default-extensions/sql/language-configuration.json.extensionResource.js +2 -0
  428. package/dist/vscode-default-extensions/sql/syntaxes/sql.tmLanguage.json.extensionResource.js +2 -0
  429. package/dist/vscode-default-extensions/swift/language-configuration.json.extensionResource.js +2 -0
  430. package/dist/vscode-default-extensions/swift/snippets/swift.code-snippets.extensionResource.js +2 -0
  431. package/dist/vscode-default-extensions/swift/syntaxes/swift.tmLanguage.json.extensionResource.js +2 -0
  432. package/dist/vscode-default-extensions/theme-abyss/themes/abyss-color-theme.json.extensionResource.js +2 -0
  433. package/dist/vscode-default-extensions/theme-defaults/fileicons/images/document-dark.svg.extensionResource.js +2 -0
  434. package/dist/vscode-default-extensions/theme-defaults/fileicons/images/document-light.svg.extensionResource.js +2 -0
  435. package/dist/vscode-default-extensions/theme-defaults/fileicons/images/folder-dark.svg.extensionResource.js +2 -0
  436. package/dist/vscode-default-extensions/theme-defaults/fileicons/images/folder-light.svg.extensionResource.js +2 -0
  437. package/dist/vscode-default-extensions/theme-defaults/fileicons/images/folder-open-dark.svg.extensionResource.js +2 -0
  438. package/dist/vscode-default-extensions/theme-defaults/fileicons/images/folder-open-light.svg.extensionResource.js +2 -0
  439. package/dist/vscode-default-extensions/theme-defaults/fileicons/images/root-folder-dark.svg.extensionResource.js +2 -0
  440. package/dist/vscode-default-extensions/theme-defaults/fileicons/images/root-folder-light.svg.extensionResource.js +2 -0
  441. package/dist/vscode-default-extensions/theme-defaults/fileicons/images/root-folder-open-dark.svg.extensionResource.js +2 -0
  442. package/dist/vscode-default-extensions/theme-defaults/fileicons/images/root-folder-open-light.svg.extensionResource.js +2 -0
  443. package/dist/vscode-default-extensions/theme-defaults/fileicons/vs_minimal-icon-theme.json.extensionResource.js +2 -0
  444. package/dist/vscode-default-extensions/theme-defaults/package.json.js +1 -1
  445. package/dist/vscode-default-extensions/theme-defaults/themes/dark_plus.json.extensionResource.js +2 -0
  446. package/dist/vscode-default-extensions/theme-defaults/themes/dark_plus_experimental.json.extensionResource.js +2 -0
  447. package/dist/vscode-default-extensions/theme-defaults/themes/dark_vs.json.extensionResource.js +2 -0
  448. package/dist/vscode-default-extensions/theme-defaults/themes/hc_black.json.extensionResource.js +2 -0
  449. package/dist/vscode-default-extensions/theme-defaults/themes/hc_light.json.extensionResource.js +2 -0
  450. package/dist/vscode-default-extensions/theme-defaults/themes/light_plus.json.extensionResource.js +2 -0
  451. package/dist/vscode-default-extensions/theme-defaults/themes/light_plus_experimental.json.extensionResource.js +2 -0
  452. package/dist/vscode-default-extensions/theme-defaults/themes/light_vs.json.extensionResource.js +2 -0
  453. package/dist/vscode-default-extensions/theme-kimbie-dark/themes/kimbie-dark-color-theme.json.extensionResource.js +2 -0
  454. package/dist/vscode-default-extensions/theme-monokai/themes/monokai-color-theme.json.extensionResource.js +2 -0
  455. package/dist/vscode-default-extensions/theme-monokai-dimmed/themes/dimmed-monokai-color-theme.json.extensionResource.js +2 -0
  456. package/dist/vscode-default-extensions/theme-quietlight/themes/quietlight-color-theme.json.extensionResource.js +2 -0
  457. package/dist/vscode-default-extensions/theme-red/themes/Red-color-theme.json.extensionResource.js +2 -0
  458. package/dist/vscode-default-extensions/theme-seti/icons/seti.woff.extensionResource.js +2 -0
  459. package/dist/vscode-default-extensions/theme-seti/icons/vs-seti-icon-theme.json.extensionResource.js +2 -0
  460. package/dist/vscode-default-extensions/theme-solarized-dark/themes/solarized-dark-color-theme.json.extensionResource.js +2 -0
  461. package/dist/vscode-default-extensions/theme-solarized-light/themes/solarized-light-color-theme.json.extensionResource.js +2 -0
  462. package/dist/vscode-default-extensions/theme-tomorrow-night-blue/themes/tomorrow-night-blue-color-theme.json.extensionResource.js +2 -0
  463. package/dist/vscode-default-extensions/typescript-basics/language-configuration.json.extensionResource.js +2 -0
  464. package/dist/vscode-default-extensions/typescript-basics/snippets/typescript.code-snippets.extensionResource.js +2 -0
  465. package/dist/vscode-default-extensions/typescript-basics/syntaxes/TypeScript.tmLanguage.json.extensionResource.js +2 -0
  466. package/dist/vscode-default-extensions/typescript-basics/syntaxes/TypeScriptReact.tmLanguage.json.extensionResource.js +2 -0
  467. package/dist/vscode-default-extensions/typescript-basics/syntaxes/jsdoc.js.injection.tmLanguage.json.extensionResource.js +2 -0
  468. package/dist/vscode-default-extensions/typescript-basics/syntaxes/jsdoc.ts.injection.tmLanguage.json.extensionResource.js +2 -0
  469. package/dist/vscode-default-extensions/vb/language-configuration.json.extensionResource.js +2 -0
  470. package/dist/vscode-default-extensions/vb/snippets/vb.code-snippets.extensionResource.js +2 -0
  471. package/dist/vscode-default-extensions/vb/syntaxes/asp-vb-net.tmlanguage.json.extensionResource.js +2 -0
  472. package/dist/vscode-default-extensions/xml/syntaxes/xml.tmLanguage.json.extensionResource.js +2 -0
  473. package/dist/vscode-default-extensions/xml/syntaxes/xsl.tmLanguage.json.extensionResource.js +2 -0
  474. package/dist/vscode-default-extensions/xml/xml.language-configuration.json.extensionResource.js +2 -0
  475. package/dist/vscode-default-extensions/xml/xsl.language-configuration.json.extensionResource.js +2 -0
  476. package/dist/vscode-default-extensions/yaml/language-configuration.json.extensionResource.js +2 -0
  477. package/dist/vscode-default-extensions/yaml/syntaxes/yaml.tmLanguage.json.extensionResource.js +2 -0
  478. package/dist/vscode-services/extHost.js +28 -5
  479. package/dist/vscode-services/l10n.js +26 -0
  480. package/dist/vscode-services/missing-services.js +64 -12
  481. package/dist/vscode-services/window.js +23 -5
  482. package/dist/workbenchThemeService.d.ts +20 -0
  483. package/dist/workspace.d.ts +141 -0
  484. package/monaco-editor-treemending.patch +1134 -1902
  485. package/package.json +28 -16
  486. package/dist/default-extensions/typescript-language-features.js +0 -6
  487. package/dist/extension-tools-b68a64de.js +0 -1024
  488. package/dist/vscode/vs/workbench/browser/parts/editor/editorPane.js +0 -242
  489. package/dist/vscode/vs/workbench/browser/parts/editor/editorWithViewState.js +0 -139
  490. package/dist/vscode/vs/workbench/browser/parts/editor/sideBySideEditor.js +0 -387
  491. package/dist/vscode/vs/workbench/browser/parts/editor/textDiffEditor.js +0 -289
  492. package/dist/vscode-default-extensions/bat/language-configuration.json.js +0 -2
  493. package/dist/vscode-default-extensions/bat/snippets/batchfile.code-snippets.js +0 -2
  494. package/dist/vscode-default-extensions/bat/syntaxes/batchfile.tmLanguage.json.js +0 -2
  495. package/dist/vscode-default-extensions/clojure/language-configuration.json.js +0 -2
  496. package/dist/vscode-default-extensions/clojure/syntaxes/clojure.tmLanguage.json.js +0 -2
  497. package/dist/vscode-default-extensions/coffeescript/language-configuration.json.js +0 -2
  498. package/dist/vscode-default-extensions/coffeescript/snippets/coffeescript.code-snippets.js +0 -2
  499. package/dist/vscode-default-extensions/coffeescript/syntaxes/coffeescript.tmLanguage.json.js +0 -2
  500. package/dist/vscode-default-extensions/cpp/language-configuration.json.js +0 -2
  501. package/dist/vscode-default-extensions/cpp/snippets/c.code-snippets.js +0 -2
  502. package/dist/vscode-default-extensions/cpp/snippets/cpp.code-snippets.js +0 -2
  503. package/dist/vscode-default-extensions/cpp/syntaxes/c.tmLanguage.json.js +0 -2
  504. package/dist/vscode-default-extensions/cpp/syntaxes/cpp.embedded.macro.tmLanguage.json.js +0 -2
  505. package/dist/vscode-default-extensions/cpp/syntaxes/cpp.tmLanguage.json.js +0 -2
  506. package/dist/vscode-default-extensions/cpp/syntaxes/cuda-cpp.tmLanguage.json.js +0 -2
  507. package/dist/vscode-default-extensions/csharp/language-configuration.json.js +0 -2
  508. package/dist/vscode-default-extensions/csharp/snippets/csharp.code-snippets.js +0 -2
  509. package/dist/vscode-default-extensions/csharp/syntaxes/csharp.tmLanguage.json.js +0 -2
  510. package/dist/vscode-default-extensions/css/language-configuration.json.js +0 -2
  511. package/dist/vscode-default-extensions/css/syntaxes/css.tmLanguage.json.js +0 -2
  512. package/dist/vscode-default-extensions/dart/language-configuration.json.js +0 -2
  513. package/dist/vscode-default-extensions/dart/syntaxes/dart.tmLanguage.json.js +0 -2
  514. package/dist/vscode-default-extensions/diff/language-configuration.json.js +0 -2
  515. package/dist/vscode-default-extensions/diff/syntaxes/diff.tmLanguage.json.js +0 -2
  516. package/dist/vscode-default-extensions/docker/language-configuration.json.js +0 -2
  517. package/dist/vscode-default-extensions/docker/syntaxes/docker.tmLanguage.json.js +0 -2
  518. package/dist/vscode-default-extensions/fsharp/language-configuration.json.js +0 -2
  519. package/dist/vscode-default-extensions/fsharp/snippets/fsharp.code-snippets.js +0 -2
  520. package/dist/vscode-default-extensions/fsharp/syntaxes/fsharp.tmLanguage.json.js +0 -2
  521. package/dist/vscode-default-extensions/go/language-configuration.json.js +0 -2
  522. package/dist/vscode-default-extensions/go/syntaxes/go.tmLanguage.json.js +0 -2
  523. package/dist/vscode-default-extensions/groovy/language-configuration.json.js +0 -2
  524. package/dist/vscode-default-extensions/groovy/snippets/groovy.code-snippets.js +0 -2
  525. package/dist/vscode-default-extensions/groovy/syntaxes/groovy.tmLanguage.json.js +0 -2
  526. package/dist/vscode-default-extensions/handlebars/language-configuration.json.js +0 -2
  527. package/dist/vscode-default-extensions/handlebars/syntaxes/Handlebars.tmLanguage.json.js +0 -2
  528. package/dist/vscode-default-extensions/hlsl/language-configuration.json.js +0 -2
  529. package/dist/vscode-default-extensions/hlsl/syntaxes/hlsl.tmLanguage.json.js +0 -2
  530. package/dist/vscode-default-extensions/html/language-configuration.json.js +0 -2
  531. package/dist/vscode-default-extensions/html/snippets/html.code-snippets.js +0 -2
  532. package/dist/vscode-default-extensions/html/syntaxes/html-derivative.tmLanguage.json.js +0 -2
  533. package/dist/vscode-default-extensions/html/syntaxes/html.tmLanguage.json.js +0 -2
  534. package/dist/vscode-default-extensions/ini/ini.language-configuration.json.js +0 -2
  535. package/dist/vscode-default-extensions/ini/properties.language-configuration.json.js +0 -2
  536. package/dist/vscode-default-extensions/ini/syntaxes/ini.tmLanguage.json.js +0 -2
  537. package/dist/vscode-default-extensions/java/language-configuration.json.js +0 -2
  538. package/dist/vscode-default-extensions/java/snippets/java.code-snippets.js +0 -2
  539. package/dist/vscode-default-extensions/java/syntaxes/java.tmLanguage.json.js +0 -2
  540. package/dist/vscode-default-extensions/javascript/javascript-language-configuration.json.js +0 -2
  541. package/dist/vscode-default-extensions/javascript/snippets/javascript.code-snippets.js +0 -2
  542. package/dist/vscode-default-extensions/javascript/syntaxes/JavaScript.tmLanguage.json.js +0 -2
  543. package/dist/vscode-default-extensions/javascript/syntaxes/JavaScriptReact.tmLanguage.json.js +0 -2
  544. package/dist/vscode-default-extensions/javascript/syntaxes/Regular Expressions (JavaScript).tmLanguage.js +0 -2
  545. package/dist/vscode-default-extensions/javascript/tags-language-configuration.json.js +0 -2
  546. package/dist/vscode-default-extensions/json/language-configuration.json.js +0 -2
  547. package/dist/vscode-default-extensions/json/syntaxes/JSON.tmLanguage.json.js +0 -2
  548. package/dist/vscode-default-extensions/json/syntaxes/JSONC.tmLanguage.json.js +0 -2
  549. package/dist/vscode-default-extensions/julia/language-configuration.json.js +0 -2
  550. package/dist/vscode-default-extensions/julia/syntaxes/julia.tmLanguage.json.js +0 -2
  551. package/dist/vscode-default-extensions/latex/latex-cpp-embedded-language-configuration.json.js +0 -2
  552. package/dist/vscode-default-extensions/latex/latex-language-configuration.json.js +0 -2
  553. package/dist/vscode-default-extensions/latex/markdown-latex-combined-language-configuration.json.js +0 -2
  554. package/dist/vscode-default-extensions/latex/syntaxes/Bibtex.tmLanguage.json.js +0 -2
  555. package/dist/vscode-default-extensions/latex/syntaxes/LaTeX.tmLanguage.json.js +0 -2
  556. package/dist/vscode-default-extensions/latex/syntaxes/TeX.tmLanguage.json.js +0 -2
  557. package/dist/vscode-default-extensions/latex/syntaxes/cpp-grammar-bailout.tmLanguage.json.js +0 -2
  558. package/dist/vscode-default-extensions/latex/syntaxes/markdown-latex-combined.tmLanguage.json.js +0 -2
  559. package/dist/vscode-default-extensions/less/language-configuration.json.js +0 -2
  560. package/dist/vscode-default-extensions/less/syntaxes/less.tmLanguage.json.js +0 -2
  561. package/dist/vscode-default-extensions/log/syntaxes/log.tmLanguage.json.js +0 -2
  562. package/dist/vscode-default-extensions/lua/language-configuration.json.js +0 -2
  563. package/dist/vscode-default-extensions/lua/syntaxes/lua.tmLanguage.json.js +0 -2
  564. package/dist/vscode-default-extensions/make/language-configuration.json.js +0 -2
  565. package/dist/vscode-default-extensions/make/syntaxes/make.tmLanguage.json.js +0 -2
  566. package/dist/vscode-default-extensions/markdown-basics/language-configuration.json.js +0 -2
  567. package/dist/vscode-default-extensions/markdown-basics/snippets/markdown.code-snippets.js +0 -2
  568. package/dist/vscode-default-extensions/markdown-basics/syntaxes/markdown.tmLanguage.json.js +0 -2
  569. package/dist/vscode-default-extensions/objective-c/language-configuration.json.js +0 -2
  570. package/dist/vscode-default-extensions/objective-c/syntaxes/objective-c.tmLanguage.json.js +0 -2
  571. package/dist/vscode-default-extensions/objective-c/syntaxes/objective-c__.tmLanguage.json.js +0 -2
  572. package/dist/vscode-default-extensions/perl/perl.language-configuration.json.js +0 -2
  573. package/dist/vscode-default-extensions/perl/perl6.language-configuration.json.js +0 -2
  574. package/dist/vscode-default-extensions/perl/syntaxes/perl.tmLanguage.json.js +0 -2
  575. package/dist/vscode-default-extensions/perl/syntaxes/perl6.tmLanguage.json.js +0 -2
  576. package/dist/vscode-default-extensions/php/language-configuration.json.js +0 -2
  577. package/dist/vscode-default-extensions/php/snippets/php.code-snippets.js +0 -2
  578. package/dist/vscode-default-extensions/php/syntaxes/html.tmLanguage.json.js +0 -2
  579. package/dist/vscode-default-extensions/php/syntaxes/php.tmLanguage.json.js +0 -2
  580. package/dist/vscode-default-extensions/powershell/language-configuration.json.js +0 -2
  581. package/dist/vscode-default-extensions/powershell/syntaxes/powershell.tmLanguage.json.js +0 -2
  582. package/dist/vscode-default-extensions/pug/language-configuration.json.js +0 -2
  583. package/dist/vscode-default-extensions/pug/syntaxes/pug.tmLanguage.json.js +0 -2
  584. package/dist/vscode-default-extensions/python/language-configuration.json.js +0 -2
  585. package/dist/vscode-default-extensions/python/syntaxes/MagicPython.tmLanguage.json.js +0 -2
  586. package/dist/vscode-default-extensions/python/syntaxes/MagicRegExp.tmLanguage.json.js +0 -2
  587. package/dist/vscode-default-extensions/r/language-configuration.json.js +0 -2
  588. package/dist/vscode-default-extensions/r/syntaxes/r.tmLanguage.json.js +0 -2
  589. package/dist/vscode-default-extensions/razor/language-configuration.json.js +0 -2
  590. package/dist/vscode-default-extensions/razor/syntaxes/cshtml.tmLanguage.json.js +0 -2
  591. package/dist/vscode-default-extensions/ruby/language-configuration.json.js +0 -2
  592. package/dist/vscode-default-extensions/ruby/syntaxes/ruby.tmLanguage.json.js +0 -2
  593. package/dist/vscode-default-extensions/rust/language-configuration.json.js +0 -2
  594. package/dist/vscode-default-extensions/rust/syntaxes/rust.tmLanguage.json.js +0 -2
  595. package/dist/vscode-default-extensions/scss/language-configuration.json.js +0 -2
  596. package/dist/vscode-default-extensions/scss/syntaxes/sassdoc.tmLanguage.json.js +0 -2
  597. package/dist/vscode-default-extensions/scss/syntaxes/scss.tmLanguage.json.js +0 -2
  598. package/dist/vscode-default-extensions/shaderlab/language-configuration.json.js +0 -2
  599. package/dist/vscode-default-extensions/shaderlab/syntaxes/shaderlab.tmLanguage.json.js +0 -2
  600. package/dist/vscode-default-extensions/shellscript/language-configuration.json.js +0 -2
  601. package/dist/vscode-default-extensions/shellscript/syntaxes/shell-unix-bash.tmLanguage.json.js +0 -2
  602. package/dist/vscode-default-extensions/sql/language-configuration.json.js +0 -2
  603. package/dist/vscode-default-extensions/sql/syntaxes/sql.tmLanguage.json.js +0 -2
  604. package/dist/vscode-default-extensions/swift/language-configuration.json.js +0 -2
  605. package/dist/vscode-default-extensions/swift/snippets/swift.code-snippets.js +0 -2
  606. package/dist/vscode-default-extensions/swift/syntaxes/swift.tmLanguage.json.js +0 -2
  607. package/dist/vscode-default-extensions/theme-abyss/themes/abyss-color-theme.json.js +0 -2
  608. package/dist/vscode-default-extensions/theme-defaults/fileicons/vs_minimal-icon-theme.json.js +0 -2
  609. package/dist/vscode-default-extensions/theme-defaults/themes/dark_plus.json.js +0 -2
  610. package/dist/vscode-default-extensions/theme-defaults/themes/dark_plus_experimental.json.js +0 -2
  611. package/dist/vscode-default-extensions/theme-defaults/themes/dark_vs.json.js +0 -2
  612. package/dist/vscode-default-extensions/theme-defaults/themes/hc_black.json.js +0 -2
  613. package/dist/vscode-default-extensions/theme-defaults/themes/hc_light.json.js +0 -2
  614. package/dist/vscode-default-extensions/theme-defaults/themes/light_plus.json.js +0 -2
  615. package/dist/vscode-default-extensions/theme-defaults/themes/light_plus_experimental.json.js +0 -2
  616. package/dist/vscode-default-extensions/theme-defaults/themes/light_vs.json.js +0 -2
  617. package/dist/vscode-default-extensions/theme-kimbie-dark/themes/kimbie-dark-color-theme.json.js +0 -2
  618. package/dist/vscode-default-extensions/theme-monokai/themes/monokai-color-theme.json.js +0 -2
  619. package/dist/vscode-default-extensions/theme-monokai-dimmed/themes/dimmed-monokai-color-theme.json.js +0 -2
  620. package/dist/vscode-default-extensions/theme-quietlight/themes/quietlight-color-theme.json.js +0 -2
  621. package/dist/vscode-default-extensions/theme-red/themes/Red-color-theme.json.js +0 -2
  622. package/dist/vscode-default-extensions/theme-seti/icons/vs-seti-icon-theme.json.js +0 -2
  623. package/dist/vscode-default-extensions/theme-solarized-dark/themes/solarized-dark-color-theme.json.js +0 -2
  624. package/dist/vscode-default-extensions/theme-solarized-light/themes/solarized-light-color-theme.json.js +0 -2
  625. package/dist/vscode-default-extensions/theme-tomorrow-night-blue/themes/tomorrow-night-blue-color-theme.json.js +0 -2
  626. package/dist/vscode-default-extensions/typescript-basics/language-configuration.json.js +0 -2
  627. package/dist/vscode-default-extensions/typescript-basics/snippets/typescript.code-snippets.js +0 -2
  628. package/dist/vscode-default-extensions/typescript-basics/syntaxes/TypeScript.tmLanguage.json.js +0 -2
  629. package/dist/vscode-default-extensions/typescript-basics/syntaxes/TypeScriptReact.tmLanguage.json.js +0 -2
  630. package/dist/vscode-default-extensions/typescript-basics/syntaxes/jsdoc.js.injection.tmLanguage.json.js +0 -2
  631. package/dist/vscode-default-extensions/typescript-basics/syntaxes/jsdoc.ts.injection.tmLanguage.json.js +0 -2
  632. package/dist/vscode-default-extensions/typescript-language-features/package.json.js +0 -2
  633. package/dist/vscode-default-extensions/vb/language-configuration.json.js +0 -2
  634. package/dist/vscode-default-extensions/vb/snippets/vb.code-snippets.js +0 -2
  635. package/dist/vscode-default-extensions/vb/syntaxes/asp-vb-net.tmlanguage.json.js +0 -2
  636. package/dist/vscode-default-extensions/xml/syntaxes/xml.tmLanguage.json.js +0 -2
  637. package/dist/vscode-default-extensions/xml/syntaxes/xsl.tmLanguage.json.js +0 -2
  638. package/dist/vscode-default-extensions/xml/xml.language-configuration.json.js +0 -2
  639. package/dist/vscode-default-extensions/xml/xsl.language-configuration.json.js +0 -2
  640. package/dist/vscode-default-extensions/yaml/language-configuration.json.js +0 -2
  641. package/dist/vscode-default-extensions/yaml/syntaxes/yaml.tmLanguage.json.js +0 -2
@@ -0,0 +1,3128 @@
1
+ import { S as ServiceIdentifier } from './instantiation.js';
2
+ import { I as IDisposable, E as Event, a as IReference } from './event.js';
3
+ import { a as UriComponents, U as URI } from './uri.js';
4
+ import { I as IMarkdownString, e as IEditorModel$1 } from './editor.js';
5
+ import * as monaco from 'monaco-editor';
6
+ import { a as ThemeColor } from './themables.js';
7
+
8
+ /**
9
+ * A position in the editor. This interface is suitable for serialization.
10
+ */
11
+ interface IPosition {
12
+ /**
13
+ * line number (starts at 1)
14
+ */
15
+ readonly lineNumber: number;
16
+ /**
17
+ * column (the first character in a line is between column 1 and column 2)
18
+ */
19
+ readonly column: number;
20
+ }
21
+ /**
22
+ * A position in the editor.
23
+ */
24
+ declare class Position {
25
+ /**
26
+ * line number (starts at 1)
27
+ */
28
+ readonly lineNumber: number;
29
+ /**
30
+ * column (the first character in a line is between column 1 and column 2)
31
+ */
32
+ readonly column: number;
33
+ constructor(lineNumber: number, column: number);
34
+ /**
35
+ * Create a new position from this position.
36
+ *
37
+ * @param newLineNumber new line number
38
+ * @param newColumn new column
39
+ */
40
+ with(newLineNumber?: number, newColumn?: number): Position;
41
+ /**
42
+ * Derive a new position from this position.
43
+ *
44
+ * @param deltaLineNumber line number delta
45
+ * @param deltaColumn column delta
46
+ */
47
+ delta(deltaLineNumber?: number, deltaColumn?: number): Position;
48
+ /**
49
+ * Test if this position equals other position
50
+ */
51
+ equals(other: IPosition): boolean;
52
+ /**
53
+ * Test if position `a` equals position `b`
54
+ */
55
+ static equals(a: IPosition | null, b: IPosition | null): boolean;
56
+ /**
57
+ * Test if this position is before other position.
58
+ * If the two positions are equal, the result will be false.
59
+ */
60
+ isBefore(other: IPosition): boolean;
61
+ /**
62
+ * Test if position `a` is before position `b`.
63
+ * If the two positions are equal, the result will be false.
64
+ */
65
+ static isBefore(a: IPosition, b: IPosition): boolean;
66
+ /**
67
+ * Test if this position is before other position.
68
+ * If the two positions are equal, the result will be true.
69
+ */
70
+ isBeforeOrEqual(other: IPosition): boolean;
71
+ /**
72
+ * Test if position `a` is before position `b`.
73
+ * If the two positions are equal, the result will be true.
74
+ */
75
+ static isBeforeOrEqual(a: IPosition, b: IPosition): boolean;
76
+ /**
77
+ * A function that compares positions, useful for sorting
78
+ */
79
+ static compare(a: IPosition, b: IPosition): number;
80
+ /**
81
+ * Clone this position.
82
+ */
83
+ clone(): Position;
84
+ /**
85
+ * Convert to a human-readable representation.
86
+ */
87
+ toString(): string;
88
+ /**
89
+ * Create a `Position` from an `IPosition`.
90
+ */
91
+ static lift(pos: IPosition): Position;
92
+ /**
93
+ * Test if `obj` is an `IPosition`.
94
+ */
95
+ static isIPosition(obj: any): obj is IPosition;
96
+ }
97
+
98
+ /**
99
+ * A range in the editor. This interface is suitable for serialization.
100
+ */
101
+ interface IRange {
102
+ /**
103
+ * Line number on which the range starts (starts at 1).
104
+ */
105
+ readonly startLineNumber: number;
106
+ /**
107
+ * Column on which the range starts in line `startLineNumber` (starts at 1).
108
+ */
109
+ readonly startColumn: number;
110
+ /**
111
+ * Line number on which the range ends.
112
+ */
113
+ readonly endLineNumber: number;
114
+ /**
115
+ * Column on which the range ends in line `endLineNumber`.
116
+ */
117
+ readonly endColumn: number;
118
+ }
119
+ /**
120
+ * A range in the editor. (startLineNumber,startColumn) is <= (endLineNumber,endColumn)
121
+ */
122
+ declare class Range {
123
+ /**
124
+ * Line number on which the range starts (starts at 1).
125
+ */
126
+ readonly startLineNumber: number;
127
+ /**
128
+ * Column on which the range starts in line `startLineNumber` (starts at 1).
129
+ */
130
+ readonly startColumn: number;
131
+ /**
132
+ * Line number on which the range ends.
133
+ */
134
+ readonly endLineNumber: number;
135
+ /**
136
+ * Column on which the range ends in line `endLineNumber`.
137
+ */
138
+ readonly endColumn: number;
139
+ constructor(startLineNumber: number, startColumn: number, endLineNumber: number, endColumn: number);
140
+ /**
141
+ * Test if this range is empty.
142
+ */
143
+ isEmpty(): boolean;
144
+ /**
145
+ * Test if `range` is empty.
146
+ */
147
+ static isEmpty(range: IRange): boolean;
148
+ /**
149
+ * Test if position is in this range. If the position is at the edges, will return true.
150
+ */
151
+ containsPosition(position: IPosition): boolean;
152
+ /**
153
+ * Test if `position` is in `range`. If the position is at the edges, will return true.
154
+ */
155
+ static containsPosition(range: IRange, position: IPosition): boolean;
156
+ /**
157
+ * Test if `position` is in `range`. If the position is at the edges, will return false.
158
+ * @internal
159
+ */
160
+ static strictContainsPosition(range: IRange, position: IPosition): boolean;
161
+ /**
162
+ * Test if range is in this range. If the range is equal to this range, will return true.
163
+ */
164
+ containsRange(range: IRange): boolean;
165
+ /**
166
+ * Test if `otherRange` is in `range`. If the ranges are equal, will return true.
167
+ */
168
+ static containsRange(range: IRange, otherRange: IRange): boolean;
169
+ /**
170
+ * Test if `range` is strictly in this range. `range` must start after and end before this range for the result to be true.
171
+ */
172
+ strictContainsRange(range: IRange): boolean;
173
+ /**
174
+ * Test if `otherRange` is strictly in `range` (must start after, and end before). If the ranges are equal, will return false.
175
+ */
176
+ static strictContainsRange(range: IRange, otherRange: IRange): boolean;
177
+ /**
178
+ * A reunion of the two ranges.
179
+ * The smallest position will be used as the start point, and the largest one as the end point.
180
+ */
181
+ plusRange(range: IRange): Range;
182
+ /**
183
+ * A reunion of the two ranges.
184
+ * The smallest position will be used as the start point, and the largest one as the end point.
185
+ */
186
+ static plusRange(a: IRange, b: IRange): Range;
187
+ /**
188
+ * A intersection of the two ranges.
189
+ */
190
+ intersectRanges(range: IRange): Range | null;
191
+ /**
192
+ * A intersection of the two ranges.
193
+ */
194
+ static intersectRanges(a: IRange, b: IRange): Range | null;
195
+ /**
196
+ * Test if this range equals other.
197
+ */
198
+ equalsRange(other: IRange | null | undefined): boolean;
199
+ /**
200
+ * Test if range `a` equals `b`.
201
+ */
202
+ static equalsRange(a: IRange | null | undefined, b: IRange | null | undefined): boolean;
203
+ /**
204
+ * Return the end position (which will be after or equal to the start position)
205
+ */
206
+ getEndPosition(): Position;
207
+ /**
208
+ * Return the end position (which will be after or equal to the start position)
209
+ */
210
+ static getEndPosition(range: IRange): Position;
211
+ /**
212
+ * Return the start position (which will be before or equal to the end position)
213
+ */
214
+ getStartPosition(): Position;
215
+ /**
216
+ * Return the start position (which will be before or equal to the end position)
217
+ */
218
+ static getStartPosition(range: IRange): Position;
219
+ /**
220
+ * Transform to a user presentable string representation.
221
+ */
222
+ toString(): string;
223
+ /**
224
+ * Create a new range using this range's start position, and using endLineNumber and endColumn as the end position.
225
+ */
226
+ setEndPosition(endLineNumber: number, endColumn: number): Range;
227
+ /**
228
+ * Create a new range using this range's end position, and using startLineNumber and startColumn as the start position.
229
+ */
230
+ setStartPosition(startLineNumber: number, startColumn: number): Range;
231
+ /**
232
+ * Create a new empty range using this range's start position.
233
+ */
234
+ collapseToStart(): Range;
235
+ /**
236
+ * Create a new empty range using this range's start position.
237
+ */
238
+ static collapseToStart(range: IRange): Range;
239
+ /**
240
+ * Create a new empty range using this range's end position.
241
+ */
242
+ collapseToEnd(): Range;
243
+ /**
244
+ * Create a new empty range using this range's end position.
245
+ */
246
+ static collapseToEnd(range: IRange): Range;
247
+ /**
248
+ * Moves the range by the given amount of lines.
249
+ */
250
+ delta(lineCount: number): Range;
251
+ static fromPositions(start: IPosition, end?: IPosition): Range;
252
+ /**
253
+ * Create a `Range` from an `IRange`.
254
+ */
255
+ static lift(range: undefined | null): null;
256
+ static lift(range: IRange): Range;
257
+ static lift(range: IRange | undefined | null): Range | null;
258
+ /**
259
+ * Test if `obj` is an `IRange`.
260
+ */
261
+ static isIRange(obj: any): obj is IRange;
262
+ /**
263
+ * Test if the two ranges are touching in any way.
264
+ */
265
+ static areIntersectingOrTouching(a: IRange, b: IRange): boolean;
266
+ /**
267
+ * Test if the two ranges are intersecting. If the ranges are touching it returns true.
268
+ */
269
+ static areIntersecting(a: IRange, b: IRange): boolean;
270
+ /**
271
+ * A function that compares ranges, useful for sorting ranges
272
+ * It will first compare ranges on the startPosition and then on the endPosition
273
+ */
274
+ static compareRangesUsingStarts(a: IRange | null | undefined, b: IRange | null | undefined): number;
275
+ /**
276
+ * A function that compares ranges, useful for sorting ranges
277
+ * It will first compare ranges on the endPosition and then on the startPosition
278
+ */
279
+ static compareRangesUsingEnds(a: IRange, b: IRange): number;
280
+ /**
281
+ * Test if the range spans multiple lines.
282
+ */
283
+ static spansMultipleLines(range: IRange): boolean;
284
+ toJSON(): IRange;
285
+ }
286
+
287
+ /**
288
+ * A range of lines (1-based).
289
+ */
290
+ declare class LineRange {
291
+ /**
292
+ * @param lineRanges An array of sorted line ranges.
293
+ */
294
+ static joinMany(lineRanges: readonly (readonly LineRange[])[]): readonly LineRange[];
295
+ /**
296
+ * @param lineRanges1 Must be sorted.
297
+ * @param lineRanges2 Must be sorted.
298
+ */
299
+ static join(lineRanges1: readonly LineRange[], lineRanges2: readonly LineRange[]): readonly LineRange[];
300
+ /**
301
+ * The start line number.
302
+ */
303
+ readonly startLineNumber: number;
304
+ /**
305
+ * The end line number (exclusive).
306
+ */
307
+ readonly endLineNumberExclusive: number;
308
+ constructor(startLineNumber: number, endLineNumberExclusive: number);
309
+ /**
310
+ * Indicates if this line range contains the given line number.
311
+ */
312
+ contains(lineNumber: number): boolean;
313
+ /**
314
+ * Indicates if this line range is empty.
315
+ */
316
+ get isEmpty(): boolean;
317
+ /**
318
+ * Moves this line range by the given offset of line numbers.
319
+ */
320
+ delta(offset: number): LineRange;
321
+ /**
322
+ * The number of lines this line range spans.
323
+ */
324
+ get length(): number;
325
+ /**
326
+ * Creates a line range that combines this and the given line range.
327
+ */
328
+ join(other: LineRange): LineRange;
329
+ toString(): string;
330
+ /**
331
+ * The resulting range is empty if the ranges do not intersect, but touch.
332
+ * If the ranges don't even touch, the result is undefined.
333
+ */
334
+ intersect(other: LineRange): LineRange | undefined;
335
+ overlapOrTouch(other: LineRange): boolean;
336
+ equals(b: LineRange): boolean;
337
+ }
338
+
339
+ /**
340
+ * Maps a line range in the original text model to a line range in the modified text model.
341
+ */
342
+ declare class LineRangeMapping {
343
+ /**
344
+ * The line range in the original text model.
345
+ */
346
+ readonly originalRange: LineRange;
347
+ /**
348
+ * The line range in the modified text model.
349
+ */
350
+ readonly modifiedRange: LineRange;
351
+ /**
352
+ * If inner changes have not been computed, this is set to undefined.
353
+ * Otherwise, it represents the character-level diff in this line range.
354
+ * The original range of each range mapping should be contained in the original line range (same for modified), exceptions are new-lines.
355
+ * Must not be an empty array.
356
+ */
357
+ readonly innerChanges: RangeMapping[] | undefined;
358
+ constructor(originalRange: LineRange, modifiedRange: LineRange, innerChanges: RangeMapping[] | undefined);
359
+ toString(): string;
360
+ get changedLineCount(): number;
361
+ }
362
+ /**
363
+ * Maps a range in the original text model to a range in the modified text model.
364
+ */
365
+ declare class RangeMapping {
366
+ /**
367
+ * The original range.
368
+ */
369
+ readonly originalRange: Range;
370
+ /**
371
+ * The modified range.
372
+ */
373
+ readonly modifiedRange: Range;
374
+ constructor(originalRange: Range, modifiedRange: Range);
375
+ toString(): string;
376
+ }
377
+
378
+ /**
379
+ * A single edit operation, that acts as a simple replace.
380
+ * i.e. Replace text at `range` with `text` in model.
381
+ */
382
+ interface ISingleEditOperation {
383
+ /**
384
+ * The range to replace. This can be empty to emulate a simple insert.
385
+ */
386
+ range: IRange;
387
+ /**
388
+ * The text to replace with. This can be null to emulate a simple delete.
389
+ */
390
+ text: string | null;
391
+ /**
392
+ * This indicates that this operation has "insert" semantics.
393
+ * i.e. forceMoveMarkers = true => if `range` is collapsed, all markers at the position will be moved.
394
+ */
395
+ forceMoveMarkers?: boolean;
396
+ }
397
+
398
+ /**
399
+ * A selection in the editor.
400
+ * The selection is a range that has an orientation.
401
+ */
402
+ interface ISelection {
403
+ /**
404
+ * The line number on which the selection has started.
405
+ */
406
+ readonly selectionStartLineNumber: number;
407
+ /**
408
+ * The column on `selectionStartLineNumber` where the selection has started.
409
+ */
410
+ readonly selectionStartColumn: number;
411
+ /**
412
+ * The line number on which the selection has ended.
413
+ */
414
+ readonly positionLineNumber: number;
415
+ /**
416
+ * The column on `positionLineNumber` where the selection has ended.
417
+ */
418
+ readonly positionColumn: number;
419
+ }
420
+ /**
421
+ * The direction of a selection.
422
+ */
423
+ declare const enum SelectionDirection {
424
+ /**
425
+ * The selection starts above where it ends.
426
+ */
427
+ LTR = 0,
428
+ /**
429
+ * The selection starts below where it ends.
430
+ */
431
+ RTL = 1
432
+ }
433
+ /**
434
+ * A selection in the editor.
435
+ * The selection is a range that has an orientation.
436
+ */
437
+ declare class Selection extends Range {
438
+ /**
439
+ * The line number on which the selection has started.
440
+ */
441
+ readonly selectionStartLineNumber: number;
442
+ /**
443
+ * The column on `selectionStartLineNumber` where the selection has started.
444
+ */
445
+ readonly selectionStartColumn: number;
446
+ /**
447
+ * The line number on which the selection has ended.
448
+ */
449
+ readonly positionLineNumber: number;
450
+ /**
451
+ * The column on `positionLineNumber` where the selection has ended.
452
+ */
453
+ readonly positionColumn: number;
454
+ constructor(selectionStartLineNumber: number, selectionStartColumn: number, positionLineNumber: number, positionColumn: number);
455
+ /**
456
+ * Transform to a human-readable representation.
457
+ */
458
+ toString(): string;
459
+ /**
460
+ * Test if equals other selection.
461
+ */
462
+ equalsSelection(other: ISelection): boolean;
463
+ /**
464
+ * Test if the two selections are equal.
465
+ */
466
+ static selectionsEqual(a: ISelection, b: ISelection): boolean;
467
+ /**
468
+ * Get directions (LTR or RTL).
469
+ */
470
+ getDirection(): SelectionDirection;
471
+ /**
472
+ * Create a new selection with a different `positionLineNumber` and `positionColumn`.
473
+ */
474
+ setEndPosition(endLineNumber: number, endColumn: number): Selection;
475
+ /**
476
+ * Get the position at `positionLineNumber` and `positionColumn`.
477
+ */
478
+ getPosition(): Position;
479
+ /**
480
+ * Get the position at the start of the selection.
481
+ */
482
+ getSelectionStart(): Position;
483
+ /**
484
+ * Create a new selection with a different `selectionStartLineNumber` and `selectionStartColumn`.
485
+ */
486
+ setStartPosition(startLineNumber: number, startColumn: number): Selection;
487
+ /**
488
+ * Create a `Selection` from one or two positions
489
+ */
490
+ static fromPositions(start: IPosition, end?: IPosition): Selection;
491
+ /**
492
+ * Creates a `Selection` from a range, given a direction.
493
+ */
494
+ static fromRange(range: Range, direction: SelectionDirection): Selection;
495
+ /**
496
+ * Create a `Selection` from an `ISelection`.
497
+ */
498
+ static liftSelection(sel: ISelection): Selection;
499
+ /**
500
+ * `a` equals `b`.
501
+ */
502
+ static selectionsArrEqual(a: ISelection[], b: ISelection[]): boolean;
503
+ /**
504
+ * Test if `obj` is an `ISelection`.
505
+ */
506
+ static isISelection(obj: any): obj is ISelection;
507
+ /**
508
+ * Create with a direction.
509
+ */
510
+ static createWithDirection(startLineNumber: number, startColumn: number, endLineNumber: number, endColumn: number, direction: SelectionDirection): Selection;
511
+ }
512
+
513
+ declare class TextChange {
514
+ readonly oldPosition: number;
515
+ readonly oldText: string;
516
+ readonly newPosition: number;
517
+ readonly newText: string;
518
+ get oldLength(): number;
519
+ get oldEnd(): number;
520
+ get newLength(): number;
521
+ get newEnd(): number;
522
+ constructor(oldPosition: number, oldText: string, newPosition: number, newText: string);
523
+ toString(): string;
524
+ private static _writeStringSize;
525
+ private static _writeString;
526
+ private static _readString;
527
+ writeSize(): number;
528
+ write(b: Uint8Array, offset: number): number;
529
+ static read(b: Uint8Array, offset: number, dest: TextChange[]): number;
530
+ }
531
+
532
+ /**
533
+ * A fast character classifier that uses a compact array for ASCII values.
534
+ */
535
+ declare class CharacterClassifier<T extends number> {
536
+ /**
537
+ * Maintain a compact (fully initialized ASCII map for quickly classifying ASCII characters - used more often in code).
538
+ */
539
+ protected readonly _asciiMap: Uint8Array;
540
+ /**
541
+ * The entire map (sparse array).
542
+ */
543
+ protected readonly _map: Map<number, number>;
544
+ protected readonly _defaultValue: number;
545
+ constructor(_defaultValue: T);
546
+ private static _createAsciiMap;
547
+ set(charCode: number, _value: T): void;
548
+ get(charCode: number): T;
549
+ clear(): void;
550
+ }
551
+
552
+ declare const enum WordCharacterClass {
553
+ Regular = 0,
554
+ Whitespace = 1,
555
+ WordSeparator = 2
556
+ }
557
+ declare class WordCharacterClassifier extends CharacterClassifier<WordCharacterClass> {
558
+ constructor(wordSeparators: string);
559
+ }
560
+
561
+ interface IModelContentChange {
562
+ /**
563
+ * The range that got replaced.
564
+ */
565
+ readonly range: IRange;
566
+ /**
567
+ * The offset of the range that got replaced.
568
+ */
569
+ readonly rangeOffset: number;
570
+ /**
571
+ * The length of the range that got replaced.
572
+ */
573
+ readonly rangeLength: number;
574
+ /**
575
+ * The new text for the range.
576
+ */
577
+ readonly text: string;
578
+ }
579
+ /**
580
+ * An event describing that model decorations have changed.
581
+ */
582
+ interface IModelDecorationsChangedEvent {
583
+ readonly affectsMinimap: boolean;
584
+ readonly affectsOverviewRuler: boolean;
585
+ readonly affectsGlyphMargin: boolean;
586
+ }
587
+
588
+ /**
589
+ * Vertical Lane in the overview ruler of the editor.
590
+ */
591
+ declare enum OverviewRulerLane {
592
+ Left = 1,
593
+ Center = 2,
594
+ Right = 4,
595
+ Full = 7
596
+ }
597
+ /**
598
+ * Vertical Lane in the glyph margin of the editor.
599
+ */
600
+ declare enum GlyphMarginLane {
601
+ Left = 1,
602
+ Right = 2
603
+ }
604
+ /**
605
+ * Position in the minimap to render the decoration.
606
+ */
607
+ declare enum MinimapPosition {
608
+ Inline = 1,
609
+ Gutter = 2
610
+ }
611
+ interface IDecorationOptions {
612
+ /**
613
+ * CSS color to render.
614
+ * e.g.: rgba(100, 100, 100, 0.5) or a color from the color registry
615
+ */
616
+ color: string | ThemeColor | undefined;
617
+ /**
618
+ * CSS color to render.
619
+ * e.g.: rgba(100, 100, 100, 0.5) or a color from the color registry
620
+ */
621
+ darkColor?: string | ThemeColor;
622
+ }
623
+ interface IModelDecorationGlyphMarginOptions {
624
+ /**
625
+ * The position in the glyph margin.
626
+ */
627
+ position: GlyphMarginLane;
628
+ }
629
+ /**
630
+ * Options for rendering a model decoration in the overview ruler.
631
+ */
632
+ interface IModelDecorationOverviewRulerOptions extends IDecorationOptions {
633
+ /**
634
+ * The position in the overview ruler.
635
+ */
636
+ position: OverviewRulerLane;
637
+ }
638
+ /**
639
+ * Options for rendering a model decoration in the minimap.
640
+ */
641
+ interface IModelDecorationMinimapOptions extends IDecorationOptions {
642
+ /**
643
+ * The position in the minimap.
644
+ */
645
+ position: MinimapPosition;
646
+ }
647
+ /**
648
+ * Options for a model decoration.
649
+ */
650
+ interface IModelDecorationOptions {
651
+ /**
652
+ * A debug description that can be used for inspecting model decorations.
653
+ * @internal
654
+ */
655
+ description: string;
656
+ /**
657
+ * Customize the growing behavior of the decoration when typing at the edges of the decoration.
658
+ * Defaults to TrackedRangeStickiness.AlwaysGrowsWhenTypingAtEdges
659
+ */
660
+ stickiness?: TrackedRangeStickiness;
661
+ /**
662
+ * CSS class name describing the decoration.
663
+ */
664
+ className?: string | null;
665
+ blockClassName?: string | null;
666
+ /**
667
+ * Indicates if this block should be rendered after the last line.
668
+ * In this case, the range must be empty and set to the last line.
669
+ */
670
+ blockIsAfterEnd?: boolean | null;
671
+ blockDoesNotCollapse?: boolean | null;
672
+ blockPadding?: [top: number, right: number, bottom: number, left: number] | null;
673
+ /**
674
+ * Message to be rendered when hovering over the glyph margin decoration.
675
+ */
676
+ glyphMarginHoverMessage?: IMarkdownString | IMarkdownString[] | null;
677
+ /**
678
+ * Array of MarkdownString to render as the decoration message.
679
+ */
680
+ hoverMessage?: IMarkdownString | IMarkdownString[] | null;
681
+ /**
682
+ * Should the decoration expand to encompass a whole line.
683
+ */
684
+ isWholeLine?: boolean;
685
+ /**
686
+ * Always render the decoration (even when the range it encompasses is collapsed).
687
+ */
688
+ showIfCollapsed?: boolean;
689
+ /**
690
+ * Collapse the decoration if its entire range is being replaced via an edit.
691
+ * @internal
692
+ */
693
+ collapseOnReplaceEdit?: boolean;
694
+ /**
695
+ * Specifies the stack order of a decoration.
696
+ * A decoration with greater stack order is always in front of a decoration with
697
+ * a lower stack order when the decorations are on the same line.
698
+ */
699
+ zIndex?: number;
700
+ /**
701
+ * If set, render this decoration in the overview ruler.
702
+ */
703
+ overviewRuler?: IModelDecorationOverviewRulerOptions | null;
704
+ /**
705
+ * If set, render this decoration in the minimap.
706
+ */
707
+ minimap?: IModelDecorationMinimapOptions | null;
708
+ /**
709
+ * If set, the decoration will be rendered in the glyph margin with this CSS class name.
710
+ */
711
+ glyphMarginClassName?: string | null;
712
+ /**
713
+ * If set and the decoration has {@link glyphMarginClassName} set, render this decoration
714
+ * with the specified {@link IModelDecorationGlyphMarginOptions} in the glyph margin.
715
+ */
716
+ glyphMargin?: IModelDecorationGlyphMarginOptions | null;
717
+ /**
718
+ * If set, the decoration will be rendered in the lines decorations with this CSS class name.
719
+ */
720
+ linesDecorationsClassName?: string | null;
721
+ /**
722
+ * If set, the decoration will be rendered in the lines decorations with this CSS class name, but only for the first line in case of line wrapping.
723
+ */
724
+ firstLineDecorationClassName?: string | null;
725
+ /**
726
+ * If set, the decoration will be rendered in the margin (covering its full width) with this CSS class name.
727
+ */
728
+ marginClassName?: string | null;
729
+ /**
730
+ * If set, the decoration will be rendered inline with the text with this CSS class name.
731
+ * Please use this only for CSS rules that must impact the text. For example, use `className`
732
+ * to have a background color decoration.
733
+ */
734
+ inlineClassName?: string | null;
735
+ /**
736
+ * If there is an `inlineClassName` which affects letter spacing.
737
+ */
738
+ inlineClassNameAffectsLetterSpacing?: boolean;
739
+ /**
740
+ * If set, the decoration will be rendered before the text with this CSS class name.
741
+ */
742
+ beforeContentClassName?: string | null;
743
+ /**
744
+ * If set, the decoration will be rendered after the text with this CSS class name.
745
+ */
746
+ afterContentClassName?: string | null;
747
+ /**
748
+ * If set, text will be injected in the view after the range.
749
+ */
750
+ after?: InjectedTextOptions | null;
751
+ /**
752
+ * If set, text will be injected in the view before the range.
753
+ */
754
+ before?: InjectedTextOptions | null;
755
+ /**
756
+ * If set, this decoration will not be rendered for comment tokens.
757
+ * @internal
758
+ */
759
+ hideInCommentTokens?: boolean | null;
760
+ /**
761
+ * If set, this decoration will not be rendered for string tokens.
762
+ * @internal
763
+ */
764
+ hideInStringTokens?: boolean | null;
765
+ }
766
+ /**
767
+ * Configures text that is injected into the view without changing the underlying document.
768
+ */
769
+ interface InjectedTextOptions {
770
+ /**
771
+ * Sets the text to inject. Must be a single line.
772
+ */
773
+ readonly content: string;
774
+ /**
775
+ * If set, the decoration will be rendered inline with the text with this CSS class name.
776
+ */
777
+ readonly inlineClassName?: string | null;
778
+ /**
779
+ * If there is an `inlineClassName` which affects letter spacing.
780
+ */
781
+ readonly inlineClassNameAffectsLetterSpacing?: boolean;
782
+ /**
783
+ * This field allows to attach data to this injected text.
784
+ * The data can be read when injected texts at a given position are queried.
785
+ */
786
+ readonly attachedData?: unknown;
787
+ /**
788
+ * Configures cursor stops around injected text.
789
+ * Defaults to {@link InjectedTextCursorStops.Both}.
790
+ */
791
+ readonly cursorStops?: InjectedTextCursorStops | null;
792
+ }
793
+ declare enum InjectedTextCursorStops {
794
+ Both = 0,
795
+ Right = 1,
796
+ Left = 2,
797
+ None = 3
798
+ }
799
+ /**
800
+ * New model decorations.
801
+ */
802
+ interface IModelDeltaDecoration {
803
+ /**
804
+ * Range that this decoration covers.
805
+ */
806
+ range: IRange;
807
+ /**
808
+ * Options associated with this decoration.
809
+ */
810
+ options: IModelDecorationOptions;
811
+ }
812
+ /**
813
+ * A decoration in the model.
814
+ */
815
+ interface IModelDecoration {
816
+ /**
817
+ * Identifier for a decoration.
818
+ */
819
+ readonly id: string;
820
+ /**
821
+ * Identifier for a decoration's owner.
822
+ */
823
+ readonly ownerId: number;
824
+ /**
825
+ * Range that this decoration covers.
826
+ */
827
+ readonly range: Range;
828
+ /**
829
+ * Options associated with this decoration.
830
+ */
831
+ readonly options: IModelDecorationOptions;
832
+ }
833
+ /**
834
+ * An accessor that can add, change or remove model decorations.
835
+ * @internal
836
+ */
837
+ interface IModelDecorationsChangeAccessor {
838
+ /**
839
+ * Add a new decoration.
840
+ * @param range Range that this decoration covers.
841
+ * @param options Options associated with this decoration.
842
+ * @return An unique identifier associated with this decoration.
843
+ */
844
+ addDecoration(range: IRange, options: IModelDecorationOptions): string;
845
+ /**
846
+ * Change the range that an existing decoration covers.
847
+ * @param id The unique identifier associated with the decoration.
848
+ * @param newRange The new range that this decoration covers.
849
+ */
850
+ changeDecoration(id: string, newRange: IRange): void;
851
+ /**
852
+ * Change the options associated with an existing decoration.
853
+ * @param id The unique identifier associated with the decoration.
854
+ * @param newOptions The new options associated with this decoration.
855
+ */
856
+ changeDecorationOptions(id: string, newOptions: IModelDecorationOptions): void;
857
+ /**
858
+ * Remove an existing decoration.
859
+ * @param id The unique identifier associated with the decoration.
860
+ */
861
+ removeDecoration(id: string): void;
862
+ /**
863
+ * Perform a minimum amount of operations, in order to transform the decorations
864
+ * identified by `oldDecorations` to the decorations described by `newDecorations`
865
+ * and returns the new identifiers associated with the resulting decorations.
866
+ *
867
+ * @param oldDecorations Array containing previous decorations identifiers.
868
+ * @param newDecorations Array describing what decorations should result after the call.
869
+ * @return An array containing the new decorations identifiers.
870
+ */
871
+ deltaDecorations(oldDecorations: readonly string[], newDecorations: readonly IModelDeltaDecoration[]): string[];
872
+ }
873
+ /**
874
+ * End of line character preference.
875
+ */
876
+ declare const enum EndOfLinePreference {
877
+ /**
878
+ * Use the end of line character identified in the text buffer.
879
+ */
880
+ TextDefined = 0,
881
+ /**
882
+ * Use line feed (\n) as the end of line character.
883
+ */
884
+ LF = 1,
885
+ /**
886
+ * Use carriage return and line feed (\r\n) as the end of line character.
887
+ */
888
+ CRLF = 2
889
+ }
890
+ /**
891
+ * The default end of line to use when instantiating models.
892
+ */
893
+ declare const enum DefaultEndOfLine {
894
+ /**
895
+ * Use line feed (\n) as the end of line character.
896
+ */
897
+ LF = 1,
898
+ /**
899
+ * Use carriage return and line feed (\r\n) as the end of line character.
900
+ */
901
+ CRLF = 2
902
+ }
903
+ /**
904
+ * End of line character preference.
905
+ */
906
+ declare const enum EndOfLineSequence {
907
+ /**
908
+ * Use line feed (\n) as the end of line character.
909
+ */
910
+ LF = 0,
911
+ /**
912
+ * Use carriage return and line feed (\r\n) as the end of line character.
913
+ */
914
+ CRLF = 1
915
+ }
916
+ /**
917
+ * An identifier for a single edit operation.
918
+ * @internal
919
+ */
920
+ interface ISingleEditOperationIdentifier {
921
+ /**
922
+ * Identifier major
923
+ */
924
+ major: number;
925
+ /**
926
+ * Identifier minor
927
+ */
928
+ minor: number;
929
+ }
930
+ /**
931
+ * A single edit operation, that has an identifier.
932
+ */
933
+ interface IIdentifiedSingleEditOperation extends ISingleEditOperation {
934
+ /**
935
+ * An identifier associated with this single edit operation.
936
+ * @internal
937
+ */
938
+ identifier?: ISingleEditOperationIdentifier | null;
939
+ /**
940
+ * This indicates that this operation is inserting automatic whitespace
941
+ * that can be removed on next model edit operation if `config.trimAutoWhitespace` is true.
942
+ * @internal
943
+ */
944
+ isAutoWhitespaceEdit?: boolean;
945
+ /**
946
+ * This indicates that this operation is in a set of operations that are tracked and should not be "simplified".
947
+ * @internal
948
+ */
949
+ _isTracked?: boolean;
950
+ }
951
+ interface IValidEditOperation {
952
+ /**
953
+ * An identifier associated with this single edit operation.
954
+ * @internal
955
+ */
956
+ identifier: ISingleEditOperationIdentifier | null;
957
+ /**
958
+ * The range to replace. This can be empty to emulate a simple insert.
959
+ */
960
+ range: Range;
961
+ /**
962
+ * The text to replace with. This can be empty to emulate a simple delete.
963
+ */
964
+ text: string;
965
+ /**
966
+ * @internal
967
+ */
968
+ textChange: TextChange;
969
+ }
970
+ /**
971
+ * @internal
972
+ */
973
+ interface ITextModelCreationOptions {
974
+ tabSize: number;
975
+ indentSize: number | 'tabSize';
976
+ insertSpaces: boolean;
977
+ detectIndentation: boolean;
978
+ trimAutoWhitespace: boolean;
979
+ defaultEOL: DefaultEndOfLine;
980
+ isForSimpleWidget: boolean;
981
+ largeFileOptimizations: boolean;
982
+ bracketPairColorizationOptions: BracketPairColorizationOptions;
983
+ }
984
+ interface BracketPairColorizationOptions {
985
+ enabled: boolean;
986
+ independentColorPoolPerBracketType: boolean;
987
+ }
988
+ declare class FindMatch {
989
+ _findMatchBrand: void;
990
+ readonly range: Range;
991
+ readonly matches: string[] | null;
992
+ /**
993
+ * @internal
994
+ */
995
+ constructor(range: Range, matches: string[] | null);
996
+ }
997
+ /**
998
+ * Describes the behavior of decorations when typing/editing near their edges.
999
+ * Note: Please do not edit the values, as they very carefully match `DecorationRangeBehavior`
1000
+ */
1001
+ declare const enum TrackedRangeStickiness {
1002
+ AlwaysGrowsWhenTypingAtEdges = 0,
1003
+ NeverGrowsWhenTypingAtEdges = 1,
1004
+ GrowsOnlyWhenTypingBefore = 2,
1005
+ GrowsOnlyWhenTypingAfter = 3
1006
+ }
1007
+ /**
1008
+ * Text snapshot that works like an iterator.
1009
+ * Will try to return chunks of roughly ~64KB size.
1010
+ * Will return null when finished.
1011
+ */
1012
+ interface ITextSnapshot {
1013
+ read(): string | null;
1014
+ }
1015
+ /**
1016
+ * A model.
1017
+ */
1018
+ type ITextModel = monaco.editor.ITextModel
1019
+ /**
1020
+ * @internal
1021
+ */
1022
+ interface ITextBufferFactory {
1023
+ create(defaultEOL: DefaultEndOfLine): {
1024
+ textBuffer: ITextBuffer;
1025
+ disposable: IDisposable;
1026
+ };
1027
+ getFirstLineText(lengthLimit: number): string;
1028
+ }
1029
+ /**
1030
+ * @internal
1031
+ */
1032
+ declare class ValidAnnotatedEditOperation implements IIdentifiedSingleEditOperation {
1033
+ readonly identifier: ISingleEditOperationIdentifier | null;
1034
+ readonly range: Range;
1035
+ readonly text: string | null;
1036
+ readonly forceMoveMarkers: boolean;
1037
+ readonly isAutoWhitespaceEdit: boolean;
1038
+ readonly _isTracked: boolean;
1039
+ constructor(identifier: ISingleEditOperationIdentifier | null, range: Range, text: string | null, forceMoveMarkers: boolean, isAutoWhitespaceEdit: boolean, _isTracked: boolean);
1040
+ }
1041
+ /**
1042
+ * @internal
1043
+ *
1044
+ * `lineNumber` is 1 based.
1045
+ */
1046
+ interface IReadonlyTextBuffer {
1047
+ onDidChangeContent: Event<void>;
1048
+ equals(other: ITextBuffer): boolean;
1049
+ mightContainRTL(): boolean;
1050
+ mightContainUnusualLineTerminators(): boolean;
1051
+ resetMightContainUnusualLineTerminators(): void;
1052
+ mightContainNonBasicASCII(): boolean;
1053
+ getBOM(): string;
1054
+ getEOL(): string;
1055
+ getOffsetAt(lineNumber: number, column: number): number;
1056
+ getPositionAt(offset: number): Position;
1057
+ getRangeAt(offset: number, length: number): Range;
1058
+ getValueInRange(range: Range, eol: EndOfLinePreference): string;
1059
+ createSnapshot(preserveBOM: boolean): ITextSnapshot;
1060
+ getValueLengthInRange(range: Range, eol: EndOfLinePreference): number;
1061
+ getCharacterCountInRange(range: Range, eol: EndOfLinePreference): number;
1062
+ getLength(): number;
1063
+ getLineCount(): number;
1064
+ getLinesContent(): string[];
1065
+ getLineContent(lineNumber: number): string;
1066
+ getLineCharCode(lineNumber: number, index: number): number;
1067
+ getCharCode(offset: number): number;
1068
+ getLineLength(lineNumber: number): number;
1069
+ getLineFirstNonWhitespaceColumn(lineNumber: number): number;
1070
+ getLineLastNonWhitespaceColumn(lineNumber: number): number;
1071
+ findMatchesLineByLine(searchRange: Range, searchData: SearchData, captureMatches: boolean, limitResultCount: number): FindMatch[];
1072
+ }
1073
+ /**
1074
+ * @internal
1075
+ */
1076
+ declare class SearchData {
1077
+ /**
1078
+ * The regex to search for. Always defined.
1079
+ */
1080
+ readonly regex: RegExp;
1081
+ /**
1082
+ * The word separator classifier.
1083
+ */
1084
+ readonly wordSeparators: WordCharacterClassifier | null;
1085
+ /**
1086
+ * The simple string to search for (if possible).
1087
+ */
1088
+ readonly simpleSearch: string | null;
1089
+ constructor(regex: RegExp, wordSeparators: WordCharacterClassifier | null, simpleSearch: string | null);
1090
+ }
1091
+ /**
1092
+ * @internal
1093
+ */
1094
+ interface ITextBuffer extends IReadonlyTextBuffer {
1095
+ setEOL(newEOL: '\r\n' | '\n'): void;
1096
+ applyEdits(rawOperations: ValidAnnotatedEditOperation[], recordTrimAutoWhitespace: boolean, computeUndoEdits: boolean): ApplyEditsResult;
1097
+ }
1098
+ /**
1099
+ * @internal
1100
+ */
1101
+ declare class ApplyEditsResult {
1102
+ readonly reverseEdits: IValidEditOperation[] | null;
1103
+ readonly changes: IInternalModelContentChange[];
1104
+ readonly trimAutoWhitespaceLineNumbers: number[] | null;
1105
+ constructor(reverseEdits: IValidEditOperation[] | null, changes: IInternalModelContentChange[], trimAutoWhitespaceLineNumbers: number[] | null);
1106
+ }
1107
+ /**
1108
+ * @internal
1109
+ */
1110
+ interface IInternalModelContentChange extends IModelContentChange {
1111
+ range: Range;
1112
+ forceMoveMarkers: boolean;
1113
+ }
1114
+
1115
+ /**
1116
+ * A document diff provider computes the diff between two text models.
1117
+ */
1118
+ interface IDocumentDiffProvider {
1119
+ /**
1120
+ * Computes the diff between the text models `original` and `modified`.
1121
+ */
1122
+ computeDiff(original: ITextModel, modified: ITextModel, options: IDocumentDiffProviderOptions): Promise<IDocumentDiff>;
1123
+ /**
1124
+ * Is fired when settings of the diff algorithm change that could alter the result of the diffing computation.
1125
+ * Any user of this provider should recompute the diff when this event is fired.
1126
+ */
1127
+ onDidChange: Event<void>;
1128
+ }
1129
+ /**
1130
+ * Options for the diff computation.
1131
+ */
1132
+ interface IDocumentDiffProviderOptions {
1133
+ /**
1134
+ * When set to true, the diff should ignore whitespace changes.i
1135
+ */
1136
+ ignoreTrimWhitespace: boolean;
1137
+ /**
1138
+ * A diff computation should throw if it takes longer than this value.
1139
+ */
1140
+ maxComputationTimeMs: number;
1141
+ }
1142
+ /**
1143
+ * Represents a diff between two text models.
1144
+ */
1145
+ interface IDocumentDiff {
1146
+ /**
1147
+ * If true, both text models are identical (byte-wise).
1148
+ */
1149
+ readonly identical: boolean;
1150
+ /**
1151
+ * If true, the diff computation timed out and the diff might not be accurate.
1152
+ */
1153
+ readonly quitEarly: boolean;
1154
+ /**
1155
+ * Maps all modified line ranges in the original to the corresponding line ranges in the modified text model.
1156
+ */
1157
+ readonly changes: LineRangeMapping[];
1158
+ }
1159
+
1160
+ /**
1161
+ * Configuration options for auto closing quotes and brackets
1162
+ */
1163
+ type EditorAutoClosingStrategy = 'always' | 'languageDefined' | 'beforeWhitespace' | 'never';
1164
+ /**
1165
+ * Configuration options for auto wrapping quotes and brackets
1166
+ */
1167
+ type EditorAutoSurroundStrategy = 'languageDefined' | 'quotes' | 'brackets' | 'never';
1168
+ /**
1169
+ * Configuration options for typing over closing quotes or brackets
1170
+ */
1171
+ type EditorAutoClosingEditStrategy = 'always' | 'auto' | 'never';
1172
+ /**
1173
+ * Configuration options for auto indentation in the editor
1174
+ */
1175
+ declare const enum EditorAutoIndentStrategy {
1176
+ None = 0,
1177
+ Keep = 1,
1178
+ Brackets = 2,
1179
+ Advanced = 3,
1180
+ Full = 4
1181
+ }
1182
+ /**
1183
+ * Configuration options for the editor.
1184
+ */
1185
+ interface IEditorOptions {
1186
+ /**
1187
+ * This editor is used inside a diff editor.
1188
+ */
1189
+ inDiffEditor?: boolean;
1190
+ /**
1191
+ * The aria label for the editor's textarea (when it is focused).
1192
+ */
1193
+ ariaLabel?: string;
1194
+ /**
1195
+ * Control whether a screen reader announces inline suggestion content immediately.
1196
+ */
1197
+ screenReaderAnnounceInlineSuggestion?: boolean;
1198
+ /**
1199
+ * The `tabindex` property of the editor's textarea
1200
+ */
1201
+ tabIndex?: number;
1202
+ /**
1203
+ * Render vertical lines at the specified columns.
1204
+ * Defaults to empty array.
1205
+ */
1206
+ rulers?: (number | IRulerOption)[];
1207
+ /**
1208
+ * A string containing the word separators used when doing word navigation.
1209
+ * Defaults to `~!@#$%^&*()-=+[{]}\\|;:\'",.<>/?
1210
+ */
1211
+ wordSeparators?: string;
1212
+ /**
1213
+ * Enable Linux primary clipboard.
1214
+ * Defaults to true.
1215
+ */
1216
+ selectionClipboard?: boolean;
1217
+ /**
1218
+ * Control the rendering of line numbers.
1219
+ * If it is a function, it will be invoked when rendering a line number and the return value will be rendered.
1220
+ * Otherwise, if it is a truthy, line numbers will be rendered normally (equivalent of using an identity function).
1221
+ * Otherwise, line numbers will not be rendered.
1222
+ * Defaults to `on`.
1223
+ */
1224
+ lineNumbers?: LineNumbersType;
1225
+ /**
1226
+ * Controls the minimal number of visible leading and trailing lines surrounding the cursor.
1227
+ * Defaults to 0.
1228
+ */
1229
+ cursorSurroundingLines?: number;
1230
+ /**
1231
+ * Controls when `cursorSurroundingLines` should be enforced
1232
+ * Defaults to `default`, `cursorSurroundingLines` is not enforced when cursor position is changed
1233
+ * by mouse.
1234
+ */
1235
+ cursorSurroundingLinesStyle?: 'default' | 'all';
1236
+ /**
1237
+ * Render last line number when the file ends with a newline.
1238
+ * Defaults to 'on' for Windows and macOS and 'dimmed' for Linux.
1239
+ */
1240
+ renderFinalNewline?: 'on' | 'off' | 'dimmed';
1241
+ /**
1242
+ * Remove unusual line terminators like LINE SEPARATOR (LS), PARAGRAPH SEPARATOR (PS).
1243
+ * Defaults to 'prompt'.
1244
+ */
1245
+ unusualLineTerminators?: 'auto' | 'off' | 'prompt';
1246
+ /**
1247
+ * Should the corresponding line be selected when clicking on the line number?
1248
+ * Defaults to true.
1249
+ */
1250
+ selectOnLineNumbers?: boolean;
1251
+ /**
1252
+ * Control the width of line numbers, by reserving horizontal space for rendering at least an amount of digits.
1253
+ * Defaults to 5.
1254
+ */
1255
+ lineNumbersMinChars?: number;
1256
+ /**
1257
+ * Enable the rendering of the glyph margin.
1258
+ * Defaults to true in vscode and to false in monaco-editor.
1259
+ */
1260
+ glyphMargin?: boolean;
1261
+ /**
1262
+ * The width reserved for line decorations (in px).
1263
+ * Line decorations are placed between line numbers and the editor content.
1264
+ * You can pass in a string in the format floating point followed by "ch". e.g. 1.3ch.
1265
+ * Defaults to 10.
1266
+ */
1267
+ lineDecorationsWidth?: number | string;
1268
+ /**
1269
+ * When revealing the cursor, a virtual padding (px) is added to the cursor, turning it into a rectangle.
1270
+ * This virtual padding ensures that the cursor gets revealed before hitting the edge of the viewport.
1271
+ * Defaults to 30 (px).
1272
+ */
1273
+ revealHorizontalRightPadding?: number;
1274
+ /**
1275
+ * Render the editor selection with rounded borders.
1276
+ * Defaults to true.
1277
+ */
1278
+ roundedSelection?: boolean;
1279
+ /**
1280
+ * Class name to be added to the editor.
1281
+ */
1282
+ extraEditorClassName?: string;
1283
+ /**
1284
+ * Should the editor be read only. See also `domReadOnly`.
1285
+ * Defaults to false.
1286
+ */
1287
+ readOnly?: boolean;
1288
+ /**
1289
+ * Should the textarea used for input use the DOM `readonly` attribute.
1290
+ * Defaults to false.
1291
+ */
1292
+ domReadOnly?: boolean;
1293
+ /**
1294
+ * Enable linked editing.
1295
+ * Defaults to false.
1296
+ */
1297
+ linkedEditing?: boolean;
1298
+ /**
1299
+ * deprecated, use linkedEditing instead
1300
+ */
1301
+ renameOnType?: boolean;
1302
+ /**
1303
+ * Should the editor render validation decorations.
1304
+ * Defaults to editable.
1305
+ */
1306
+ renderValidationDecorations?: 'editable' | 'on' | 'off';
1307
+ /**
1308
+ * Control the behavior and rendering of the scrollbars.
1309
+ */
1310
+ scrollbar?: IEditorScrollbarOptions;
1311
+ /**
1312
+ * Control the behavior of sticky scroll options
1313
+ */
1314
+ stickyScroll?: IEditorStickyScrollOptions;
1315
+ /**
1316
+ * Control the behavior and rendering of the minimap.
1317
+ */
1318
+ minimap?: IEditorMinimapOptions;
1319
+ /**
1320
+ * Control the behavior of the find widget.
1321
+ */
1322
+ find?: IEditorFindOptions;
1323
+ /**
1324
+ * Display overflow widgets as `fixed`.
1325
+ * Defaults to `false`.
1326
+ */
1327
+ fixedOverflowWidgets?: boolean;
1328
+ /**
1329
+ * The number of vertical lanes the overview ruler should render.
1330
+ * Defaults to 3.
1331
+ */
1332
+ overviewRulerLanes?: number;
1333
+ /**
1334
+ * Controls if a border should be drawn around the overview ruler.
1335
+ * Defaults to `true`.
1336
+ */
1337
+ overviewRulerBorder?: boolean;
1338
+ /**
1339
+ * Control the cursor animation style, possible values are 'blink', 'smooth', 'phase', 'expand' and 'solid'.
1340
+ * Defaults to 'blink'.
1341
+ */
1342
+ cursorBlinking?: 'blink' | 'smooth' | 'phase' | 'expand' | 'solid';
1343
+ /**
1344
+ * Zoom the font in the editor when using the mouse wheel in combination with holding Ctrl.
1345
+ * Defaults to false.
1346
+ */
1347
+ mouseWheelZoom?: boolean;
1348
+ /**
1349
+ * Control the mouse pointer style, either 'text' or 'default' or 'copy'
1350
+ * Defaults to 'text'
1351
+ */
1352
+ mouseStyle?: 'text' | 'default' | 'copy';
1353
+ /**
1354
+ * Enable smooth caret animation.
1355
+ * Defaults to 'off'.
1356
+ */
1357
+ cursorSmoothCaretAnimation?: 'off' | 'explicit' | 'on';
1358
+ /**
1359
+ * Control the cursor style, either 'block' or 'line'.
1360
+ * Defaults to 'line'.
1361
+ */
1362
+ cursorStyle?: 'line' | 'block' | 'underline' | 'line-thin' | 'block-outline' | 'underline-thin';
1363
+ /**
1364
+ * Control the width of the cursor when cursorStyle is set to 'line'
1365
+ */
1366
+ cursorWidth?: number;
1367
+ /**
1368
+ * Enable font ligatures.
1369
+ * Defaults to false.
1370
+ */
1371
+ fontLigatures?: boolean | string;
1372
+ /**
1373
+ * Enable font variations.
1374
+ * Defaults to false.
1375
+ */
1376
+ fontVariations?: boolean | string;
1377
+ /**
1378
+ * Controls whether to use default color decorations or not using the default document color provider
1379
+ */
1380
+ defaultColorDecorators?: boolean;
1381
+ /**
1382
+ * Disable the use of `transform: translate3d(0px, 0px, 0px)` for the editor margin and lines layers.
1383
+ * The usage of `transform: translate3d(0px, 0px, 0px)` acts as a hint for browsers to create an extra layer.
1384
+ * Defaults to false.
1385
+ */
1386
+ disableLayerHinting?: boolean;
1387
+ /**
1388
+ * Disable the optimizations for monospace fonts.
1389
+ * Defaults to false.
1390
+ */
1391
+ disableMonospaceOptimizations?: boolean;
1392
+ /**
1393
+ * Should the cursor be hidden in the overview ruler.
1394
+ * Defaults to false.
1395
+ */
1396
+ hideCursorInOverviewRuler?: boolean;
1397
+ /**
1398
+ * Enable that scrolling can go one screen size after the last line.
1399
+ * Defaults to true.
1400
+ */
1401
+ scrollBeyondLastLine?: boolean;
1402
+ /**
1403
+ * Enable that scrolling can go beyond the last column by a number of columns.
1404
+ * Defaults to 5.
1405
+ */
1406
+ scrollBeyondLastColumn?: number;
1407
+ /**
1408
+ * Enable that the editor animates scrolling to a position.
1409
+ * Defaults to false.
1410
+ */
1411
+ smoothScrolling?: boolean;
1412
+ /**
1413
+ * Enable that the editor will install a ResizeObserver to check if its container dom node size has changed.
1414
+ * Defaults to false.
1415
+ */
1416
+ automaticLayout?: boolean;
1417
+ /**
1418
+ * Control the wrapping of the editor.
1419
+ * When `wordWrap` = "off", the lines will never wrap.
1420
+ * When `wordWrap` = "on", the lines will wrap at the viewport width.
1421
+ * When `wordWrap` = "wordWrapColumn", the lines will wrap at `wordWrapColumn`.
1422
+ * When `wordWrap` = "bounded", the lines will wrap at min(viewport width, wordWrapColumn).
1423
+ * Defaults to "off".
1424
+ */
1425
+ wordWrap?: 'off' | 'on' | 'wordWrapColumn' | 'bounded';
1426
+ /**
1427
+ * Override the `wordWrap` setting.
1428
+ */
1429
+ wordWrapOverride1?: 'off' | 'on' | 'inherit';
1430
+ /**
1431
+ * Override the `wordWrapOverride1` setting.
1432
+ */
1433
+ wordWrapOverride2?: 'off' | 'on' | 'inherit';
1434
+ /**
1435
+ * Control the wrapping of the editor.
1436
+ * When `wordWrap` = "off", the lines will never wrap.
1437
+ * When `wordWrap` = "on", the lines will wrap at the viewport width.
1438
+ * When `wordWrap` = "wordWrapColumn", the lines will wrap at `wordWrapColumn`.
1439
+ * When `wordWrap` = "bounded", the lines will wrap at min(viewport width, wordWrapColumn).
1440
+ * Defaults to 80.
1441
+ */
1442
+ wordWrapColumn?: number;
1443
+ /**
1444
+ * Control indentation of wrapped lines. Can be: 'none', 'same', 'indent' or 'deepIndent'.
1445
+ * Defaults to 'same' in vscode and to 'none' in monaco-editor.
1446
+ */
1447
+ wrappingIndent?: 'none' | 'same' | 'indent' | 'deepIndent';
1448
+ /**
1449
+ * Controls the wrapping strategy to use.
1450
+ * Defaults to 'simple'.
1451
+ */
1452
+ wrappingStrategy?: 'simple' | 'advanced';
1453
+ /**
1454
+ * Configure word wrapping characters. A break will be introduced before these characters.
1455
+ */
1456
+ wordWrapBreakBeforeCharacters?: string;
1457
+ /**
1458
+ * Configure word wrapping characters. A break will be introduced after these characters.
1459
+ */
1460
+ wordWrapBreakAfterCharacters?: string;
1461
+ /**
1462
+ * Sets whether line breaks appear wherever the text would otherwise overflow its content box.
1463
+ * When wordBreak = 'normal', Use the default line break rule.
1464
+ * When wordBreak = 'keepAll', Word breaks should not be used for Chinese/Japanese/Korean (CJK) text. Non-CJK text behavior is the same as for normal.
1465
+ */
1466
+ wordBreak?: 'normal' | 'keepAll';
1467
+ /**
1468
+ * Performance guard: Stop rendering a line after x characters.
1469
+ * Defaults to 10000.
1470
+ * Use -1 to never stop rendering
1471
+ */
1472
+ stopRenderingLineAfter?: number;
1473
+ /**
1474
+ * Configure the editor's hover.
1475
+ */
1476
+ hover?: IEditorHoverOptions;
1477
+ /**
1478
+ * Enable detecting links and making them clickable.
1479
+ * Defaults to true.
1480
+ */
1481
+ links?: boolean;
1482
+ /**
1483
+ * Enable inline color decorators and color picker rendering.
1484
+ */
1485
+ colorDecorators?: boolean;
1486
+ /**
1487
+ * Controls the max number of color decorators that can be rendered in an editor at once.
1488
+ */
1489
+ colorDecoratorsLimit?: number;
1490
+ /**
1491
+ * Control the behaviour of comments in the editor.
1492
+ */
1493
+ comments?: IEditorCommentsOptions;
1494
+ /**
1495
+ * Enable custom contextmenu.
1496
+ * Defaults to true.
1497
+ */
1498
+ contextmenu?: boolean;
1499
+ /**
1500
+ * A multiplier to be used on the `deltaX` and `deltaY` of mouse wheel scroll events.
1501
+ * Defaults to 1.
1502
+ */
1503
+ mouseWheelScrollSensitivity?: number;
1504
+ /**
1505
+ * FastScrolling mulitplier speed when pressing `Alt`
1506
+ * Defaults to 5.
1507
+ */
1508
+ fastScrollSensitivity?: number;
1509
+ /**
1510
+ * Enable that the editor scrolls only the predominant axis. Prevents horizontal drift when scrolling vertically on a trackpad.
1511
+ * Defaults to true.
1512
+ */
1513
+ scrollPredominantAxis?: boolean;
1514
+ /**
1515
+ * Enable that the selection with the mouse and keys is doing column selection.
1516
+ * Defaults to false.
1517
+ */
1518
+ columnSelection?: boolean;
1519
+ /**
1520
+ * The modifier to be used to add multiple cursors with the mouse.
1521
+ * Defaults to 'alt'
1522
+ */
1523
+ multiCursorModifier?: 'ctrlCmd' | 'alt';
1524
+ /**
1525
+ * Merge overlapping selections.
1526
+ * Defaults to true
1527
+ */
1528
+ multiCursorMergeOverlapping?: boolean;
1529
+ /**
1530
+ * Configure the behaviour when pasting a text with the line count equal to the cursor count.
1531
+ * Defaults to 'spread'.
1532
+ */
1533
+ multiCursorPaste?: 'spread' | 'full';
1534
+ /**
1535
+ * Controls the max number of text cursors that can be in an active editor at once.
1536
+ */
1537
+ multiCursorLimit?: number;
1538
+ /**
1539
+ * Configure the editor's accessibility support.
1540
+ * Defaults to 'auto'. It is best to leave this to 'auto'.
1541
+ */
1542
+ accessibilitySupport?: 'auto' | 'off' | 'on';
1543
+ /**
1544
+ * Controls the number of lines in the editor that can be read out by a screen reader
1545
+ */
1546
+ accessibilityPageSize?: number;
1547
+ /**
1548
+ * Suggest options.
1549
+ */
1550
+ suggest?: ISuggestOptions;
1551
+ inlineSuggest?: IInlineSuggestOptions;
1552
+ /**
1553
+ * Smart select options.
1554
+ */
1555
+ smartSelect?: ISmartSelectOptions;
1556
+ /**
1557
+ *
1558
+ */
1559
+ gotoLocation?: IGotoLocationOptions;
1560
+ /**
1561
+ * Enable quick suggestions (shadow suggestions)
1562
+ * Defaults to true.
1563
+ */
1564
+ quickSuggestions?: boolean | IQuickSuggestionsOptions;
1565
+ /**
1566
+ * Quick suggestions show delay (in ms)
1567
+ * Defaults to 10 (ms)
1568
+ */
1569
+ quickSuggestionsDelay?: number;
1570
+ /**
1571
+ * Controls the spacing around the editor.
1572
+ */
1573
+ padding?: IEditorPaddingOptions;
1574
+ /**
1575
+ * Parameter hint options.
1576
+ */
1577
+ parameterHints?: IEditorParameterHintOptions;
1578
+ /**
1579
+ * Options for auto closing brackets.
1580
+ * Defaults to language defined behavior.
1581
+ */
1582
+ autoClosingBrackets?: EditorAutoClosingStrategy;
1583
+ /**
1584
+ * Options for auto closing quotes.
1585
+ * Defaults to language defined behavior.
1586
+ */
1587
+ autoClosingQuotes?: EditorAutoClosingStrategy;
1588
+ /**
1589
+ * Options for pressing backspace near quotes or bracket pairs.
1590
+ */
1591
+ autoClosingDelete?: EditorAutoClosingEditStrategy;
1592
+ /**
1593
+ * Options for typing over closing quotes or brackets.
1594
+ */
1595
+ autoClosingOvertype?: EditorAutoClosingEditStrategy;
1596
+ /**
1597
+ * Options for auto surrounding.
1598
+ * Defaults to always allowing auto surrounding.
1599
+ */
1600
+ autoSurround?: EditorAutoSurroundStrategy;
1601
+ /**
1602
+ * Controls whether the editor should automatically adjust the indentation when users type, paste, move or indent lines.
1603
+ * Defaults to advanced.
1604
+ */
1605
+ autoIndent?: 'none' | 'keep' | 'brackets' | 'advanced' | 'full';
1606
+ /**
1607
+ * Emulate selection behaviour of tab characters when using spaces for indentation.
1608
+ * This means selection will stick to tab stops.
1609
+ */
1610
+ stickyTabStops?: boolean;
1611
+ /**
1612
+ * Enable format on type.
1613
+ * Defaults to false.
1614
+ */
1615
+ formatOnType?: boolean;
1616
+ /**
1617
+ * Enable format on paste.
1618
+ * Defaults to false.
1619
+ */
1620
+ formatOnPaste?: boolean;
1621
+ /**
1622
+ * Controls if the editor should allow to move selections via drag and drop.
1623
+ * Defaults to false.
1624
+ */
1625
+ dragAndDrop?: boolean;
1626
+ /**
1627
+ * Enable the suggestion box to pop-up on trigger characters.
1628
+ * Defaults to true.
1629
+ */
1630
+ suggestOnTriggerCharacters?: boolean;
1631
+ /**
1632
+ * Accept suggestions on ENTER.
1633
+ * Defaults to 'on'.
1634
+ */
1635
+ acceptSuggestionOnEnter?: 'on' | 'smart' | 'off';
1636
+ /**
1637
+ * Accept suggestions on provider defined characters.
1638
+ * Defaults to true.
1639
+ */
1640
+ acceptSuggestionOnCommitCharacter?: boolean;
1641
+ /**
1642
+ * Enable snippet suggestions. Default to 'true'.
1643
+ */
1644
+ snippetSuggestions?: 'top' | 'bottom' | 'inline' | 'none';
1645
+ /**
1646
+ * Copying without a selection copies the current line.
1647
+ */
1648
+ emptySelectionClipboard?: boolean;
1649
+ /**
1650
+ * Syntax highlighting is copied.
1651
+ */
1652
+ copyWithSyntaxHighlighting?: boolean;
1653
+ /**
1654
+ * The history mode for suggestions.
1655
+ */
1656
+ suggestSelection?: 'first' | 'recentlyUsed' | 'recentlyUsedByPrefix';
1657
+ /**
1658
+ * The font size for the suggest widget.
1659
+ * Defaults to the editor font size.
1660
+ */
1661
+ suggestFontSize?: number;
1662
+ /**
1663
+ * The line height for the suggest widget.
1664
+ * Defaults to the editor line height.
1665
+ */
1666
+ suggestLineHeight?: number;
1667
+ /**
1668
+ * Enable tab completion.
1669
+ */
1670
+ tabCompletion?: 'on' | 'off' | 'onlySnippets';
1671
+ /**
1672
+ * Enable selection highlight.
1673
+ * Defaults to true.
1674
+ */
1675
+ selectionHighlight?: boolean;
1676
+ /**
1677
+ * Enable semantic occurrences highlight.
1678
+ * Defaults to true.
1679
+ */
1680
+ occurrencesHighlight?: boolean;
1681
+ /**
1682
+ * Show code lens
1683
+ * Defaults to true.
1684
+ */
1685
+ codeLens?: boolean;
1686
+ /**
1687
+ * Code lens font family. Defaults to editor font family.
1688
+ */
1689
+ codeLensFontFamily?: string;
1690
+ /**
1691
+ * Code lens font size. Default to 90% of the editor font size
1692
+ */
1693
+ codeLensFontSize?: number;
1694
+ /**
1695
+ * Control the behavior and rendering of the code action lightbulb.
1696
+ */
1697
+ lightbulb?: IEditorLightbulbOptions;
1698
+ /**
1699
+ * Timeout for running code actions on save.
1700
+ */
1701
+ codeActionsOnSaveTimeout?: number;
1702
+ /**
1703
+ * Enable code folding.
1704
+ * Defaults to true.
1705
+ */
1706
+ folding?: boolean;
1707
+ /**
1708
+ * Selects the folding strategy. 'auto' uses the strategies contributed for the current document, 'indentation' uses the indentation based folding strategy.
1709
+ * Defaults to 'auto'.
1710
+ */
1711
+ foldingStrategy?: 'auto' | 'indentation';
1712
+ /**
1713
+ * Enable highlight for folded regions.
1714
+ * Defaults to true.
1715
+ */
1716
+ foldingHighlight?: boolean;
1717
+ /**
1718
+ * Auto fold imports folding regions.
1719
+ * Defaults to true.
1720
+ */
1721
+ foldingImportsByDefault?: boolean;
1722
+ /**
1723
+ * Maximum number of foldable regions.
1724
+ * Defaults to 5000.
1725
+ */
1726
+ foldingMaximumRegions?: number;
1727
+ /**
1728
+ * Controls whether the fold actions in the gutter stay always visible or hide unless the mouse is over the gutter.
1729
+ * Defaults to 'mouseover'.
1730
+ */
1731
+ showFoldingControls?: 'always' | 'never' | 'mouseover';
1732
+ /**
1733
+ * Controls whether clicking on the empty content after a folded line will unfold the line.
1734
+ * Defaults to false.
1735
+ */
1736
+ unfoldOnClickAfterEndOfLine?: boolean;
1737
+ /**
1738
+ * Enable highlighting of matching brackets.
1739
+ * Defaults to 'always'.
1740
+ */
1741
+ matchBrackets?: 'never' | 'near' | 'always';
1742
+ /**
1743
+ * Enable experimental whitespace rendering.
1744
+ * Defaults to 'svg'.
1745
+ */
1746
+ experimentalWhitespaceRendering?: 'svg' | 'font' | 'off';
1747
+ /**
1748
+ * Enable rendering of whitespace.
1749
+ * Defaults to 'selection'.
1750
+ */
1751
+ renderWhitespace?: 'none' | 'boundary' | 'selection' | 'trailing' | 'all';
1752
+ /**
1753
+ * Enable rendering of control characters.
1754
+ * Defaults to true.
1755
+ */
1756
+ renderControlCharacters?: boolean;
1757
+ /**
1758
+ * Enable rendering of current line highlight.
1759
+ * Defaults to all.
1760
+ */
1761
+ renderLineHighlight?: 'none' | 'gutter' | 'line' | 'all';
1762
+ /**
1763
+ * Control if the current line highlight should be rendered only the editor is focused.
1764
+ * Defaults to false.
1765
+ */
1766
+ renderLineHighlightOnlyWhenFocus?: boolean;
1767
+ /**
1768
+ * Inserting and deleting whitespace follows tab stops.
1769
+ */
1770
+ useTabStops?: boolean;
1771
+ /**
1772
+ * The font family
1773
+ */
1774
+ fontFamily?: string;
1775
+ /**
1776
+ * The font weight
1777
+ */
1778
+ fontWeight?: string;
1779
+ /**
1780
+ * The font size
1781
+ */
1782
+ fontSize?: number;
1783
+ /**
1784
+ * The line height
1785
+ */
1786
+ lineHeight?: number;
1787
+ /**
1788
+ * The letter spacing
1789
+ */
1790
+ letterSpacing?: number;
1791
+ /**
1792
+ * Controls fading out of unused variables.
1793
+ */
1794
+ showUnused?: boolean;
1795
+ /**
1796
+ * Controls whether to focus the inline editor in the peek widget by default.
1797
+ * Defaults to false.
1798
+ */
1799
+ peekWidgetDefaultFocus?: 'tree' | 'editor';
1800
+ /**
1801
+ * Controls whether the definition link opens element in the peek widget.
1802
+ * Defaults to false.
1803
+ */
1804
+ definitionLinkOpensInPeek?: boolean;
1805
+ /**
1806
+ * Controls strikethrough deprecated variables.
1807
+ */
1808
+ showDeprecated?: boolean;
1809
+ /**
1810
+ * Controls whether suggestions allow matches in the middle of the word instead of only at the beginning
1811
+ */
1812
+ matchOnWordStartOnly?: boolean;
1813
+ /**
1814
+ * Control the behavior and rendering of the inline hints.
1815
+ */
1816
+ inlayHints?: IEditorInlayHintsOptions;
1817
+ /**
1818
+ * Control if the editor should use shadow DOM.
1819
+ */
1820
+ useShadowDOM?: boolean;
1821
+ /**
1822
+ * Controls the behavior of editor guides.
1823
+ */
1824
+ guides?: IGuidesOptions;
1825
+ /**
1826
+ * Controls the behavior of the unicode highlight feature
1827
+ * (by default, ambiguous and invisible characters are highlighted).
1828
+ */
1829
+ unicodeHighlight?: IUnicodeHighlightOptions;
1830
+ /**
1831
+ * Configures bracket pair colorization (disabled by default).
1832
+ */
1833
+ bracketPairColorization?: IBracketPairColorizationOptions;
1834
+ /**
1835
+ * Controls dropping into the editor from an external source.
1836
+ *
1837
+ * When enabled, this shows a preview of the drop location and triggers an `onDropIntoEditor` event.
1838
+ */
1839
+ dropIntoEditor?: IDropIntoEditorOptions;
1840
+ /**
1841
+ * Controls whether the editor receives tabs or defers them to the workbench for navigation.
1842
+ */
1843
+ tabFocusMode?: boolean;
1844
+ }
1845
+ interface IDiffEditorBaseOptions {
1846
+ /**
1847
+ * Allow the user to resize the diff editor split view.
1848
+ * Defaults to true.
1849
+ */
1850
+ enableSplitViewResizing?: boolean;
1851
+ /**
1852
+ * The default ratio when rendering side-by-side editors.
1853
+ * Must be a number between 0 and 1, min sizes apply.
1854
+ * Defaults to 0.5
1855
+ */
1856
+ splitViewDefaultRatio?: number;
1857
+ /**
1858
+ * Render the differences in two side-by-side editors.
1859
+ * Defaults to true.
1860
+ */
1861
+ renderSideBySide?: boolean;
1862
+ /**
1863
+ * Timeout in milliseconds after which diff computation is cancelled.
1864
+ * Defaults to 5000.
1865
+ */
1866
+ maxComputationTime?: number;
1867
+ /**
1868
+ * Maximum supported file size in MB.
1869
+ * Defaults to 50.
1870
+ */
1871
+ maxFileSize?: number;
1872
+ /**
1873
+ * Compute the diff by ignoring leading/trailing whitespace
1874
+ * Defaults to true.
1875
+ */
1876
+ ignoreTrimWhitespace?: boolean;
1877
+ /**
1878
+ * Render +/- indicators for added/deleted changes.
1879
+ * Defaults to true.
1880
+ */
1881
+ renderIndicators?: boolean;
1882
+ /**
1883
+ * Shows icons in the glyph margin to revert changes.
1884
+ * Default to true.
1885
+ */
1886
+ renderMarginRevertIcon?: boolean;
1887
+ /**
1888
+ * Original model should be editable?
1889
+ * Defaults to false.
1890
+ */
1891
+ originalEditable?: boolean;
1892
+ /**
1893
+ * Should the diff editor enable code lens?
1894
+ * Defaults to false.
1895
+ */
1896
+ diffCodeLens?: boolean;
1897
+ /**
1898
+ * Is the diff editor should render overview ruler
1899
+ * Defaults to true
1900
+ */
1901
+ renderOverviewRuler?: boolean;
1902
+ /**
1903
+ * Control the wrapping of the diff editor.
1904
+ */
1905
+ diffWordWrap?: 'off' | 'on' | 'inherit';
1906
+ /**
1907
+ * Diff Algorithm
1908
+ */
1909
+ diffAlgorithm?: 'legacy' | 'advanced' | IDocumentDiffProvider;
1910
+ /**
1911
+ * Whether the diff editor aria label should be verbose.
1912
+ */
1913
+ accessibilityVerbose?: boolean;
1914
+ }
1915
+ /**
1916
+ * Configuration options for the diff editor.
1917
+ */
1918
+ interface IDiffEditorOptions extends IEditorOptions, IDiffEditorBaseOptions {
1919
+ }
1920
+ /**
1921
+ * Configuration options for editor comments
1922
+ */
1923
+ interface IEditorCommentsOptions {
1924
+ /**
1925
+ * Insert a space after the line comment token and inside the block comments tokens.
1926
+ * Defaults to true.
1927
+ */
1928
+ insertSpace?: boolean;
1929
+ /**
1930
+ * Ignore empty lines when inserting line comments.
1931
+ * Defaults to true.
1932
+ */
1933
+ ignoreEmptyLines?: boolean;
1934
+ }
1935
+ /**
1936
+ * Configuration options for editor find widget
1937
+ */
1938
+ interface IEditorFindOptions {
1939
+ /**
1940
+ * Controls whether the cursor should move to find matches while typing.
1941
+ */
1942
+ cursorMoveOnType?: boolean;
1943
+ /**
1944
+ * Controls if we seed search string in the Find Widget with editor selection.
1945
+ */
1946
+ seedSearchStringFromSelection?: 'never' | 'always' | 'selection';
1947
+ /**
1948
+ * Controls if Find in Selection flag is turned on in the editor.
1949
+ */
1950
+ autoFindInSelection?: 'never' | 'always' | 'multiline';
1951
+ addExtraSpaceOnTop?: boolean;
1952
+ /**
1953
+ * @internal
1954
+ * Controls if the Find Widget should read or modify the shared find clipboard on macOS
1955
+ */
1956
+ globalFindClipboard?: boolean;
1957
+ /**
1958
+ * Controls whether the search result and diff result automatically restarts from the beginning (or the end) when no further matches can be found
1959
+ */
1960
+ loop?: boolean;
1961
+ }
1962
+ type GoToLocationValues = 'peek' | 'gotoAndPeek' | 'goto';
1963
+ /**
1964
+ * Configuration options for go to location
1965
+ */
1966
+ interface IGotoLocationOptions {
1967
+ multiple?: GoToLocationValues;
1968
+ multipleDefinitions?: GoToLocationValues;
1969
+ multipleTypeDefinitions?: GoToLocationValues;
1970
+ multipleDeclarations?: GoToLocationValues;
1971
+ multipleImplementations?: GoToLocationValues;
1972
+ multipleReferences?: GoToLocationValues;
1973
+ alternativeDefinitionCommand?: string;
1974
+ alternativeTypeDefinitionCommand?: string;
1975
+ alternativeDeclarationCommand?: string;
1976
+ alternativeImplementationCommand?: string;
1977
+ alternativeReferenceCommand?: string;
1978
+ }
1979
+ /**
1980
+ * Configuration options for editor hover
1981
+ */
1982
+ interface IEditorHoverOptions {
1983
+ /**
1984
+ * Enable the hover.
1985
+ * Defaults to true.
1986
+ */
1987
+ enabled?: boolean;
1988
+ /**
1989
+ * Delay for showing the hover.
1990
+ * Defaults to 300.
1991
+ */
1992
+ delay?: number;
1993
+ /**
1994
+ * Is the hover sticky such that it can be clicked and its contents selected?
1995
+ * Defaults to true.
1996
+ */
1997
+ sticky?: boolean;
1998
+ /**
1999
+ * Should the hover be shown above the line if possible?
2000
+ * Defaults to false.
2001
+ */
2002
+ above?: boolean;
2003
+ }
2004
+ /**
2005
+ * Configuration options for editor lightbulb
2006
+ */
2007
+ interface IEditorLightbulbOptions {
2008
+ /**
2009
+ * Enable the lightbulb code action.
2010
+ * Defaults to true.
2011
+ */
2012
+ enabled?: boolean;
2013
+ }
2014
+ interface IEditorStickyScrollOptions {
2015
+ /**
2016
+ * Enable the sticky scroll
2017
+ */
2018
+ enabled?: boolean;
2019
+ /**
2020
+ * Maximum number of sticky lines to show
2021
+ */
2022
+ maxLineCount?: number;
2023
+ /**
2024
+ * Model to choose for sticky scroll by default
2025
+ */
2026
+ defaultModel?: 'outlineModel' | 'foldingProviderModel' | 'indentationModel';
2027
+ }
2028
+ /**
2029
+ * Configuration options for editor inlayHints
2030
+ */
2031
+ interface IEditorInlayHintsOptions {
2032
+ /**
2033
+ * Enable the inline hints.
2034
+ * Defaults to true.
2035
+ */
2036
+ enabled?: 'on' | 'off' | 'offUnlessPressed' | 'onUnlessPressed';
2037
+ /**
2038
+ * Font size of inline hints.
2039
+ * Default to 90% of the editor font size.
2040
+ */
2041
+ fontSize?: number;
2042
+ /**
2043
+ * Font family of inline hints.
2044
+ * Defaults to editor font family.
2045
+ */
2046
+ fontFamily?: string;
2047
+ /**
2048
+ * Enables the padding around the inlay hint.
2049
+ * Defaults to false.
2050
+ */
2051
+ padding?: boolean;
2052
+ }
2053
+ /**
2054
+ * Configuration options for editor minimap
2055
+ */
2056
+ interface IEditorMinimapOptions {
2057
+ /**
2058
+ * Enable the rendering of the minimap.
2059
+ * Defaults to true.
2060
+ */
2061
+ enabled?: boolean;
2062
+ /**
2063
+ * Control the rendering of minimap.
2064
+ */
2065
+ autohide?: boolean;
2066
+ /**
2067
+ * Control the side of the minimap in editor.
2068
+ * Defaults to 'right'.
2069
+ */
2070
+ side?: 'right' | 'left';
2071
+ /**
2072
+ * Control the minimap rendering mode.
2073
+ * Defaults to 'actual'.
2074
+ */
2075
+ size?: 'proportional' | 'fill' | 'fit';
2076
+ /**
2077
+ * Control the rendering of the minimap slider.
2078
+ * Defaults to 'mouseover'.
2079
+ */
2080
+ showSlider?: 'always' | 'mouseover';
2081
+ /**
2082
+ * Render the actual text on a line (as opposed to color blocks).
2083
+ * Defaults to true.
2084
+ */
2085
+ renderCharacters?: boolean;
2086
+ /**
2087
+ * Limit the width of the minimap to render at most a certain number of columns.
2088
+ * Defaults to 120.
2089
+ */
2090
+ maxColumn?: number;
2091
+ /**
2092
+ * Relative size of the font in the minimap. Defaults to 1.
2093
+ */
2094
+ scale?: number;
2095
+ }
2096
+ /**
2097
+ * Configuration options for editor padding
2098
+ */
2099
+ interface IEditorPaddingOptions {
2100
+ /**
2101
+ * Spacing between top edge of editor and first line.
2102
+ */
2103
+ top?: number;
2104
+ /**
2105
+ * Spacing between bottom edge of editor and last line.
2106
+ */
2107
+ bottom?: number;
2108
+ }
2109
+ /**
2110
+ * Configuration options for parameter hints
2111
+ */
2112
+ interface IEditorParameterHintOptions {
2113
+ /**
2114
+ * Enable parameter hints.
2115
+ * Defaults to true.
2116
+ */
2117
+ enabled?: boolean;
2118
+ /**
2119
+ * Enable cycling of parameter hints.
2120
+ * Defaults to false.
2121
+ */
2122
+ cycle?: boolean;
2123
+ }
2124
+ type QuickSuggestionsValue = 'on' | 'inline' | 'off';
2125
+ /**
2126
+ * Configuration options for quick suggestions
2127
+ */
2128
+ interface IQuickSuggestionsOptions {
2129
+ other?: boolean | QuickSuggestionsValue;
2130
+ comments?: boolean | QuickSuggestionsValue;
2131
+ strings?: boolean | QuickSuggestionsValue;
2132
+ }
2133
+ type LineNumbersType = 'on' | 'off' | 'relative' | 'interval' | ((lineNumber: number) => string);
2134
+ interface IRulerOption {
2135
+ readonly column: number;
2136
+ readonly color: string | null;
2137
+ }
2138
+ /**
2139
+ * Configuration options for editor scrollbars
2140
+ */
2141
+ interface IEditorScrollbarOptions {
2142
+ /**
2143
+ * The size of arrows (if displayed).
2144
+ * Defaults to 11.
2145
+ * **NOTE**: This option cannot be updated using `updateOptions()`
2146
+ */
2147
+ arrowSize?: number;
2148
+ /**
2149
+ * Render vertical scrollbar.
2150
+ * Defaults to 'auto'.
2151
+ */
2152
+ vertical?: 'auto' | 'visible' | 'hidden';
2153
+ /**
2154
+ * Render horizontal scrollbar.
2155
+ * Defaults to 'auto'.
2156
+ */
2157
+ horizontal?: 'auto' | 'visible' | 'hidden';
2158
+ /**
2159
+ * Cast horizontal and vertical shadows when the content is scrolled.
2160
+ * Defaults to true.
2161
+ * **NOTE**: This option cannot be updated using `updateOptions()`
2162
+ */
2163
+ useShadows?: boolean;
2164
+ /**
2165
+ * Render arrows at the top and bottom of the vertical scrollbar.
2166
+ * Defaults to false.
2167
+ * **NOTE**: This option cannot be updated using `updateOptions()`
2168
+ */
2169
+ verticalHasArrows?: boolean;
2170
+ /**
2171
+ * Render arrows at the left and right of the horizontal scrollbar.
2172
+ * Defaults to false.
2173
+ * **NOTE**: This option cannot be updated using `updateOptions()`
2174
+ */
2175
+ horizontalHasArrows?: boolean;
2176
+ /**
2177
+ * Listen to mouse wheel events and react to them by scrolling.
2178
+ * Defaults to true.
2179
+ */
2180
+ handleMouseWheel?: boolean;
2181
+ /**
2182
+ * Always consume mouse wheel events (always call preventDefault() and stopPropagation() on the browser events).
2183
+ * Defaults to true.
2184
+ * **NOTE**: This option cannot be updated using `updateOptions()`
2185
+ */
2186
+ alwaysConsumeMouseWheel?: boolean;
2187
+ /**
2188
+ * Height in pixels for the horizontal scrollbar.
2189
+ * Defaults to 10 (px).
2190
+ */
2191
+ horizontalScrollbarSize?: number;
2192
+ /**
2193
+ * Width in pixels for the vertical scrollbar.
2194
+ * Defaults to 10 (px).
2195
+ */
2196
+ verticalScrollbarSize?: number;
2197
+ /**
2198
+ * Width in pixels for the vertical slider.
2199
+ * Defaults to `verticalScrollbarSize`.
2200
+ * **NOTE**: This option cannot be updated using `updateOptions()`
2201
+ */
2202
+ verticalSliderSize?: number;
2203
+ /**
2204
+ * Height in pixels for the horizontal slider.
2205
+ * Defaults to `horizontalScrollbarSize`.
2206
+ * **NOTE**: This option cannot be updated using `updateOptions()`
2207
+ */
2208
+ horizontalSliderSize?: number;
2209
+ /**
2210
+ * Scroll gutter clicks move by page vs jump to position.
2211
+ * Defaults to false.
2212
+ */
2213
+ scrollByPage?: boolean;
2214
+ }
2215
+ type InUntrustedWorkspace = 'inUntrustedWorkspace';
2216
+ /**
2217
+ * Configuration options for unicode highlighting.
2218
+ */
2219
+ interface IUnicodeHighlightOptions {
2220
+ /**
2221
+ * Controls whether all non-basic ASCII characters are highlighted. Only characters between U+0020 and U+007E, tab, line-feed and carriage-return are considered basic ASCII.
2222
+ */
2223
+ nonBasicASCII?: boolean | InUntrustedWorkspace;
2224
+ /**
2225
+ * Controls whether characters that just reserve space or have no width at all are highlighted.
2226
+ */
2227
+ invisibleCharacters?: boolean;
2228
+ /**
2229
+ * Controls whether characters are highlighted that can be confused with basic ASCII characters, except those that are common in the current user locale.
2230
+ */
2231
+ ambiguousCharacters?: boolean;
2232
+ /**
2233
+ * Controls whether characters in comments should also be subject to unicode highlighting.
2234
+ */
2235
+ includeComments?: boolean | InUntrustedWorkspace;
2236
+ /**
2237
+ * Controls whether characters in strings should also be subject to unicode highlighting.
2238
+ */
2239
+ includeStrings?: boolean | InUntrustedWorkspace;
2240
+ /**
2241
+ * Defines allowed characters that are not being highlighted.
2242
+ */
2243
+ allowedCharacters?: Record<string, true>;
2244
+ /**
2245
+ * Unicode characters that are common in allowed locales are not being highlighted.
2246
+ */
2247
+ allowedLocales?: Record<string | '_os' | '_vscode', true>;
2248
+ }
2249
+ interface IInlineSuggestOptions {
2250
+ /**
2251
+ * Enable or disable the rendering of automatic inline completions.
2252
+ */
2253
+ enabled?: boolean;
2254
+ /**
2255
+ * Configures the mode.
2256
+ * Use `prefix` to only show ghost text if the text to replace is a prefix of the suggestion text.
2257
+ * Use `subword` to only show ghost text if the replace text is a subword of the suggestion text.
2258
+ * Use `subwordSmart` to only show ghost text if the replace text is a subword of the suggestion text, but the subword must start after the cursor position.
2259
+ * Defaults to `prefix`.
2260
+ */
2261
+ mode?: 'prefix' | 'subword' | 'subwordSmart';
2262
+ showToolbar?: 'always' | 'onHover';
2263
+ suppressSuggestions?: boolean;
2264
+ /**
2265
+ * Does not clear active inline suggestions when the editor loses focus.
2266
+ */
2267
+ keepOnBlur?: boolean;
2268
+ }
2269
+ interface IBracketPairColorizationOptions {
2270
+ /**
2271
+ * Enable or disable bracket pair colorization.
2272
+ */
2273
+ enabled?: boolean;
2274
+ /**
2275
+ * Use independent color pool per bracket type.
2276
+ */
2277
+ independentColorPoolPerBracketType?: boolean;
2278
+ }
2279
+ interface IGuidesOptions {
2280
+ /**
2281
+ * Enable rendering of bracket pair guides.
2282
+ * Defaults to false.
2283
+ */
2284
+ bracketPairs?: boolean | 'active';
2285
+ /**
2286
+ * Enable rendering of vertical bracket pair guides.
2287
+ * Defaults to 'active'.
2288
+ */
2289
+ bracketPairsHorizontal?: boolean | 'active';
2290
+ /**
2291
+ * Enable highlighting of the active bracket pair.
2292
+ * Defaults to true.
2293
+ */
2294
+ highlightActiveBracketPair?: boolean;
2295
+ /**
2296
+ * Enable rendering of indent guides.
2297
+ * Defaults to true.
2298
+ */
2299
+ indentation?: boolean;
2300
+ /**
2301
+ * Enable highlighting of the active indent guide.
2302
+ * Defaults to true.
2303
+ */
2304
+ highlightActiveIndentation?: boolean | 'always';
2305
+ }
2306
+ /**
2307
+ * Configuration options for editor suggest widget
2308
+ */
2309
+ interface ISuggestOptions {
2310
+ /**
2311
+ * Overwrite word ends on accept. Default to false.
2312
+ */
2313
+ insertMode?: 'insert' | 'replace';
2314
+ /**
2315
+ * Enable graceful matching. Defaults to true.
2316
+ */
2317
+ filterGraceful?: boolean;
2318
+ /**
2319
+ * Prevent quick suggestions when a snippet is active. Defaults to true.
2320
+ */
2321
+ snippetsPreventQuickSuggestions?: boolean;
2322
+ /**
2323
+ * Favors words that appear close to the cursor.
2324
+ */
2325
+ localityBonus?: boolean;
2326
+ /**
2327
+ * Enable using global storage for remembering suggestions.
2328
+ */
2329
+ shareSuggestSelections?: boolean;
2330
+ /**
2331
+ * Select suggestions when triggered via quick suggest or trigger characters
2332
+ */
2333
+ selectionMode?: 'always' | 'never' | 'whenTriggerCharacter' | 'whenQuickSuggestion';
2334
+ /**
2335
+ * Enable or disable icons in suggestions. Defaults to true.
2336
+ */
2337
+ showIcons?: boolean;
2338
+ /**
2339
+ * Enable or disable the suggest status bar.
2340
+ */
2341
+ showStatusBar?: boolean;
2342
+ /**
2343
+ * Enable or disable the rendering of the suggestion preview.
2344
+ */
2345
+ preview?: boolean;
2346
+ /**
2347
+ * Configures the mode of the preview.
2348
+ */
2349
+ previewMode?: 'prefix' | 'subword' | 'subwordSmart';
2350
+ /**
2351
+ * Show details inline with the label. Defaults to true.
2352
+ */
2353
+ showInlineDetails?: boolean;
2354
+ /**
2355
+ * Show method-suggestions.
2356
+ */
2357
+ showMethods?: boolean;
2358
+ /**
2359
+ * Show function-suggestions.
2360
+ */
2361
+ showFunctions?: boolean;
2362
+ /**
2363
+ * Show constructor-suggestions.
2364
+ */
2365
+ showConstructors?: boolean;
2366
+ /**
2367
+ * Show deprecated-suggestions.
2368
+ */
2369
+ showDeprecated?: boolean;
2370
+ /**
2371
+ * Controls whether suggestions allow matches in the middle of the word instead of only at the beginning
2372
+ */
2373
+ matchOnWordStartOnly?: boolean;
2374
+ /**
2375
+ * Show field-suggestions.
2376
+ */
2377
+ showFields?: boolean;
2378
+ /**
2379
+ * Show variable-suggestions.
2380
+ */
2381
+ showVariables?: boolean;
2382
+ /**
2383
+ * Show class-suggestions.
2384
+ */
2385
+ showClasses?: boolean;
2386
+ /**
2387
+ * Show struct-suggestions.
2388
+ */
2389
+ showStructs?: boolean;
2390
+ /**
2391
+ * Show interface-suggestions.
2392
+ */
2393
+ showInterfaces?: boolean;
2394
+ /**
2395
+ * Show module-suggestions.
2396
+ */
2397
+ showModules?: boolean;
2398
+ /**
2399
+ * Show property-suggestions.
2400
+ */
2401
+ showProperties?: boolean;
2402
+ /**
2403
+ * Show event-suggestions.
2404
+ */
2405
+ showEvents?: boolean;
2406
+ /**
2407
+ * Show operator-suggestions.
2408
+ */
2409
+ showOperators?: boolean;
2410
+ /**
2411
+ * Show unit-suggestions.
2412
+ */
2413
+ showUnits?: boolean;
2414
+ /**
2415
+ * Show value-suggestions.
2416
+ */
2417
+ showValues?: boolean;
2418
+ /**
2419
+ * Show constant-suggestions.
2420
+ */
2421
+ showConstants?: boolean;
2422
+ /**
2423
+ * Show enum-suggestions.
2424
+ */
2425
+ showEnums?: boolean;
2426
+ /**
2427
+ * Show enumMember-suggestions.
2428
+ */
2429
+ showEnumMembers?: boolean;
2430
+ /**
2431
+ * Show keyword-suggestions.
2432
+ */
2433
+ showKeywords?: boolean;
2434
+ /**
2435
+ * Show text-suggestions.
2436
+ */
2437
+ showWords?: boolean;
2438
+ /**
2439
+ * Show color-suggestions.
2440
+ */
2441
+ showColors?: boolean;
2442
+ /**
2443
+ * Show file-suggestions.
2444
+ */
2445
+ showFiles?: boolean;
2446
+ /**
2447
+ * Show reference-suggestions.
2448
+ */
2449
+ showReferences?: boolean;
2450
+ /**
2451
+ * Show folder-suggestions.
2452
+ */
2453
+ showFolders?: boolean;
2454
+ /**
2455
+ * Show typeParameter-suggestions.
2456
+ */
2457
+ showTypeParameters?: boolean;
2458
+ /**
2459
+ * Show issue-suggestions.
2460
+ */
2461
+ showIssues?: boolean;
2462
+ /**
2463
+ * Show user-suggestions.
2464
+ */
2465
+ showUsers?: boolean;
2466
+ /**
2467
+ * Show snippet-suggestions.
2468
+ */
2469
+ showSnippets?: boolean;
2470
+ }
2471
+ interface ISmartSelectOptions {
2472
+ selectLeadingAndTrailingWhitespace?: boolean;
2473
+ }
2474
+ /**
2475
+ * Configuration options for editor drop into behavior
2476
+ */
2477
+ interface IDropIntoEditorOptions {
2478
+ /**
2479
+ * Enable dropping into editor.
2480
+ * Defaults to true.
2481
+ */
2482
+ enabled?: boolean;
2483
+ /**
2484
+ * Controls if a widget is shown after a drop.
2485
+ * Defaults to 'afterDrop'.
2486
+ */
2487
+ showDropSelector?: 'afterDrop' | 'never';
2488
+ }
2489
+
2490
+ interface IDiffComputationResult {
2491
+ quitEarly: boolean;
2492
+ identical: boolean;
2493
+ /**
2494
+ * The changes as (legacy) line change array.
2495
+ */
2496
+ changes: ILineChange[];
2497
+ /**
2498
+ * The changes as (modern) line range mapping array.
2499
+ */
2500
+ changes2: LineRangeMapping[];
2501
+ }
2502
+ /**
2503
+ * A change
2504
+ */
2505
+ interface IChange {
2506
+ readonly originalStartLineNumber: number;
2507
+ readonly originalEndLineNumber: number;
2508
+ readonly modifiedStartLineNumber: number;
2509
+ readonly modifiedEndLineNumber: number;
2510
+ }
2511
+ /**
2512
+ * A character level change.
2513
+ */
2514
+ interface ICharChange extends IChange {
2515
+ readonly originalStartColumn: number;
2516
+ readonly originalEndColumn: number;
2517
+ readonly modifiedStartColumn: number;
2518
+ readonly modifiedEndColumn: number;
2519
+ }
2520
+ /**
2521
+ * A line change
2522
+ */
2523
+ interface ILineChange extends IChange {
2524
+ readonly charChanges: ICharChange[] | undefined;
2525
+ }
2526
+
2527
+ interface IDimension {
2528
+ width: number;
2529
+ height: number;
2530
+ }
2531
+
2532
+ /**
2533
+ * A model for the diff editor.
2534
+ */
2535
+ interface IDiffEditorModel {
2536
+ /**
2537
+ * Original model.
2538
+ */
2539
+ original: ITextModel;
2540
+ /**
2541
+ * Modified model.
2542
+ */
2543
+ modified: ITextModel;
2544
+ }
2545
+ interface IEditorAction {
2546
+ readonly id: string;
2547
+ readonly label: string;
2548
+ readonly alias: string;
2549
+ isSupported(): boolean;
2550
+ run(args?: unknown): Promise<void>;
2551
+ }
2552
+ type IEditorModel = ITextModel | IDiffEditorModel;
2553
+ /**
2554
+ * A (serializable) state of the cursors.
2555
+ */
2556
+ interface ICursorState {
2557
+ inSelectionMode: boolean;
2558
+ selectionStart: IPosition;
2559
+ position: IPosition;
2560
+ }
2561
+ /**
2562
+ * A (serializable) state of the view.
2563
+ */
2564
+ interface IViewState {
2565
+ /** written by previous versions */
2566
+ scrollTop?: number;
2567
+ /** written by previous versions */
2568
+ scrollTopWithoutViewZones?: number;
2569
+ scrollLeft: number;
2570
+ firstPosition: IPosition;
2571
+ firstPositionDeltaTop: number;
2572
+ }
2573
+ /**
2574
+ * A (serializable) state of the code editor.
2575
+ */
2576
+ interface ICodeEditorViewState {
2577
+ cursorState: ICursorState[];
2578
+ viewState: IViewState;
2579
+ contributionsState: {
2580
+ [id: string]: any;
2581
+ };
2582
+ }
2583
+ /**
2584
+ * (Serializable) View state for the diff editor.
2585
+ */
2586
+ interface IDiffEditorViewState {
2587
+ original: ICodeEditorViewState | null;
2588
+ modified: ICodeEditorViewState | null;
2589
+ }
2590
+ /**
2591
+ * An editor view state.
2592
+ */
2593
+ type IEditorViewState = ICodeEditorViewState | IDiffEditorViewState;
2594
+ declare const enum ScrollType {
2595
+ Smooth = 0,
2596
+ Immediate = 1
2597
+ }
2598
+ /**
2599
+ * An editor.
2600
+ */
2601
+ interface IEditor {
2602
+ /**
2603
+ * An event emitted when the editor has been disposed.
2604
+ * @event
2605
+ */
2606
+ onDidDispose(listener: () => void): IDisposable;
2607
+ /**
2608
+ * Dispose the editor.
2609
+ */
2610
+ dispose(): void;
2611
+ /**
2612
+ * Get a unique id for this editor instance.
2613
+ */
2614
+ getId(): string;
2615
+ /**
2616
+ * Get the editor type. Please see `EditorType`.
2617
+ * This is to avoid an instanceof check
2618
+ */
2619
+ getEditorType(): string;
2620
+ /**
2621
+ * Update the editor's options after the editor has been created.
2622
+ */
2623
+ updateOptions(newOptions: IEditorOptions): void;
2624
+ /**
2625
+ * Indicates that the editor becomes visible.
2626
+ * @internal
2627
+ */
2628
+ onVisible(): void;
2629
+ /**
2630
+ * Indicates that the editor becomes hidden.
2631
+ * @internal
2632
+ */
2633
+ onHide(): void;
2634
+ /**
2635
+ * Instructs the editor to remeasure its container. This method should
2636
+ * be called when the container of the editor gets resized.
2637
+ *
2638
+ * If a dimension is passed in, the passed in value will be used.
2639
+ */
2640
+ layout(dimension?: IDimension): void;
2641
+ /**
2642
+ * Brings browser focus to the editor text
2643
+ */
2644
+ focus(): void;
2645
+ /**
2646
+ * Returns true if the text inside this editor is focused (i.e. cursor is blinking).
2647
+ */
2648
+ hasTextFocus(): boolean;
2649
+ /**
2650
+ * Returns all actions associated with this editor.
2651
+ */
2652
+ getSupportedActions(): IEditorAction[];
2653
+ /**
2654
+ * Saves current view state of the editor in a serializable object.
2655
+ */
2656
+ saveViewState(): IEditorViewState | null;
2657
+ /**
2658
+ * Restores the view state of the editor from a serializable object generated by `saveViewState`.
2659
+ */
2660
+ restoreViewState(state: IEditorViewState | null): void;
2661
+ /**
2662
+ * Given a position, returns a column number that takes tab-widths into account.
2663
+ */
2664
+ getVisibleColumnFromPosition(position: IPosition): number;
2665
+ /**
2666
+ * Given a position, returns a column number that takes tab-widths into account.
2667
+ * @internal
2668
+ */
2669
+ getStatusbarColumn(position: IPosition): number;
2670
+ /**
2671
+ * Returns the primary position of the cursor.
2672
+ */
2673
+ getPosition(): Position | null;
2674
+ /**
2675
+ * Set the primary position of the cursor. This will remove any secondary cursors.
2676
+ * @param position New primary cursor's position
2677
+ * @param source Source of the call that caused the position
2678
+ */
2679
+ setPosition(position: IPosition, source?: string): void;
2680
+ /**
2681
+ * Scroll vertically as necessary and reveal a line.
2682
+ */
2683
+ revealLine(lineNumber: number, scrollType?: ScrollType): void;
2684
+ /**
2685
+ * Scroll vertically as necessary and reveal a line centered vertically.
2686
+ */
2687
+ revealLineInCenter(lineNumber: number, scrollType?: ScrollType): void;
2688
+ /**
2689
+ * Scroll vertically as necessary and reveal a line centered vertically only if it lies outside the viewport.
2690
+ */
2691
+ revealLineInCenterIfOutsideViewport(lineNumber: number, scrollType?: ScrollType): void;
2692
+ /**
2693
+ * Scroll vertically as necessary and reveal a line close to the top of the viewport,
2694
+ * optimized for viewing a code definition.
2695
+ */
2696
+ revealLineNearTop(lineNumber: number, scrollType?: ScrollType): void;
2697
+ /**
2698
+ * Scroll vertically or horizontally as necessary and reveal a position.
2699
+ */
2700
+ revealPosition(position: IPosition, scrollType?: ScrollType): void;
2701
+ /**
2702
+ * Scroll vertically or horizontally as necessary and reveal a position centered vertically.
2703
+ */
2704
+ revealPositionInCenter(position: IPosition, scrollType?: ScrollType): void;
2705
+ /**
2706
+ * Scroll vertically or horizontally as necessary and reveal a position centered vertically only if it lies outside the viewport.
2707
+ */
2708
+ revealPositionInCenterIfOutsideViewport(position: IPosition, scrollType?: ScrollType): void;
2709
+ /**
2710
+ * Scroll vertically or horizontally as necessary and reveal a position close to the top of the viewport,
2711
+ * optimized for viewing a code definition.
2712
+ */
2713
+ revealPositionNearTop(position: IPosition, scrollType?: ScrollType): void;
2714
+ /**
2715
+ * Returns the primary selection of the editor.
2716
+ */
2717
+ getSelection(): Selection | null;
2718
+ /**
2719
+ * Returns all the selections of the editor.
2720
+ */
2721
+ getSelections(): Selection[] | null;
2722
+ /**
2723
+ * Set the primary selection of the editor. This will remove any secondary cursors.
2724
+ * @param selection The new selection
2725
+ * @param source Source of the call that caused the selection
2726
+ */
2727
+ setSelection(selection: IRange, source?: string): void;
2728
+ /**
2729
+ * Set the primary selection of the editor. This will remove any secondary cursors.
2730
+ * @param selection The new selection
2731
+ * @param source Source of the call that caused the selection
2732
+ */
2733
+ setSelection(selection: Range, source?: string): void;
2734
+ /**
2735
+ * Set the primary selection of the editor. This will remove any secondary cursors.
2736
+ * @param selection The new selection
2737
+ * @param source Source of the call that caused the selection
2738
+ */
2739
+ setSelection(selection: ISelection, source?: string): void;
2740
+ /**
2741
+ * Set the primary selection of the editor. This will remove any secondary cursors.
2742
+ * @param selection The new selection
2743
+ * @param source Source of the call that caused the selection
2744
+ */
2745
+ setSelection(selection: Selection, source?: string): void;
2746
+ /**
2747
+ * Set the selections for all the cursors of the editor.
2748
+ * Cursors will be removed or added, as necessary.
2749
+ * @param selections The new selection
2750
+ * @param source Source of the call that caused the selection
2751
+ */
2752
+ setSelections(selections: readonly ISelection[], source?: string): void;
2753
+ /**
2754
+ * Scroll vertically as necessary and reveal lines.
2755
+ */
2756
+ revealLines(startLineNumber: number, endLineNumber: number, scrollType?: ScrollType): void;
2757
+ /**
2758
+ * Scroll vertically as necessary and reveal lines centered vertically.
2759
+ */
2760
+ revealLinesInCenter(lineNumber: number, endLineNumber: number, scrollType?: ScrollType): void;
2761
+ /**
2762
+ * Scroll vertically as necessary and reveal lines centered vertically only if it lies outside the viewport.
2763
+ */
2764
+ revealLinesInCenterIfOutsideViewport(lineNumber: number, endLineNumber: number, scrollType?: ScrollType): void;
2765
+ /**
2766
+ * Scroll vertically as necessary and reveal lines close to the top of the viewport,
2767
+ * optimized for viewing a code definition.
2768
+ */
2769
+ revealLinesNearTop(lineNumber: number, endLineNumber: number, scrollType?: ScrollType): void;
2770
+ /**
2771
+ * Scroll vertically or horizontally as necessary and reveal a range.
2772
+ */
2773
+ revealRange(range: IRange, scrollType?: ScrollType): void;
2774
+ /**
2775
+ * Scroll vertically or horizontally as necessary and reveal a range centered vertically.
2776
+ */
2777
+ revealRangeInCenter(range: IRange, scrollType?: ScrollType): void;
2778
+ /**
2779
+ * Scroll vertically or horizontally as necessary and reveal a range at the top of the viewport.
2780
+ */
2781
+ revealRangeAtTop(range: IRange, scrollType?: ScrollType): void;
2782
+ /**
2783
+ * Scroll vertically or horizontally as necessary and reveal a range centered vertically only if it lies outside the viewport.
2784
+ */
2785
+ revealRangeInCenterIfOutsideViewport(range: IRange, scrollType?: ScrollType): void;
2786
+ /**
2787
+ * Scroll vertically or horizontally as necessary and reveal a range close to the top of the viewport,
2788
+ * optimized for viewing a code definition.
2789
+ */
2790
+ revealRangeNearTop(range: IRange, scrollType?: ScrollType): void;
2791
+ /**
2792
+ * Scroll vertically or horizontally as necessary and reveal a range close to the top of the viewport,
2793
+ * optimized for viewing a code definition. Only if it lies outside the viewport.
2794
+ */
2795
+ revealRangeNearTopIfOutsideViewport(range: IRange, scrollType?: ScrollType): void;
2796
+ /**
2797
+ * Directly trigger a handler or an editor action.
2798
+ * @param source The source of the call.
2799
+ * @param handlerId The id of the handler or the id of a contribution.
2800
+ * @param payload Extra data to be sent to the handler.
2801
+ */
2802
+ trigger(source: string | null | undefined, handlerId: string, payload: any): void;
2803
+ /**
2804
+ * Gets the current model attached to this editor.
2805
+ */
2806
+ getModel(): IEditorModel | null;
2807
+ /**
2808
+ * Sets the current model attached to this editor.
2809
+ * If the previous model was created by the editor via the value key in the options
2810
+ * literal object, it will be destroyed. Otherwise, if the previous model was set
2811
+ * via setModel, or the model key in the options literal object, the previous model
2812
+ * will not be destroyed.
2813
+ * It is safe to call setModel(null) to simply detach the current model from the editor.
2814
+ */
2815
+ setModel(model: IEditorModel | null): void;
2816
+ /**
2817
+ * Create a collection of decorations. All decorations added through this collection
2818
+ * will get the ownerId of the editor (meaning they will not show up in other editors).
2819
+ * These decorations will be automatically cleared when the editor's model changes.
2820
+ */
2821
+ createDecorationsCollection(decorations?: IModelDeltaDecoration[]): IEditorDecorationsCollection;
2822
+ /**
2823
+ * Change the decorations. All decorations added through this changeAccessor
2824
+ * will get the ownerId of the editor (meaning they will not show up in other
2825
+ * editors).
2826
+ * @see {@link ITextModel.changeDecorations}
2827
+ * @internal
2828
+ */
2829
+ changeDecorations(callback: (changeAccessor: IModelDecorationsChangeAccessor) => any): any;
2830
+ }
2831
+ /**
2832
+ * A diff editor.
2833
+ *
2834
+ * @internal
2835
+ */
2836
+ interface IDiffEditor$1 extends IEditor {
2837
+ /**
2838
+ * Type the getModel() of IEditor.
2839
+ */
2840
+ getModel(): IDiffEditorModel | null;
2841
+ /**
2842
+ * Get the `original` editor.
2843
+ */
2844
+ getOriginalEditor(): IEditor;
2845
+ /**
2846
+ * Get the `modified` editor.
2847
+ */
2848
+ getModifiedEditor(): IEditor;
2849
+ }
2850
+ /**
2851
+ * A collection of decorations
2852
+ */
2853
+ interface IEditorDecorationsCollection {
2854
+ /**
2855
+ * An event emitted when decorations change in the editor,
2856
+ * but the change is not caused by us setting or clearing the collection.
2857
+ */
2858
+ onDidChange: Event<IModelDecorationsChangedEvent>;
2859
+ /**
2860
+ * Get the decorations count.
2861
+ */
2862
+ length: number;
2863
+ /**
2864
+ * Get the range for a decoration.
2865
+ */
2866
+ getRange(index: number): Range | null;
2867
+ /**
2868
+ * Get all ranges for decorations.
2869
+ */
2870
+ getRanges(): Range[];
2871
+ /**
2872
+ * Determine if a decoration is in this collection.
2873
+ */
2874
+ has(decoration: IModelDecoration): boolean;
2875
+ /**
2876
+ * Replace all previous decorations with `newDecorations`.
2877
+ */
2878
+ set(newDecorations: readonly IModelDeltaDecoration[]): string[];
2879
+ /**
2880
+ * Remove all previous decorations.
2881
+ */
2882
+ clear(): void;
2883
+ }
2884
+ /**
2885
+ * An editor contribution that gets created every time a new editor gets created and gets disposed when the editor gets disposed.
2886
+ */
2887
+ interface IEditorContribution {
2888
+ /**
2889
+ * Dispose this contribution.
2890
+ */
2891
+ dispose(): void;
2892
+ /**
2893
+ * Store view state.
2894
+ */
2895
+ saveViewState?(): any;
2896
+ /**
2897
+ * Restore view state.
2898
+ */
2899
+ restoreViewState?(state: any): void;
2900
+ }
2901
+ /**
2902
+ * @internal
2903
+ */
2904
+ interface IThemeDecorationRenderOptions {
2905
+ backgroundColor?: string | ThemeColor;
2906
+ outline?: string;
2907
+ outlineColor?: string | ThemeColor;
2908
+ outlineStyle?: string;
2909
+ outlineWidth?: string;
2910
+ border?: string;
2911
+ borderColor?: string | ThemeColor;
2912
+ borderRadius?: string;
2913
+ borderSpacing?: string;
2914
+ borderStyle?: string;
2915
+ borderWidth?: string;
2916
+ fontStyle?: string;
2917
+ fontWeight?: string;
2918
+ fontSize?: string;
2919
+ textDecoration?: string;
2920
+ cursor?: string;
2921
+ color?: string | ThemeColor;
2922
+ opacity?: string;
2923
+ letterSpacing?: string;
2924
+ gutterIconPath?: UriComponents;
2925
+ gutterIconSize?: string;
2926
+ overviewRulerColor?: string | ThemeColor;
2927
+ /**
2928
+ * @deprecated
2929
+ */
2930
+ before?: IContentDecorationRenderOptions;
2931
+ /**
2932
+ * @deprecated
2933
+ */
2934
+ after?: IContentDecorationRenderOptions;
2935
+ /**
2936
+ * @deprecated
2937
+ */
2938
+ beforeInjectedText?: IContentDecorationRenderOptions & {
2939
+ affectsLetterSpacing?: boolean;
2940
+ };
2941
+ /**
2942
+ * @deprecated
2943
+ */
2944
+ afterInjectedText?: IContentDecorationRenderOptions & {
2945
+ affectsLetterSpacing?: boolean;
2946
+ };
2947
+ }
2948
+ /**
2949
+ * @internal
2950
+ */
2951
+ interface IContentDecorationRenderOptions {
2952
+ contentText?: string;
2953
+ contentIconPath?: UriComponents;
2954
+ border?: string;
2955
+ borderColor?: string | ThemeColor;
2956
+ borderRadius?: string;
2957
+ fontStyle?: string;
2958
+ fontWeight?: string;
2959
+ fontSize?: string;
2960
+ fontFamily?: string;
2961
+ textDecoration?: string;
2962
+ color?: string | ThemeColor;
2963
+ backgroundColor?: string | ThemeColor;
2964
+ opacity?: string;
2965
+ verticalAlign?: string;
2966
+ margin?: string;
2967
+ padding?: string;
2968
+ width?: string;
2969
+ height?: string;
2970
+ }
2971
+ /**
2972
+ * @internal
2973
+ */
2974
+ interface IDecorationRenderOptions extends IThemeDecorationRenderOptions {
2975
+ isWholeLine?: boolean;
2976
+ rangeBehavior?: TrackedRangeStickiness;
2977
+ overviewRulerLane?: OverviewRulerLane;
2978
+ light?: IThemeDecorationRenderOptions;
2979
+ dark?: IThemeDecorationRenderOptions;
2980
+ }
2981
+
2982
+ declare const ITextModelService: ServiceIdentifier<ITextModelService>;
2983
+ interface ITextModelService {
2984
+ readonly _serviceBrand: undefined;
2985
+ /**
2986
+ * Provided a resource URI, it will return a model reference
2987
+ * which should be disposed once not needed anymore.
2988
+ */
2989
+ createModelReference(resource: URI): Promise<IReference<IResolvedTextEditorModel>>;
2990
+ /**
2991
+ * Registers a specific `scheme` content provider.
2992
+ */
2993
+ registerTextModelContentProvider(scheme: string, provider: ITextModelContentProvider): IDisposable;
2994
+ /**
2995
+ * Check if the given resource can be resolved to a text model.
2996
+ */
2997
+ canHandleResource(resource: URI): boolean;
2998
+ }
2999
+ interface ITextModelContentProvider {
3000
+ /**
3001
+ * Given a resource, return the content of the resource as `ITextModel`.
3002
+ */
3003
+ provideTextContent(resource: URI): Promise<ITextModel | null> | null;
3004
+ }
3005
+ interface ITextEditorModel extends IEditorModel$1 {
3006
+ /**
3007
+ * Provides access to the underlying `ITextModel`.
3008
+ */
3009
+ readonly textEditorModel: ITextModel | null;
3010
+ /**
3011
+ * Creates a snapshot of the model's contents.
3012
+ */
3013
+ createSnapshot(this: IResolvedTextEditorModel): ITextSnapshot;
3014
+ createSnapshot(this: ITextEditorModel): ITextSnapshot | null;
3015
+ /**
3016
+ * Signals if this model is readonly or not.
3017
+ */
3018
+ isReadonly(): boolean;
3019
+ /**
3020
+ * The language id of the text model if known.
3021
+ */
3022
+ getLanguageId(): string | undefined;
3023
+ }
3024
+ interface IResolvedTextEditorModel extends ITextEditorModel {
3025
+ /**
3026
+ * Same as ITextEditorModel#textEditorModel, but never null.
3027
+ */
3028
+ readonly textEditorModel: ITextModel;
3029
+ }
3030
+
3031
+ /**
3032
+ * A rich code editor.
3033
+ */
3034
+ type ICodeEditor = monaco.editor.ICodeEditor
3035
+ /**
3036
+ * Information about a line in the diff editor
3037
+ */
3038
+ interface IDiffLineInformation {
3039
+ readonly equivalentLineNumber: number;
3040
+ }
3041
+ /**
3042
+ * A rich diff editor.
3043
+ */
3044
+ interface IDiffEditor extends IEditor {
3045
+ /**
3046
+ * Returns whether the diff editor is ignoring trim whitespace or not.
3047
+ * @internal
3048
+ */
3049
+ readonly ignoreTrimWhitespace: boolean;
3050
+ /**
3051
+ * Returns whether the diff editor is rendering side by side or inline.
3052
+ * @internal
3053
+ */
3054
+ readonly renderSideBySide: boolean;
3055
+ /**
3056
+ * Timeout in milliseconds after which diff computation is cancelled.
3057
+ * @internal
3058
+ */
3059
+ readonly maxComputationTime: number;
3060
+ /**
3061
+ * @see {@link ICodeEditor.getContainerDomNode}
3062
+ */
3063
+ getContainerDomNode(): HTMLElement;
3064
+ /**
3065
+ * An event emitted when the diff information computed by this diff editor has been updated.
3066
+ * @event
3067
+ */
3068
+ readonly onDidUpdateDiff: Event<void>;
3069
+ /**
3070
+ * An event emitted when the diff model is changed (i.e. the diff editor shows new content).
3071
+ * @event
3072
+ */
3073
+ readonly onDidChangeModel: Event<void>;
3074
+ /**
3075
+ * Saves current view state of the editor in a serializable object.
3076
+ */
3077
+ saveViewState(): IDiffEditorViewState | null;
3078
+ /**
3079
+ * Restores the view state of the editor from a serializable object generated by `saveViewState`.
3080
+ */
3081
+ restoreViewState(state: IDiffEditorViewState | null): void;
3082
+ /**
3083
+ * Type the getModel() of IEditor.
3084
+ */
3085
+ getModel(): IDiffEditorModel | null;
3086
+ /**
3087
+ * Sets the current model attached to this editor.
3088
+ * If the previous model was created by the editor via the value key in the options
3089
+ * literal object, it will be destroyed. Otherwise, if the previous model was set
3090
+ * via setModel, or the model key in the options literal object, the previous model
3091
+ * will not be destroyed.
3092
+ * It is safe to call setModel(null) to simply detach the current model from the editor.
3093
+ */
3094
+ setModel(model: IDiffEditorModel | null): void;
3095
+ /**
3096
+ * Get the `original` editor.
3097
+ */
3098
+ getOriginalEditor(): ICodeEditor;
3099
+ /**
3100
+ * Get the `modified` editor.
3101
+ */
3102
+ getModifiedEditor(): ICodeEditor;
3103
+ /**
3104
+ * Get the computed diff information.
3105
+ */
3106
+ getLineChanges(): ILineChange[] | null;
3107
+ /**
3108
+ * Get the computed diff information.
3109
+ * @internal
3110
+ */
3111
+ getDiffComputationResult(): IDiffComputationResult | null;
3112
+ /**
3113
+ * Get information based on computed diff about a line number from the original model.
3114
+ * If the diff computation is not finished or the model is missing, will return null.
3115
+ */
3116
+ getDiffLineInformationForOriginal(lineNumber: number): IDiffLineInformation | null;
3117
+ /**
3118
+ * Get information based on computed diff about a line number from the modified model.
3119
+ * If the diff computation is not finished or the model is missing, will return null.
3120
+ */
3121
+ getDiffLineInformationForModified(lineNumber: number): IDiffLineInformation | null;
3122
+ /**
3123
+ * Update the editor's options after the editor has been created.
3124
+ */
3125
+ updateOptions(newOptions: IDiffEditorOptions): void;
3126
+ }
3127
+
3128
+ export { EndOfLineSequence as E, ITextBufferFactory as I, Position as P, Range as R, Selection as S, ITextModel as a, ITextModelCreationOptions as b, IEditor as c, IDiffEditor$1 as d, IRange as e, IPosition as f, IDocumentDiffProviderOptions as g, IDocumentDiff as h, IChange as i, ICodeEditor as j, IDiffEditor as k, IDecorationRenderOptions as l, IModelDecorationOptions as m, ITextModelContentProvider as n, ITextModelService as o, IResolvedTextEditorModel as p, IModelDecorationsChangeAccessor as q, IEditorContribution as r, ISingleEditOperation as s, EditorAutoIndentStrategy as t, IDimension as u, ITextEditorModel as v, ITextSnapshot as w };