mirror of
https://github.com/harness/drone.git
synced 2025-05-20 02:50:05 +08:00
feat: [CDE-211]: vs code extension route change for gitness (#2389)
* feat: [CDE-211]: vs code extension route change for gitness
This commit is contained in:
parent
4680192ba6
commit
196ee8c6d0
@ -327,7 +327,7 @@ const ActionMenu = ({
|
|||||||
e.preventDefault()
|
e.preventDefault()
|
||||||
e.stopPropagation()
|
e.stopPropagation()
|
||||||
if (ide === IDEType.VSCODE) {
|
if (ide === IDEType.VSCODE) {
|
||||||
window.open(`vscode://harness-inc.gitspaces/${projectIdentifier}/${identifier}?gitness`, '_blank')
|
window.open(`vscode://harness-inc.oss-gitspaces/${projectIdentifier}/${identifier}?gitness`, '_blank')
|
||||||
} else {
|
} else {
|
||||||
window.open(url || '', '_blank')
|
window.open(url || '', '_blank')
|
||||||
}
|
}
|
||||||
@ -667,7 +667,10 @@ export const ListGitspaces = ({ data, refreshList }: { data: TypesGitspaceConfig
|
|||||||
|
|
||||||
if (row?.state === GitspaceStatus.RUNNING) {
|
if (row?.state === GitspaceStatus.RUNNING) {
|
||||||
if (row?.ide === IDEType.VSCODE) {
|
if (row?.ide === IDEType.VSCODE) {
|
||||||
window.open(`vscode://harness-inc.gitspaces/${projectIdentifier}/${row?.identifier}?gitness`, '_blank')
|
window.open(
|
||||||
|
`vscode://harness-inc.oss-gitspaces/${projectIdentifier}/${row?.identifier}?gitness`,
|
||||||
|
'_blank'
|
||||||
|
)
|
||||||
} else {
|
} else {
|
||||||
window.open(row?.instance?.url || '', '_blank')
|
window.open(row?.instance?.url || '', '_blank')
|
||||||
}
|
}
|
||||||
|
@ -313,7 +313,7 @@ export const GitspaceDetails = () => {
|
|||||||
const pathparamsList = data?.space_path?.split('/') || []
|
const pathparamsList = data?.space_path?.split('/') || []
|
||||||
const projectIdentifier = pathparamsList[pathparamsList.length - 1] || ''
|
const projectIdentifier = pathparamsList[pathparamsList.length - 1] || ''
|
||||||
window.open(
|
window.open(
|
||||||
`vscode://harness-inc.gitspaces/${projectIdentifier}/${data?.identifier}?gitness`,
|
`vscode://harness-inc.oss-gitspaces/${projectIdentifier}/${data?.identifier}?gitness`,
|
||||||
'_blank'
|
'_blank'
|
||||||
)
|
)
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user