@theia/plugin-ext 1.57.0 → 1.58.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 (281) hide show
  1. package/lib/common/plugin-api-rpc-model.d.ts +1 -0
  2. package/lib/common/plugin-api-rpc-model.d.ts.map +1 -1
  3. package/lib/common/plugin-api-rpc.d.ts +11 -2
  4. package/lib/common/plugin-api-rpc.d.ts.map +1 -1
  5. package/lib/common/plugin-api-rpc.js.map +1 -1
  6. package/lib/common/plugin-identifiers.d.ts +2 -2
  7. package/lib/common/plugin-identifiers.js +2 -2
  8. package/lib/hosted/node/plugin-host-rpc.d.ts.map +1 -1
  9. package/lib/hosted/node/plugin-host-rpc.js +2 -0
  10. package/lib/hosted/node/plugin-host-rpc.js.map +1 -1
  11. package/lib/hosted/node/plugin-reader.d.ts +0 -1
  12. package/lib/hosted/node/plugin-reader.d.ts.map +1 -1
  13. package/lib/hosted/node/plugin-require-override.d.ts +25 -0
  14. package/lib/hosted/node/plugin-require-override.d.ts.map +1 -0
  15. package/lib/hosted/node/plugin-require-override.js +56 -0
  16. package/lib/hosted/node/plugin-require-override.js.map +1 -0
  17. package/lib/main/browser/authentication-main.d.ts +1 -0
  18. package/lib/main/browser/authentication-main.d.ts.map +1 -1
  19. package/lib/main/browser/command-registry-main.d.ts +1 -0
  20. package/lib/main/browser/command-registry-main.d.ts.map +1 -1
  21. package/lib/main/browser/custom-editors/custom-editors-main.d.ts +1 -0
  22. package/lib/main/browser/custom-editors/custom-editors-main.d.ts.map +1 -1
  23. package/lib/main/browser/debug/plugin-debug-service.d.ts +1 -0
  24. package/lib/main/browser/debug/plugin-debug-service.d.ts.map +1 -1
  25. package/lib/main/browser/languages-main.d.ts +4 -3
  26. package/lib/main/browser/languages-main.d.ts.map +1 -1
  27. package/lib/main/browser/languages-main.js +15 -22
  28. package/lib/main/browser/languages-main.js.map +1 -1
  29. package/lib/main/browser/notebooks/notebook-documents-main.js +1 -1
  30. package/lib/main/browser/notebooks/notebook-documents-main.js.map +1 -1
  31. package/lib/main/browser/notebooks/notebooks-main.d.ts +1 -0
  32. package/lib/main/browser/notebooks/notebooks-main.d.ts.map +1 -1
  33. package/lib/main/browser/notebooks/renderers/cell-output-webview.d.ts +12 -2
  34. package/lib/main/browser/notebooks/renderers/cell-output-webview.d.ts.map +1 -1
  35. package/lib/main/browser/notebooks/renderers/cell-output-webview.js +38 -16
  36. package/lib/main/browser/notebooks/renderers/cell-output-webview.js.map +1 -1
  37. package/lib/main/browser/notebooks/renderers/output-webview-internal.d.ts.map +1 -1
  38. package/lib/main/browser/notebooks/renderers/output-webview-internal.js +9 -2
  39. package/lib/main/browser/notebooks/renderers/output-webview-internal.js.map +1 -1
  40. package/lib/main/browser/notebooks/renderers/webview-communication.d.ts +5 -1
  41. package/lib/main/browser/notebooks/renderers/webview-communication.d.ts.map +1 -1
  42. package/lib/main/browser/quick-open-main.d.ts +1 -0
  43. package/lib/main/browser/quick-open-main.d.ts.map +1 -1
  44. package/lib/main/browser/terminal-main.d.ts +1 -0
  45. package/lib/main/browser/terminal-main.d.ts.map +1 -1
  46. package/lib/main/browser/text-editor-main.js +1 -1
  47. package/lib/main/browser/view/tree-view-decorator-service.d.ts +1 -0
  48. package/lib/main/browser/view/tree-view-decorator-service.d.ts.map +1 -1
  49. package/lib/main/browser/view/tree-view-widget.d.ts +2 -0
  50. package/lib/main/browser/view/tree-view-widget.d.ts.map +1 -1
  51. package/lib/main/browser/view/tree-view-widget.js +14 -0
  52. package/lib/main/browser/view/tree-view-widget.js.map +1 -1
  53. package/lib/main/browser/view/tree-views-main.d.ts +2 -1
  54. package/lib/main/browser/view/tree-views-main.d.ts.map +1 -1
  55. package/lib/main/browser/view/tree-views-main.js +2 -2
  56. package/lib/main/browser/view/tree-views-main.js.map +1 -1
  57. package/lib/main/browser/webview/webview.d.ts +1 -0
  58. package/lib/main/browser/webview/webview.d.ts.map +1 -1
  59. package/lib/main/browser/webview-views/webview-views-main.d.ts +1 -0
  60. package/lib/main/browser/webview-views/webview-views-main.d.ts.map +1 -1
  61. package/lib/main/browser/webviews-main.d.ts +1 -0
  62. package/lib/main/browser/webviews-main.d.ts.map +1 -1
  63. package/lib/main/browser/workspace-main.d.ts +3 -2
  64. package/lib/main/browser/workspace-main.d.ts.map +1 -1
  65. package/lib/main/browser/workspace-main.js +8 -7
  66. package/lib/main/browser/workspace-main.js.map +1 -1
  67. package/lib/main/node/plugin-service.d.ts +0 -1
  68. package/lib/main/node/plugin-service.d.ts.map +1 -1
  69. package/lib/plugin/authentication-ext.d.ts +1 -0
  70. package/lib/plugin/authentication-ext.d.ts.map +1 -1
  71. package/lib/plugin/clipboard-ext.d.ts +1 -0
  72. package/lib/plugin/clipboard-ext.d.ts.map +1 -1
  73. package/lib/plugin/command-registry.d.ts +1 -0
  74. package/lib/plugin/command-registry.d.ts.map +1 -1
  75. package/lib/plugin/comments.d.ts +1 -0
  76. package/lib/plugin/comments.d.ts.map +1 -1
  77. package/lib/plugin/custom-editors.d.ts +1 -0
  78. package/lib/plugin/custom-editors.d.ts.map +1 -1
  79. package/lib/plugin/debug/debug-ext.d.ts +1 -0
  80. package/lib/plugin/debug/debug-ext.d.ts.map +1 -1
  81. package/lib/plugin/debug/plugin-debug-adapter-creator.d.ts +1 -0
  82. package/lib/plugin/debug/plugin-debug-adapter-creator.d.ts.map +1 -1
  83. package/lib/plugin/debug/plugin-debug-adapter-session.d.ts +1 -0
  84. package/lib/plugin/debug/plugin-debug-adapter-session.d.ts.map +1 -1
  85. package/lib/plugin/debug/plugin-debug-adapter-tracker.d.ts +1 -0
  86. package/lib/plugin/debug/plugin-debug-adapter-tracker.d.ts.map +1 -1
  87. package/lib/plugin/decorations.d.ts +1 -0
  88. package/lib/plugin/decorations.d.ts.map +1 -1
  89. package/lib/plugin/dialogs.d.ts +1 -0
  90. package/lib/plugin/dialogs.d.ts.map +1 -1
  91. package/lib/plugin/document-data.d.ts +1 -0
  92. package/lib/plugin/document-data.d.ts.map +1 -1
  93. package/lib/plugin/documents.d.ts +1 -0
  94. package/lib/plugin/documents.d.ts.map +1 -1
  95. package/lib/plugin/env.d.ts +1 -0
  96. package/lib/plugin/env.d.ts.map +1 -1
  97. package/lib/plugin/file-system-event-service-ext-impl.d.ts +1 -0
  98. package/lib/plugin/file-system-event-service-ext-impl.d.ts.map +1 -1
  99. package/lib/plugin/file-system-ext-impl.d.ts +1 -0
  100. package/lib/plugin/file-system-ext-impl.d.ts.map +1 -1
  101. package/lib/plugin/label-service.d.ts +1 -0
  102. package/lib/plugin/label-service.d.ts.map +1 -1
  103. package/lib/plugin/languages/call-hierarchy.d.ts +1 -0
  104. package/lib/plugin/languages/call-hierarchy.d.ts.map +1 -1
  105. package/lib/plugin/languages/code-action.d.ts +1 -0
  106. package/lib/plugin/languages/code-action.d.ts.map +1 -1
  107. package/lib/plugin/languages/color.d.ts +1 -0
  108. package/lib/plugin/languages/color.d.ts.map +1 -1
  109. package/lib/plugin/languages/completion.d.ts +1 -0
  110. package/lib/plugin/languages/completion.d.ts.map +1 -1
  111. package/lib/plugin/languages/declaration.d.ts +1 -0
  112. package/lib/plugin/languages/declaration.d.ts.map +1 -1
  113. package/lib/plugin/languages/definition.d.ts +1 -0
  114. package/lib/plugin/languages/definition.d.ts.map +1 -1
  115. package/lib/plugin/languages/diagnostics.d.ts +1 -0
  116. package/lib/plugin/languages/diagnostics.d.ts.map +1 -1
  117. package/lib/plugin/languages/document-drop-edit.d.ts +1 -0
  118. package/lib/plugin/languages/document-drop-edit.d.ts.map +1 -1
  119. package/lib/plugin/languages/document-formatting.d.ts +1 -0
  120. package/lib/plugin/languages/document-formatting.d.ts.map +1 -1
  121. package/lib/plugin/languages/document-highlight.d.ts +1 -0
  122. package/lib/plugin/languages/document-highlight.d.ts.map +1 -1
  123. package/lib/plugin/languages/evaluatable-expression.d.ts +1 -0
  124. package/lib/plugin/languages/evaluatable-expression.d.ts.map +1 -1
  125. package/lib/plugin/languages/folding.d.ts +1 -0
  126. package/lib/plugin/languages/folding.d.ts.map +1 -1
  127. package/lib/plugin/languages/hover.d.ts +1 -0
  128. package/lib/plugin/languages/hover.d.ts.map +1 -1
  129. package/lib/plugin/languages/implementation.d.ts +1 -0
  130. package/lib/plugin/languages/implementation.d.ts.map +1 -1
  131. package/lib/plugin/languages/inlay-hints.d.ts +1 -0
  132. package/lib/plugin/languages/inlay-hints.d.ts.map +1 -1
  133. package/lib/plugin/languages/inline-completion.d.ts +1 -0
  134. package/lib/plugin/languages/inline-completion.d.ts.map +1 -1
  135. package/lib/plugin/languages/inline-values.d.ts +1 -0
  136. package/lib/plugin/languages/inline-values.d.ts.map +1 -1
  137. package/lib/plugin/languages/lens.d.ts +1 -0
  138. package/lib/plugin/languages/lens.d.ts.map +1 -1
  139. package/lib/plugin/languages/link-provider.d.ts +1 -0
  140. package/lib/plugin/languages/link-provider.d.ts.map +1 -1
  141. package/lib/plugin/languages/linked-editing-range.d.ts +1 -0
  142. package/lib/plugin/languages/linked-editing-range.d.ts.map +1 -1
  143. package/lib/plugin/languages/on-type-formatting.d.ts +1 -0
  144. package/lib/plugin/languages/on-type-formatting.d.ts.map +1 -1
  145. package/lib/plugin/languages/outline.d.ts +1 -0
  146. package/lib/plugin/languages/outline.d.ts.map +1 -1
  147. package/lib/plugin/languages/range-formatting.d.ts +1 -0
  148. package/lib/plugin/languages/range-formatting.d.ts.map +1 -1
  149. package/lib/plugin/languages/reference.d.ts +1 -0
  150. package/lib/plugin/languages/reference.d.ts.map +1 -1
  151. package/lib/plugin/languages/rename.d.ts +1 -0
  152. package/lib/plugin/languages/rename.d.ts.map +1 -1
  153. package/lib/plugin/languages/selection-range.d.ts +1 -0
  154. package/lib/plugin/languages/selection-range.d.ts.map +1 -1
  155. package/lib/plugin/languages/semantic-highlighting.d.ts +1 -0
  156. package/lib/plugin/languages/semantic-highlighting.d.ts.map +1 -1
  157. package/lib/plugin/languages/signature.d.ts +1 -0
  158. package/lib/plugin/languages/signature.d.ts.map +1 -1
  159. package/lib/plugin/languages/type-definition.d.ts +1 -0
  160. package/lib/plugin/languages/type-definition.d.ts.map +1 -1
  161. package/lib/plugin/languages/type-hierarchy.d.ts +1 -0
  162. package/lib/plugin/languages/type-hierarchy.d.ts.map +1 -1
  163. package/lib/plugin/languages/util.d.ts +1 -0
  164. package/lib/plugin/languages/util.d.ts.map +1 -1
  165. package/lib/plugin/languages/workspace-symbol.d.ts +1 -0
  166. package/lib/plugin/languages/workspace-symbol.d.ts.map +1 -1
  167. package/lib/plugin/languages-utils.d.ts +1 -0
  168. package/lib/plugin/languages-utils.d.ts.map +1 -1
  169. package/lib/plugin/languages.d.ts +1 -0
  170. package/lib/plugin/languages.d.ts.map +1 -1
  171. package/lib/plugin/markdown-string.d.ts +1 -0
  172. package/lib/plugin/markdown-string.d.ts.map +1 -1
  173. package/lib/plugin/message-registry.d.ts +1 -0
  174. package/lib/plugin/message-registry.d.ts.map +1 -1
  175. package/lib/plugin/node/debug/plugin-node-debug-adapter-creator.d.ts +1 -0
  176. package/lib/plugin/node/debug/plugin-node-debug-adapter-creator.d.ts.map +1 -1
  177. package/lib/plugin/notebook/notebook-document.d.ts +1 -0
  178. package/lib/plugin/notebook/notebook-document.d.ts.map +1 -1
  179. package/lib/plugin/notebook/notebook-documents.d.ts +1 -0
  180. package/lib/plugin/notebook/notebook-documents.d.ts.map +1 -1
  181. package/lib/plugin/notebook/notebook-editor.d.ts +1 -0
  182. package/lib/plugin/notebook/notebook-editor.d.ts.map +1 -1
  183. package/lib/plugin/notebook/notebook-editors.d.ts +1 -0
  184. package/lib/plugin/notebook/notebook-editors.d.ts.map +1 -1
  185. package/lib/plugin/notebook/notebook-kernels.d.ts +1 -0
  186. package/lib/plugin/notebook/notebook-kernels.d.ts.map +1 -1
  187. package/lib/plugin/notebook/notebook-renderers.d.ts +1 -0
  188. package/lib/plugin/notebook/notebook-renderers.d.ts.map +1 -1
  189. package/lib/plugin/notebook/notebooks.d.ts +1 -0
  190. package/lib/plugin/notebook/notebooks.d.ts.map +1 -1
  191. package/lib/plugin/notification.d.ts +1 -0
  192. package/lib/plugin/notification.d.ts.map +1 -1
  193. package/lib/plugin/output-channel/log-output-channel.d.ts +1 -0
  194. package/lib/plugin/output-channel/log-output-channel.d.ts.map +1 -1
  195. package/lib/plugin/output-channel/output-channel-item.d.ts +1 -0
  196. package/lib/plugin/output-channel/output-channel-item.d.ts.map +1 -1
  197. package/lib/plugin/output-channel-registry.d.ts +1 -0
  198. package/lib/plugin/output-channel-registry.d.ts.map +1 -1
  199. package/lib/plugin/plugin-context.d.ts +1 -0
  200. package/lib/plugin/plugin-context.d.ts.map +1 -1
  201. package/lib/plugin/plugin-context.js +7 -1
  202. package/lib/plugin/plugin-context.js.map +1 -1
  203. package/lib/plugin/plugin-manager.d.ts +1 -0
  204. package/lib/plugin/plugin-manager.d.ts.map +1 -1
  205. package/lib/plugin/plugin-storage.d.ts +1 -0
  206. package/lib/plugin/plugin-storage.d.ts.map +1 -1
  207. package/lib/plugin/preference-registry.d.ts +1 -0
  208. package/lib/plugin/preference-registry.d.ts.map +1 -1
  209. package/lib/plugin/preference-registry.js +29 -2
  210. package/lib/plugin/preference-registry.js.map +1 -1
  211. package/lib/plugin/quick-open.d.ts +1 -0
  212. package/lib/plugin/quick-open.d.ts.map +1 -1
  213. package/lib/plugin/scm.d.ts +1 -0
  214. package/lib/plugin/scm.d.ts.map +1 -1
  215. package/lib/plugin/secrets-ext.d.ts +1 -0
  216. package/lib/plugin/secrets-ext.d.ts.map +1 -1
  217. package/lib/plugin/status-bar/status-bar-item.d.ts +1 -0
  218. package/lib/plugin/status-bar/status-bar-item.d.ts.map +1 -1
  219. package/lib/plugin/status-bar-message-registry.d.ts +1 -0
  220. package/lib/plugin/status-bar-message-registry.d.ts.map +1 -1
  221. package/lib/plugin/tabs.d.ts +1 -0
  222. package/lib/plugin/tabs.d.ts.map +1 -1
  223. package/lib/plugin/tasks/task-provider.d.ts +1 -0
  224. package/lib/plugin/tasks/task-provider.d.ts.map +1 -1
  225. package/lib/plugin/tasks/tasks.d.ts +1 -0
  226. package/lib/plugin/tasks/tasks.d.ts.map +1 -1
  227. package/lib/plugin/terminal-ext.d.ts +1 -0
  228. package/lib/plugin/terminal-ext.d.ts.map +1 -1
  229. package/lib/plugin/test-item.d.ts +1 -0
  230. package/lib/plugin/test-item.d.ts.map +1 -1
  231. package/lib/plugin/tests.d.ts +1 -0
  232. package/lib/plugin/tests.d.ts.map +1 -1
  233. package/lib/plugin/text-editor.d.ts +1 -0
  234. package/lib/plugin/text-editor.d.ts.map +1 -1
  235. package/lib/plugin/text-editors.d.ts +1 -0
  236. package/lib/plugin/text-editors.d.ts.map +1 -1
  237. package/lib/plugin/timeline.d.ts +1 -0
  238. package/lib/plugin/timeline.d.ts.map +1 -1
  239. package/lib/plugin/tree/tree-views.d.ts +1 -0
  240. package/lib/plugin/tree/tree-views.d.ts.map +1 -1
  241. package/lib/plugin/tree/tree-views.js +18 -4
  242. package/lib/plugin/tree/tree-views.js.map +1 -1
  243. package/lib/plugin/type-converters.d.ts +1 -0
  244. package/lib/plugin/type-converters.d.ts.map +1 -1
  245. package/lib/plugin/type-converters.spec.js +4 -4
  246. package/lib/plugin/type-converters.spec.js.map +1 -1
  247. package/lib/plugin/types-impl.d.ts +21 -0
  248. package/lib/plugin/types-impl.d.ts.map +1 -1
  249. package/lib/plugin/types-impl.js +25 -2
  250. package/lib/plugin/types-impl.js.map +1 -1
  251. package/lib/plugin/uri-ext.d.ts +1 -0
  252. package/lib/plugin/uri-ext.d.ts.map +1 -1
  253. package/lib/plugin/webview-views.d.ts +1 -0
  254. package/lib/plugin/webview-views.d.ts.map +1 -1
  255. package/lib/plugin/webviews.d.ts +1 -0
  256. package/lib/plugin/webviews.d.ts.map +1 -1
  257. package/lib/plugin/window-state.d.ts +1 -0
  258. package/lib/plugin/window-state.d.ts.map +1 -1
  259. package/lib/plugin/workspace.d.ts +1 -0
  260. package/lib/plugin/workspace.d.ts.map +1 -1
  261. package/lib/plugin/workspace.js +14 -11
  262. package/lib/plugin/workspace.js.map +1 -1
  263. package/package.json +31 -30
  264. package/src/common/plugin-api-rpc.ts +11 -3
  265. package/src/common/plugin-identifiers.ts +2 -2
  266. package/src/hosted/node/plugin-host-rpc.ts +5 -2
  267. package/src/hosted/node/plugin-require-override.ts +53 -0
  268. package/src/main/browser/languages-main.ts +19 -27
  269. package/src/main/browser/notebooks/notebook-documents-main.ts +1 -1
  270. package/src/main/browser/notebooks/renderers/cell-output-webview.tsx +42 -17
  271. package/src/main/browser/notebooks/renderers/output-webview-internal.ts +12 -2
  272. package/src/main/browser/notebooks/renderers/webview-communication.ts +5 -1
  273. package/src/main/browser/view/tree-view-widget.tsx +12 -0
  274. package/src/main/browser/view/tree-views-main.ts +2 -2
  275. package/src/main/browser/workspace-main.ts +9 -9
  276. package/src/plugin/plugin-context.ts +13 -2
  277. package/src/plugin/preference-registry.ts +38 -5
  278. package/src/plugin/tree/tree-views.ts +17 -3
  279. package/src/plugin/type-converters.spec.ts +4 -4
  280. package/src/plugin/types-impl.ts +28 -0
  281. package/src/plugin/workspace.ts +15 -12
