@lvce-editor/main-area-worker 9.18.0 → 9.19.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.
- package/dist/mainAreaWorkerMain.js +11 -1
- package/package.json +1 -1
|
@@ -3253,6 +3253,7 @@ const getStateWithTab = (currentState, editorInput, existingTab, shouldRetryExis
|
|
|
3253
3253
|
|
|
3254
3254
|
const Directory = 3;
|
|
3255
3255
|
const DirectoryExpanded = 4;
|
|
3256
|
+
const File = 7;
|
|
3256
3257
|
|
|
3257
3258
|
const isLocalEditorInput = editorInput => {
|
|
3258
3259
|
if (editorInput.type !== 'editor') {
|
|
@@ -3313,6 +3314,8 @@ const getIconsCached = (dirents, fileIconCache) => {
|
|
|
3313
3314
|
return dirents.map(dirent => fileIconCache[dirent]);
|
|
3314
3315
|
};
|
|
3315
3316
|
|
|
3317
|
+
const ExtensionDetailScheme = 'extension-detail://';
|
|
3318
|
+
const ExtensionIconName = 'extensions';
|
|
3316
3319
|
const getBasename = uri => {
|
|
3317
3320
|
const lastSlashIndex = uri.lastIndexOf('/');
|
|
3318
3321
|
if (lastSlashIndex === -1) {
|
|
@@ -3331,10 +3334,17 @@ const getMissingTabs = (tabs, fileIconCache) => {
|
|
|
3331
3334
|
};
|
|
3332
3335
|
const tabToIconRequest = tab => {
|
|
3333
3336
|
const uri = tab.uri || '';
|
|
3337
|
+
if (uri.startsWith(ExtensionDetailScheme)) {
|
|
3338
|
+
return {
|
|
3339
|
+
name: ExtensionIconName,
|
|
3340
|
+
path: uri,
|
|
3341
|
+
type: Directory
|
|
3342
|
+
};
|
|
3343
|
+
}
|
|
3334
3344
|
return {
|
|
3335
3345
|
name: getBasename(uri),
|
|
3336
3346
|
path: uri,
|
|
3337
|
-
type:
|
|
3347
|
+
type: File
|
|
3338
3348
|
};
|
|
3339
3349
|
};
|
|
3340
3350
|
const getMissingIconRequestsForTabs = (tabs, fileIconCache) => {
|