@@ -135,12 +135,12 @@ import type { CSSProperties, Component } from 'vue'
135135import { useI18n } from ' vue-i18n'
136136
137137import PuzzleIcon from ' @/components/icons/PuzzleIcon.vue'
138- import { isCloud } from ' @/platform/distribution/types'
138+ import { isCloud , isDesktop } from ' @/platform/distribution/types'
139139import { useSettingStore } from ' @/platform/settings/settingStore'
140140import type { ReleaseNote } from ' @/platform/updates/common/releaseService'
141141import { useReleaseStore } from ' @/platform/updates/common/releaseStore'
142142import { useCommandStore } from ' @/stores/commandStore'
143- import { electronAPI , isElectron } from ' @/utils/envUtil'
143+ import { electronAPI } from ' @/utils/envUtil'
144144import { formatVersionAnchor } from ' @/utils/formatUtil'
145145import { useConflictAcknowledgment } from ' @/workbench/extensions/manager/composables/useConflictAcknowledgment'
146146import { useManagerState } from ' @/workbench/extensions/manager/composables/useManagerState'
@@ -216,7 +216,7 @@ const moreItems = computed<MenuItem[]>(() => {
216216 key: ' desktop-guide' ,
217217 type: ' item' ,
218218 label: t (' helpCenter.desktopUserGuide' ),
219- visible: isElectron () ,
219+ visible: isDesktop ,
220220 action : () => {
221221 const docsUrl =
222222 electronAPI ().getPlatform () === ' darwin'
@@ -230,7 +230,7 @@ const moreItems = computed<MenuItem[]>(() => {
230230 key: ' dev-tools' ,
231231 type: ' item' ,
232232 label: t (' helpCenter.openDevTools' ),
233- visible: isElectron () ,
233+ visible: isDesktop ,
234234 action : () => {
235235 openDevTools ()
236236 emit (' close' )
@@ -239,13 +239,13 @@ const moreItems = computed<MenuItem[]>(() => {
239239 {
240240 key: ' divider-1' ,
241241 type: ' divider' ,
242- visible: isElectron ()
242+ visible: isDesktop
243243 },
244244 {
245245 key: ' reinstall' ,
246246 type: ' item' ,
247247 label: t (' helpCenter.reinstall' ),
248- visible: isElectron () ,
248+ visible: isDesktop ,
249249 action : () => {
250250 onReinstall ()
251251 emit (' close' )
@@ -484,13 +484,13 @@ const onSubmenuLeave = (): void => {
484484}
485485
486486const openDevTools = (): void => {
487- if (isElectron () ) {
487+ if (isDesktop ) {
488488 electronAPI ().openDevTools ()
489489 }
490490}
491491
492492const onReinstall = (): void => {
493- if (isElectron () ) {
493+ if (isDesktop ) {
494494 void electronAPI ().reinstall ()
495495 }
496496}
0 commit comments