@@ -751,7 +751,7 @@ const handleCopyRelativePath = (path: string) => {
751751const rootDir = ref <string | null >(null )
752752
753753// 远程仓库永久链接(复制 / 在浏览器打开)
754- const {copyPermalink, openPermalink} = useGitPermalink (rootDir , currentFilePath , cursorInfo )
754+ const {copyPermalink, openPermalink, openRepoOnWeb } = useGitPermalink (rootDir , currentFilePath , cursorInfo )
755755
756756// 多根工作区:额外挂载的文件夹(Git/搜索仍走主根 rootDir)
757757const {extraRoots, addWorkspaceFolder, removeWorkspaceFolder, resetExtraRoots} = useWorkspaceRoots (rootDir )
@@ -2321,6 +2321,7 @@ const paletteCommands = computed<PaletteCommand[]>(() => [
23212321 {id: ' revealInTree' , label: t (' command.revealInTree' ), icon: FolderOpen , run : () => revealInTree ()},
23222322 {id: ' copyPermalink' , label: t (' command.copyPermalink' ), icon: GitBranch , run : () => copyPermalink ()},
23232323 {id: ' openPermalink' , label: t (' command.openPermalink' ), icon: GitBranch , run : () => openPermalink ()},
2324+ {id: ' openRepoOnWeb' , label: t (' command.openRepoOnWeb' ), icon: GitBranch , run : () => openRepoOnWeb ()},
23242325 {id: ' sortLinesAsc' , label: t (' command.sortLinesAsc' ), group: t (' command.groupText' ), icon: ArrowDownAZ , run : () => sortLines (false )},
23252326 {id: ' sortLinesDesc' , label: t (' command.sortLinesDesc' ), group: t (' command.groupText' ), icon: ArrowUpAZ , run : () => sortLines (true )},
23262327 {id: ' toUpperCase' , label: t (' command.toUpperCase' ), group: t (' command.groupText' ), icon: CaseUpper , run : () => transformSelectionOrLine (s => s .toUpperCase ())},
0 commit comments