@lvce-editor/extension-host-worker 5.40.0 → 6.0.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.
@@ -3187,6 +3187,16 @@ const getIconDefinitions = async providerId => {
3187
3187
  // TODO return warning that no icons were found?
3188
3188
  return [];
3189
3189
  };
3190
+ const getFileDecorations = async (providerId, uris) => {
3191
+ const provider = state$8.providers[providerId];
3192
+ // @ts-ignore
3193
+ if (!provider || !provider.getFileDecorations) {
3194
+ return [];
3195
+ }
3196
+ // @ts-ignore
3197
+ const decorations = await provider.getFileDecorations(uris);
3198
+ return decorations;
3199
+ };
3190
3200
 
3191
3201
  const {
3192
3202
  registerTabCompletionProvider,
@@ -4945,6 +4955,7 @@ const SourceControlGetChangedFiles = 'ExtensionHost.sourceControlGetChangedFiles
4945
4955
  const SourceControlGetEnabledProviderIds = 'ExtensionHostSourceControl.getEnabledProviderIds';
4946
4956
  const SourceControlGetFileBefore = 'ExtensionHostSourceControl.GetFileBefore';
4947
4957
  const SourceControlGetGroups = 'ExtensionHostSourceControl.getGroups';
4958
+ const SourceControlGetFileDecorations = 'ExtensionHostSourceControl.getFileDecorations';
4948
4959
  const StatusBarGetStatusBarItems = 'ExtensionHost.getStatusBarItems';
4949
4960
  const StatusBarRegisterChangeListener = 'ExtensionHostStatusBar.registerChangeListener';
4950
4961
  const TabCompletionExecuteTabCompletionProvider = 'ExtensionHost.executeTabCompletionProvider';
@@ -6272,6 +6283,7 @@ const commandMap = {
6272
6283
  [SourceControlGetEnabledProviderIds]: getEnabledProviderIds,
6273
6284
  [SourceControlGetFileBefore]: getFileBefore,
6274
6285
  [SourceControlGetGroups]: getGroups,
6286
+ [SourceControlGetFileDecorations]: getFileDecorations,
6275
6287
  [StatusBarGetStatusBarItems]: getStatusBarItems,
6276
6288
  [StatusBarRegisterChangeListener]: registerChangeListener,
6277
6289
  [TabCompletionExecuteTabCompletionProvider]: executeTabCompletionProvider,
package/package.json CHANGED
@@ -1,10 +1,14 @@
1
1
  {
2
2
  "name": "@lvce-editor/extension-host-worker",
3
- "version": "5.40.0",
3
+ "version": "6.0.0",
4
4
  "description": "Webworker for the extension host functionality in Lvce Editor.",
5
5
  "keywords": [
6
6
  "web-worker"
7
7
  ],
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "git+https://github.com/lvce-editor/extension-host-worker.git"
11
+ },
8
12
  "license": "MIT",
9
13
  "author": "Lvce Editor",
10
14
  "type": "module",