@@ -22,7 +22,7 @@ import * as projectEventsController from "../controllers/projectEventsController
22
22
import { IExtensionProject } from "../extensions/IExtensionProject" ;
23
23
import * as processManager from "../utils/processManager" ;
24
24
import * as logger from "../utils/logger" ;
25
- import { StartModes } from "./constants" ;
25
+ import { projectConstants , StartModes } from "./constants" ;
26
26
27
27
/**
28
28
* @interface
@@ -59,6 +59,7 @@ interface ShellExtensionProjectConfig {
59
59
export class ShellExtensionProject implements IExtensionProject {
60
60
61
61
supportedType : string ;
62
+ defaultIgnoredPath : string [ ] = [ "*/*" ] ;
62
63
63
64
private fullPath : string ;
64
65
private config : ShellExtensionProjectConfig ;
@@ -82,11 +83,21 @@ export class ShellExtensionProject implements IExtensionProject {
82
83
*/
83
84
private setLanguage = async ( projectInfo : ProjectInfo ) : Promise < void > => {
84
85
86
+ const logDir = await logHelper . getLogDir (
87
+ projectInfo . projectID , path . basename ( projectInfo . location ) ) ;
88
+
85
89
const args = [
86
90
projectInfo . location ,
87
91
projectUtil . LOCAL_WORKSPACE ,
88
92
projectInfo . projectID ,
89
- projectInfo . language
93
+ projectInfo . language ,
94
+ "" ,
95
+ "" ,
96
+ "" ,
97
+ "" ,
98
+ "" ,
99
+ "" ,
100
+ logDir
90
101
] ;
91
102
92
103
try {
@@ -97,8 +108,8 @@ export class ShellExtensionProject implements IExtensionProject {
97
108
{ } ) ;
98
109
99
110
if ( ! result . stderr ) {
100
- const lastLine = result . stdout . substring ( result . stdout . lastIndexOf ( "\n" ) + 1 ) ;
101
- const json = JSON . parse ( lastLine ) ;
111
+ const json = await fs . readJson (
112
+ path . join ( projectConstants . projectsLogDir , logDir , "settings.json" ) , { encoding : "utf8" } ) ;
102
113
this . language = json . language ;
103
114
return ;
104
115
}
0 commit comments