@@ -236,7 +236,9 @@ import {
236
236
  PortAutoForwardAction,
237
237
  PortAttributes,
238
238
  DebugVisualization,
239
- TerminalShellExecutionCommandLineConfidence
239
+ TerminalShellExecutionCommandLineConfidence,
240
+ TerminalCompletionItemKind,
241
+ TerminalCompletionList
240
242
  } from './types-impl';
241
243
  import { AuthenticationExtImpl } from './authentication-ext';
242
244
  import { SymbolKind } from '../common/plugin-api-rpc-model';
@@ -656,6 +658,13 @@ export function createAPIFactory(
656
658
  registerProfileContentHandler(id: string, profileContentHandler: theia.ProfileContentHandler): theia.Disposable {
657
659
  return Disposable.NULL;
658
660
  },
661
+ /** @stubbed TerminalCompletionProvider */
662
+ registerTerminalCompletionProvider<T extends theia.TerminalCompletionItem>(
663
+ provider: theia.TerminalCompletionProvider<T>,
664
+ ...triggerCharacters: string[]
665
+ ): theia.Disposable {
666
+ return Disposable.NULL;
667
+ },
659
668
  /** @stubbed TerminalQuickFixProvider */
660
669
  registerTerminalQuickFixProvider(id: string, provider: theia.TerminalQuickFixProvider): theia.Disposable {
661
670
  return terminalExt.registerTerminalQuickFixProvider(id, provider);
@@ -1570,7 +1579,9 @@ export function createAPIFactory(
1570
1579
  PortAutoForwardAction,
1571
1580
  PortAttributes,
1572
1581
  DebugVisualization,
1573
- TerminalShellExecutionCommandLineConfidence
1582
+ TerminalShellExecutionCommandLineConfidence,
1583
+ TerminalCompletionItemKind,
1584
+ TerminalCompletionList
1574
1585
  };
1575
1586
  };
1576
1587
  }
