@lvce-editor/extension-host-worker 8.37.0 → 8.39.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,
|