@lvce-editor/extension-host-worker 6.2.0 → 6.4.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.
@@ -3535,7 +3535,7 @@ const hasRecentErrors = () => {
3535
3535
  return state$5.errors.length > 0;
3536
3536
  };
3537
3537
  const getRecentError = () => {
3538
- state$5.errors.at(-1);
3538
+ return state$5.errors.at(-1);
3539
3539
  };
3540
3540
 
3541
3541
  const handleContentSecurityPolicyViolation = event => {
@@ -4977,6 +4977,7 @@ const SourceControlDiscard = 'ExtensionHostSourceControl.discard';
4977
4977
  const SourceControlGetChangedFiles = 'ExtensionHost.sourceControlGetChangedFiles';
4978
4978
  const SourceControlGetEnabledProviderIds = 'ExtensionHostSourceControl.getEnabledProviderIds';
4979
4979
  const SourceControlGetFileBefore = 'ExtensionHostSourceControl.GetFileBefore';
4980
+ const SourceControlGetFileBefore2 = 'ExtensionHostSourceControl.getFileBefore';
4980
4981
  const SourceControlGetGroups = 'ExtensionHostSourceControl.getGroups';
4981
4982
  const SourceControlGetFileDecorations = 'ExtensionHostSourceControl.getFileDecorations';
4982
4983
  const StatusBarGetStatusBarItems = 'ExtensionHost.getStatusBarItems';
@@ -5098,6 +5099,13 @@ const readFile$1 = async uri => {
5098
5099
  const text = await getText(fetchUri);
5099
5100
  return text;
5100
5101
  };
5102
+ const exists$1 = async uri => {
5103
+ const response = await fetch(uri);
5104
+ if (!response.ok) {
5105
+ throw new Error(response.statusText);
5106
+ }
5107
+ return response.ok;
5108
+ };
5101
5109
  const writeFile$1 = () => {
5102
5110
  throw new Error('not implemented');
5103
5111
  };
@@ -6228,6 +6236,7 @@ const commandMap = {
6228
6236
  'FileSystemFetch.readDirWithFileTypes': readDirWithFileTypes$1,
6229
6237
  'FileSystemFetch.readFile': readFile$1,
6230
6238
  'FileSystemFetch.remove': remove$2,
6239
+ 'FileSystemFetch.exists': exists$1,
6231
6240
  'FileSystemFetch.writeFile': writeFile$1,
6232
6241
  'FileSystemMemory.chmod': chmod,
6233
6242
  'FileSystemMemory.copy': copy,
@@ -6306,6 +6315,7 @@ const commandMap = {
6306
6315
  [SourceControlGetChangedFiles]: getChangedFiles,
6307
6316
  [SourceControlGetEnabledProviderIds]: getEnabledProviderIds,
6308
6317
  [SourceControlGetFileBefore]: getFileBefore,
6318
+ [SourceControlGetFileBefore2]: getFileBefore,
6309
6319
  [SourceControlGetGroups]: getGroups,
6310
6320
  [SourceControlGetFileDecorations]: getFileDecorations,
6311
6321
  [StatusBarGetStatusBarItems]: getStatusBarItems,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/extension-host-worker",
3
- "version": "6.2.0",
3
+ "version": "6.4.0",
4
4
  "description": "Webworker for the extension host functionality in Lvce Editor.",
5
5
  "keywords": [
6
6
  "web-worker"