@@ -34,6 +34,7 @@ import { RPCProtocol } from '../common/rpc-protocol';
34
34
  import { isObject, mixin } from '../common/types';
35
35
  import { WorkspaceExtImpl } from './workspace';
36
36
  import cloneDeep = require('lodash.clonedeep');
37
+ import { ILogService, LogLevel } from '@theia/monaco-editor-core/esm/vs/platform/log/common/log';
37
38
 
38
39
  const injectionRe = /\b__proto__\b|\bconstructor\.prototype\b/;
39
40
 
@@ -79,6 +80,30 @@ export class TheiaWorkspace extends Workspace {
79
80
  }
80
81
  }
81
82
 
83
+ const logService: ILogService = {
84
+ _serviceBrand: undefined,
85
+ onDidChangeLogLevel: new Emitter<LogLevel>().event,
86
+ getLevel: function (): LogLevel {
87
+ return LogLevel.Info;
88
+ },
89
+ setLevel: function (level: LogLevel): void {
90
+ },
91
+ trace: function (message: string, ...args: any[]): void {
92
+ },
93
+ debug: function (message: string, ...args: any[]): void {
94
+ },
95
+ info: function (message: string, ...args: any[]): void {
96
+ },
97
+ warn: function (message: string, ...args: any[]): void {
98
+ },
99
+ error: function (message: string | Error, ...args: any[]): void {
100
+ },
101
+ flush: function (): void {
102
+ },
103
+ dispose: function (): void {
104
+ }
105
+ };
106
+
82
107
  @injectable()
