diff --git a/package-lock.json b/package-lock.json index da2ba841d..5c845289f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "digma-ui", - "version": "2.1.1", + "version": "2.1.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "digma-ui", - "version": "2.1.1", + "version": "2.1.2", "license": "MIT", "dependencies": { "@floating-ui/react": "^0.25.1", diff --git a/package.json b/package.json index b3e82e779..20fc96327 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "digma-ui", - "version": "2.1.1", + "version": "2.1.2", "description": "Digma UI", "main": "dist/index.js", "scripts": { diff --git a/src/components/IdeLauncher/index.tsx b/src/components/IdeLauncher/index.tsx index 30d5b2f94..00610ba7f 100644 --- a/src/components/IdeLauncher/index.tsx +++ b/src/components/IdeLauncher/index.tsx @@ -33,6 +33,9 @@ const getURLQueryParams = (url: string) => { export const IdeLauncher = () => { const theme = useTheme(); const themeKind = getThemeKind(theme); + const params = getURLQueryParams(window.location.search); + const { environmentName, spanDisplayName } = params; + const action = params["plugin.action"]; const [selectItems, setSelectItems] = useState(); const isMobile = ["Android", "iPhone", "iPad"].some((x) => window.navigator.userAgent.includes(x) @@ -170,7 +173,7 @@ export const IdeLauncher = () => { Please check that IDE is running and click the{" "} - Try again button below. + Try again button below. { Failed to find IDEs with Digma plugin running Please open the IDE with Digma plugin installed, check its - settings and click the Refresh button - below. + settings and click the{" "} + Refresh button below. @@ -203,11 +206,45 @@ export const IdeLauncher = () => { ); } + if (selectItems.length === 1) { + return ( + <> + + Opening the IDE... + + Your IDE client is opening automatically; you can close this tab. + + + +