@lvce-editor/extension-management-worker 4.24.0 → 4.24.1
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.
|
@@ -1310,7 +1310,7 @@ const {
|
|
|
1310
1310
|
invoke: invoke$4,
|
|
1311
1311
|
set: set$7
|
|
1312
1312
|
} = create$1(FileSystemWorker);
|
|
1313
|
-
const readFile = async uri => {
|
|
1313
|
+
const readFile$1 = async uri => {
|
|
1314
1314
|
return invoke$4('FileSystem.readFile', uri);
|
|
1315
1315
|
};
|
|
1316
1316
|
const writeFile = async (uri, content) => {
|
|
@@ -1842,7 +1842,7 @@ const readDisabledExtensionIdsFromUri = async uri => {
|
|
|
1842
1842
|
if (!exists$1) {
|
|
1843
1843
|
return [];
|
|
1844
1844
|
}
|
|
1845
|
-
const content = await readFile(uri);
|
|
1845
|
+
const content = await readFile$1(uri);
|
|
1846
1846
|
return parseDisabledExtensions(content);
|
|
1847
1847
|
};
|
|
1848
1848
|
const readDisabledExtensionIds = async () => {
|
|
@@ -2214,7 +2214,7 @@ const enableExtension2 = async (id, platform) => {
|
|
|
2214
2214
|
if (!exists$1) {
|
|
2215
2215
|
return undefined;
|
|
2216
2216
|
}
|
|
2217
|
-
const content = await readFile(disabledExtensionsJsonPath);
|
|
2217
|
+
const content = await readFile$1(disabledExtensionsJsonPath);
|
|
2218
2218
|
const parsed = JSON.parse(content);
|
|
2219
2219
|
const oldDisabled = parsed.disabledExtensions || [];
|
|
2220
2220
|
const newDisabled = oldDisabled.filter(item => item !== id);
|
|
@@ -2480,6 +2480,10 @@ const executeOrganizeImportsProvider = async (extensionsState, textDocument) =>
|
|
|
2480
2480
|
};
|
|
2481
2481
|
};
|
|
2482
2482
|
|
|
2483
|
+
const readFile = uri => {
|
|
2484
|
+
return readFile$1(uri);
|
|
2485
|
+
};
|
|
2486
|
+
|
|
2483
2487
|
const instances = Object.create(null);
|
|
2484
2488
|
const set$1 = (uid, instance) => {
|
|
2485
2489
|
instances[uid] = instance;
|
|
@@ -3256,6 +3260,7 @@ const wrapCommand = command => {
|
|
|
3256
3260
|
};
|
|
3257
3261
|
};
|
|
3258
3262
|
const commandMap = {
|
|
3263
|
+
'ExtensionApi.readFile': readFile,
|
|
3259
3264
|
'Extensions.activate2': activateExtension2,
|
|
3260
3265
|
'Extensions.activate3': activateExtension3,
|
|
3261
3266
|
'Extensions.activateByEvent': activateByEvent,
|