File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed
Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change 22"use strict" ;
33import osenv = require( "osenv" ) ;
44import path = require( "path" ) ;
5+ import util = require( "util" ) ;
56
67export class PostInstallCommand implements ICommand {
78 private static CALL_PROFILE_SCRIPT =
@@ -11,11 +12,22 @@ export class PostInstallCommand implements ICommand {
1112
1213 constructor ( private $fs : IFileSystem ,
1314 private $childProcess : IChildProcess ,
14- private $logger : ILogger ) { }
15+ private $logger : ILogger ,
16+ private $staticConfig : IStaticConfig ) { }
1517
1618 public disableAnalytics = true ;
1719
1820 public execute ( args : string [ ] ) : IFuture < void > {
21+ return ( ( ) => {
22+ if ( process . platform !== "win32" ) {
23+ this . $fs . chmod ( this . $staticConfig . adbFilePath , 755 ) . wait ( ) ;
24+ }
25+
26+ this . enableAutoCompletion ( ) . wait ( ) ;
27+ } ) . future < void > ( ) ( ) ;
28+ }
29+
30+ private enableAutoCompletion ( ) : IFuture < void > {
1931 return ( ( ) => {
2032 var scriptsOk = true ;
2133
You can’t perform that action at this time.
0 commit comments