@lvce-editor/extension-host-worker 8.37.0 → 8.38.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.
@@ -2390,6 +2390,17 @@ const getPathSeparator = protocol => {
2390
2390
  throw new VError(error, 'Failed to execute file system provider');
2391
2391
  }
2392
2392
  };
2393
+ const isReadonly = async protocol => {
2394
+ try {
2395
+ const provider = get$9(protocol);
2396
+ if (!provider.isReadonly) {
2397
+ return false;
2398
+ }
2399
+ return await provider.isReadonly();
2400
+ } catch (error) {
2401
+ throw new VError(error, 'Failed to execute file system provider');
2402
+ }
2403
+ };
2393
2404
 
2394
2405
  const {
2395
2406
  executeFormattingProvider: executeRegisteredFormattingProvider,
@@ -5721,6 +5732,7 @@ const DefinitionExecuteDefinitionProvider = 'ExtensionHostDefinition.executeDefi
5721
5732
  const DiagnosticExecuteDiagnosticProvider = 'ExtensionHost.executeDiagnosticProvider';
5722
5733
  const ExtensionActivate = 'ExtensionHostExtension.activate';
5723
5734
  const FileSystemGetPathSeparator = 'ExtensionHostFileSystem.getPathSeparator';
5735
+ const FileSystemIsReadonly = 'ExtensionHostFileSystem.isReadonly';
5724
5736
  const FileSystemMkdir = 'ExtensionHostFileSystem.mkdir';
5725
5737
  const FileSystemReadDirWithFileTypes = 'ExtensionHostFileSystem.readDirWithFileTypes';
5726
5738
  const FileSystemReadFile = 'ExtensionHostFileSystem.readFile';
@@ -6944,6 +6956,7 @@ const commandMap = {
6944
6956
  [DiagnosticExecuteDiagnosticProvider]: executeDiagnosticProvider,
6945
6957
  [ExtensionActivate]: activateExtension,
6946
6958
  [FileSystemGetPathSeparator]: getPathSeparator,
6959
+ [FileSystemIsReadonly]: isReadonly,
6947
6960
  [FileSystemMkdir]: mkdir$2,
6948
6961
  [FileSystemReadDirWithFileTypes]: readDirWithFileTypes$2,
6949
6962
  [FileSystemReadFile]: readFile$2,
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/api",
3
- "version": "8.37.0",
3
+ "version": "8.38.0",
4
4
  "description": "Tree-shakeable extension API for Lvce Editor extensions.",
5
5
  "keywords": [
6
6
  "lvce-editor",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/extension-host-worker",
3
- "version": "8.37.0",
3
+ "version": "8.38.0",
4
4
  "description": "Webworker for the extension host functionality in Lvce Editor.",
5
5
  "keywords": [
6
6
  "web-worker"