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';
14
14
// this method is called when the extension is activated
15
15
export function activate ( context : vscode . ExtensionContext ) {
16
16
services . globalState = context . globalState ;
17
- services . cliPath = services . workspaceConfigService . tnsPath || services . cliPath ;
17
+ services . cliPath = 'tns' ;
18
18
19
19
const channel = vscode . window . createOutputChannel ( 'NativeScript Extension' ) ;
20
20
Original file line number Diff line number Diff line change @@ -21,7 +21,10 @@ export class BuildService {
21
21
22
22
public async processRequest ( args : any ) : Promise < any > {
23
23
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 ) ;
25
28
26
29
const project = args . platform === 'ios' ?
27
30
new IosProject ( args . appRoot , cli ) :
You can’t perform that action at this time.
0 commit comments