83
108
  export class PreferenceRegistryExtImpl implements PreferenceRegistryExt {
84
109
  @inject(RPCProtocol)
@@ -251,19 +276,27 @@ export class PreferenceRegistryExtImpl implements PreferenceRegistryExt {
251
276
  Object.keys(data[PreferenceScope.Folder]).forEach(resource => {
252
277
  folderConfigurations.set(URI.parse(resource), this.getConfigurationModel(`Folder: ${resource}`, data[PreferenceScope.Folder][resource]));
253
278
  });
279
+
280
+ function createEmptyModel(): ConfigurationModel {
281
+ return new ConfigurationModel({}, [], [], undefined, logService);
282
+ }
283
+
254
284
  return new Configuration(
255
285
  defaultConfiguration,
256
- new ConfigurationModel(), /** policy configuration. */
257
- new ConfigurationModel(), /** application configuration. */
286
+ createEmptyModel(), /** policy configuration. */
287
+ createEmptyModel(), /** application configuration. */
258
288
  userConfiguration,
259
- new ConfigurationModel(), /** remote configuration. */
289
+ createEmptyModel(), /** remote configuration. */
260
290
  workspaceConfiguration,
261
- folderConfigurations
291
+ folderConfigurations,
292
+ ConfigurationModel.createEmptyModel(logService),
293
+ new ResourceMap<ConfigurationModel>(),
294
+ logService
262
295
  );
263
296
  }
264
297
 
265
298
  private getConfigurationModel(label: string, data: { [key: string]: any }): ConfigurationModel {
266
- const parser = new ConfigurationModelParser(label);
299
+ const parser = new ConfigurationModelParser(label, logService);
267
300
  const sanitized = this.sanitize(data);
268
301
  parser.parseRaw(sanitized);
269
302
  return parser.configurationModel;
@@ -252,8 +252,22 @@ class TreeViewExtImpl<T> implements Disposable {
252
252
  dragMimeTypes, dropMimeTypes
253
253
  });
254
254
  this.toDispose.push(Disposable.create(() => this.proxy.$unregisterTreeDataProvider(treeViewId)));
255
- options.treeDataProvider.onDidChangeTreeData?.(() => {
256
- this.pendingRefresh = proxy.$refresh(treeViewId);
255
+ options.treeDataProvider.onDidChangeTreeData?.(elements => {
256
+ const ids = [];
257
+ elements = elements || [];
258
+ if (!Array.isArray(elements)) {
259
+ elements = [elements];
260
+ }
261
+ const set = new Set<T>();
262
+ for (const element of elements) {
263
+ set.add(element);
264
+ }
265
+ for (const node of this.nodes.values()) {
266
+ if (node.value && set.has(node.value)) {
267
+ ids.push(node.id);
268
+ }
269
+ }
270
+ this.pendingRefresh = proxy.$refresh(treeViewId, ids);
257
271
  });
258
272
  }
259
273
 
@@ -378,7 +392,7 @@ class TreeViewExtImpl<T> implements Disposable {
378
392
  let counter = 0;
379
393
  do {
380
394
  id = `${prefix}/${counter}:${elementId}`;
381
- if (!mustReturnNew || !this.nodes.has(id) || this.nodes.get(id) === item) {
395
+ if (!mustReturnNew || !this.nodes.has(id) || this.nodes.get(id)?.pluginTreeItem === item) {
382
396
  // Return first if asked for or
383
397
  // Return if handle does not exist or
384
398
  // Return if handle is being reused
@@ -177,10 +177,10 @@ describe('Type converters:', () => {
177
177
  describe('convert tasks:', () => {
178
178
  const customType = 'custom';
179
179
  const shellType = 'shell';
180
- const label = 'yarn build';
180
+ const label = 'npm run build';
181
181
  const source = 'source';
182
- const command = 'yarn';
183
- const commandLine = 'yarn run build';
182
+ const command = 'npm';
183
+ const commandLine = 'npm run build';
184
184
  const args = ['run', 'build'];
185
185
  const cwd = '/projects/theia';
186
186
  const additionalProperty = 'some property';
@@ -252,7 +252,7 @@ describe('Type converters:', () => {
252
252
  ...shellPluginTask, execution: {
253
253
  command: {
254
254
  quoting: types.ShellQuoting.Strong,
255
- value: 'yarn'
255
+ value: 'npm'
256
256
  },
257
257
  args,
258
258
  options: {
@@ -1647,6 +1647,7 @@ export class DocumentLink {
1647
1647
  @es5ClassCompat
1648
1648
  export class DocumentDropOrPasteEditKind {
1649
1649
  static readonly Empty: DocumentDropOrPasteEditKind = new DocumentDropOrPasteEditKind('');
1650
+ static readonly Text: DocumentDropOrPasteEditKind = new DocumentDropOrPasteEditKind('text');
1650
1651
 
1651
1652
  private static sep = '.';
1652
1653
 
@@ -3842,6 +3843,33 @@ export enum EditSessionIdentityMatch {
3842
3843
  }
3843
3844
  // #endregion
3844
3845
 
3846
+ // #region terminalCompletionProvider
3847
+ export class TerminalCompletionList<T extends theia.TerminalCompletionItem> {
3848
+
3849
+ resourceRequestConfig?: theia.TerminalResourceRequestConfig;
3850
+
3851
+ items: T[];
3852
+
3853
+ /**
3854
+ * Creates a new completion list.
3855
+ *
3856
+ * @param items The completion items.
3857
+ * @param resourceRequestConfig Indicates which resources should be shown as completions for the cwd of the terminal.
3858
+ * @stubbed
3859
+ */
3860
+ constructor(items?: T[], resourceRequestConfig?: theia.TerminalResourceRequestConfig) {
3861
+ }
3862
+ }
3863
+
3864
+ export enum TerminalCompletionItemKind {
3865
+ File = 0,
3866
+ Folder = 1,
3867
+ Flag = 2,
3868
+ Method = 3,
3869
+ Argument = 4
3870
+ }
3871
+ // #endregion
3872
+
3845
3873
  // #region terminalQuickFixProvider
3846
3874
  export class TerminalQuickFixTerminalCommand {
3847
3875
  /**
@@ -188,8 +188,7 @@ export class WorkspaceExtImpl implements WorkspaceExt {
188
188
  });
189
189
  }
190
190
 
191
- findFiles(include: theia.GlobPattern, exclude?: theia.GlobPattern | null, maxResults?: number,
192
- token: CancellationToken = CancellationToken.None): PromiseLike<URI[]> {
191
+ findFiles(include: theia.GlobPattern, exclude?: theia.GlobPattern | null, maxResults?: number, token: CancellationToken = CancellationToken.None): PromiseLike<URI[]> {
193
192
  let includePattern: string;
194
193
  let includeFolderUri: string | undefined;
195
194
  if (include) {
@@ -203,25 +202,29 @@ export class WorkspaceExtImpl implements WorkspaceExt {
203
202
  includePattern = '';
204
203
  }
205
204
 
206
- let excludePatternOrDisregardExcludes: string | false;
207
- if (exclude === undefined) {
208
- excludePatternOrDisregardExcludes = ''; // default excludes
209
- } else if (exclude) {
205
+ let excludeString: string = '';
206
+ let useFileExcludes = true;
207
+ if (exclude === null) {
208
+ useFileExcludes = false;
209
+ } else if (exclude !== undefined) {
210
210
  if (typeof exclude === 'string') {
211
- excludePatternOrDisregardExcludes = exclude;
211
+ excludeString = exclude;
212
212
  } else {
213
- excludePatternOrDisregardExcludes = exclude.pattern;
213
+ excludeString = exclude.pattern;
214
214
  }
215
- } else {
216
- excludePatternOrDisregardExcludes = false; // no excludes
217
215
  }
218
216
 
219
217
  if (token && token.isCancellationRequested) {
220
218
  return Promise.resolve([]);
221
219
  }
222
220
 
223
- return this.proxy.$startFileSearch(includePattern, includeFolderUri, excludePatternOrDisregardExcludes, maxResults, token)
224
- .then(data => Array.isArray(data) ? data.map(uri => URI.revive(uri)) : []);
221
+ return this.proxy.$startFileSearch(includePattern, includeFolderUri, {
222
+ maxResults,
223
+ exclude: excludeString,
224
+ useDefaultExcludes: useFileExcludes,
225
+ useDefaultSearchExcludes: false,
226
+ useIgnoreFiles: false
227
+ }, token).then(data => Array.isArray(data) ? data.map(uri => URI.revive(uri)) : []);
225
228
  }
226
229
 
227
230
  findTextInFiles(query: theia.TextSearchQuery, optionsOrCallback: theia.FindTextInFilesOptions | ((result: theia.TextSearchResult) => void),