File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ import { SUGGESTION_PROVIDERS } from './services/language-services/suggestions';
1414// this method is called when the extension is activated
1515export function activate ( context : vscode . ExtensionContext ) {
1616 services . globalState = context . globalState ;
17- services . cliPath = services . workspaceConfigService . tnsPath || services . cliPath ;
17+ services . cliPath = 'tns' ;
1818
1919 const channel = vscode . window . createOutputChannel ( 'NativeScript Extension' ) ;
2020
Original file line number Diff line number Diff line change @@ -21,7 +21,10 @@ export class BuildService {
2121
2222 public async processRequest ( args : any ) : Promise < any > {
2323 const tnsPath = services . workspaceConfigService . tnsPath ;
24- const cli = new NativeScriptCli ( tnsPath , this . _logger ) ;
24+
25+ this . _logger . log ( `[NSDebugAdapter] Using tns CLI on path '${ tnsPath } '\n` ) ;
26+ const tnsPathResolved = ( tnsPath !== 'tns' && ! path . isAbsolute ( tnsPath ) ) ? path . join ( args . appRoot , tnsPath ) : tnsPath ;
27+ const cli = new NativeScriptCli ( tnsPathResolved , this . _logger ) ;
2528
2629 const project = args . platform === 'ios' ?
2730 new IosProject ( args . appRoot , cli ) :
You can’t perform that action at this time.
0 commit comments