@lvce-editor/extension-host-worker 5.25.0 → 5.26.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.
|
@@ -5167,7 +5167,7 @@ const renameDirectory = (oldUri, newUri) => {
|
|
|
5167
5167
|
remove(oldUri);
|
|
5168
5168
|
};
|
|
5169
5169
|
const rename = (oldUri, newUri) => {
|
|
5170
|
-
const item = getDirent(oldUri);
|
|
5170
|
+
const item = getDirent(oldUri) || getDirent(`${oldUri}/`);
|
|
5171
5171
|
if (!item) {
|
|
5172
5172
|
throw new FileNotFoundError(oldUri);
|
|
5173
5173
|
}
|
|
@@ -5569,6 +5569,10 @@ const getValuesByIndexName = async (storeId, indexName, only) => {
|
|
|
5569
5569
|
return objects;
|
|
5570
5570
|
};
|
|
5571
5571
|
|
|
5572
|
+
const invalidateExtensionsCache = () => {
|
|
5573
|
+
clear();
|
|
5574
|
+
};
|
|
5575
|
+
|
|
5572
5576
|
const getLanguagesFromExtension = extension => {
|
|
5573
5577
|
// TODO what if extension is null? should not crash process, handle error gracefully
|
|
5574
5578
|
// TODO what if extension languages is not of type array?
|
|
@@ -5998,6 +6002,7 @@ const unregisterInterceptor = async id => {
|
|
|
5998
6002
|
};
|
|
5999
6003
|
|
|
6000
6004
|
const commandMap = {
|
|
6005
|
+
'Extensions.invalidateExtensionsCache': invalidateExtensionsCache,
|
|
6001
6006
|
'BulkReplacement.applyBulkReplacement': applyBulkReplacement,
|
|
6002
6007
|
'ColorTheme.getColorThemeCssFromJson': getColorThemeCssFromJson,
|
|
6003
6008
|
'ColorTheme.getColorThemeJson': getColorThemeJson,
|