@@ -2,7 +2,7 @@ import * as vscode from 'vscode'
22import { Notifications , Events } from "../common/constants" ;
33import { OutputChannelLogger } from '../common/log'
44
5- import { AppCreatedNotification , ClientCreatedNotification , ClientDestroyedNotification , ClientErroredNotification , EsbonioClient , SphinxClientConfig , SphinxInfo } from './client' ;
5+ import { AppCreatedNotification , ClientCreatedNotification , ClientDestroyedNotification , ClientErroredNotification , EsbonioClient , PythonCommand , SphinxClientConfig , SphinxInfo } from './client' ;
66
77/**
88 * Tree View provider that visualises the Sphinx processes currently
@@ -101,10 +101,10 @@ export class SphinxProcessProvider implements vscode.TreeDataProvider<ProcessTre
101101
102102 case 'python' :
103103 let pyCmd : string [ ] = [ ]
104- element . command ?. forEach ( c => pyCmd . push ( `- ${ c } ` ) )
104+ element . command ?. command . forEach ( c => pyCmd . push ( `- ${ c } ` ) )
105105
106106 return {
107- label : element . command ?. join ( ' ' ) ,
107+ label : element . command ?. command . join ( ' ' ) ,
108108 iconPath : vscode . ThemeIcon . File ,
109109 tooltip : new vscode . MarkdownString ( `**Python Command**\n ${ pyCmd . join ( '\n ' ) } ` ) ,
110110 resourceUri : vscode . Uri . parse ( 'file:///test.py' ) , // Needed to pull in the icon for Python
@@ -146,7 +146,7 @@ export class SphinxProcessProvider implements vscode.TreeDataProvider<ProcessTre
146146 if ( ! element ) {
147147 for ( let process of this . sphinxClients . values ( ) ) {
148148
149- let cwd = process . config . cwd
149+ let cwd = process . config . pythonCommand . cwd
150150 let node : ProcessContainerNode = { kind : 'container' , name : cwd , path : cwd }
151151 result . push ( node )
152152 }
@@ -157,7 +157,7 @@ export class SphinxProcessProvider implements vscode.TreeDataProvider<ProcessTre
157157 switch ( element . kind ) {
158158 case 'container' :
159159 for ( let [ id , process ] of this . sphinxClients . entries ( ) ) {
160- if ( element . name === process . config . cwd ) {
160+ if ( element . name === process . config . pythonCommand . cwd ) {
161161 let node : SphinxProcessNode = { kind : 'sphinxProcess' , id : id }
162162 result . push ( node )
163163 }
@@ -279,7 +279,7 @@ type ProcessTreeNode = ProcessContainerNode | SphinxProcessNode | SphinxBuilderN
279279 */
280280interface PythonCommandNode {
281281 kind : 'python'
282- command : string [ ] | undefined
282+ command : PythonCommand | undefined
283283}
284284
285285/**
0 commit comments