@lvce-editor/panel-worker 2.13.3 → 2.13.5
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/panelWorkerMain.js +3 -5
- package/package.json +1 -1
package/dist/panelWorkerMain.js
CHANGED
|
@@ -1671,11 +1671,8 @@ const getViewMenuItemFlags = (state, view) => {
|
|
|
1671
1671
|
return views.includes(view) ? Checked : Unchecked;
|
|
1672
1672
|
};
|
|
1673
1673
|
const getViewMenuEntry = (state, view) => {
|
|
1674
|
-
const {
|
|
1675
|
-
uid
|
|
1676
|
-
} = state;
|
|
1677
1674
|
return {
|
|
1678
|
-
args: [
|
|
1675
|
+
args: [view],
|
|
1679
1676
|
command: 'Panel.toggleViewVisibility',
|
|
1680
1677
|
flags: getViewMenuItemFlags(state, view),
|
|
1681
1678
|
id: `panelTab.${view}`,
|
|
@@ -1854,9 +1851,10 @@ const handleFilterInput = async (state, value) => {
|
|
|
1854
1851
|
};
|
|
1855
1852
|
|
|
1856
1853
|
const remoteSshWorkspacePrefix = 'remote-ssh://';
|
|
1854
|
+
const devContainerWorkspacePrefix = 'devcontainers:///';
|
|
1857
1855
|
const getPanelViews = (workspaceUri = '') => {
|
|
1858
1856
|
const views = [Problems, Output, DebugConsole, Terminals];
|
|
1859
|
-
if (workspaceUri.startsWith(remoteSshWorkspacePrefix)) {
|
|
1857
|
+
if (workspaceUri.startsWith(remoteSshWorkspacePrefix) || workspaceUri.startsWith(devContainerWorkspacePrefix)) {
|
|
1860
1858
|
views.push(Ports);
|
|
1861
1859
|
}
|
|
1862
1860
|
return views;
|