@@ -12,7 +12,7 @@ import * as YAML from 'yaml';
1212import { CliChannel } from '../cli' ;
1313import { Command } from '../odo/command' ;
1414import { ascDevfileFirst , ComponentTypeAdapter , ComponentTypeDescription } from '../odo/componentType' ;
15- import { StarterProject , CommandProvider } from '../odo/componentTypeDescription' ;
15+ import { CommandProvider , StarterProject } from '../odo/componentTypeDescription' ;
1616import { ComponentWorkspaceFolder } from '../odo/workspace' ;
1717import * as odo3 from '../odo3' ;
1818import sendTelemetry , { NewComponentCommandProps } from '../telemetry' ;
@@ -342,7 +342,7 @@ export class Component extends OpenShiftItem {
342342 const componentState = Component . componentStates . get ( component . contextPath )
343343 if ( componentState ) {
344344 componentState . devTerminal . focusTerminal ( ) ;
345- componentState . devTerminal . sendText ( '\u0003' ) ;
345+ componentState . devTerminal . kill ( ) ;
346346 }
347347 return ;
348348 }
@@ -835,10 +835,11 @@ export class Component extends OpenShiftItem {
835835 if ( Component . isUsingWebviewEditor ( ) ) {
836836 DescribeViewLoader . loadView ( `Component ${ componentName } : Run '${ componentCommand . id } ' Command` , command , componentFolder ) ;
837837 } else {
838- void Component . odo . executeInTerminal (
838+ void OpenShiftTerminalManager . getInstance ( ) . createTerminal (
839839 command ,
840+ `Component ${ componentName } : Run '${ componentCommand . id } ' Command` ,
840841 componentFolder . contextPath ,
841- `OpenShift: Component ${ componentName } : Run ' ${ componentCommand . id } ' Command` ) ;
842+ ) ;
842843 }
843844 } else {
844845 void window . showErrorMessage ( `No Command found in Component '${ componentName } ` ) ;
0 commit comments