File tree Expand file tree Collapse file tree 4 files changed +29
-26
lines changed Expand file tree Collapse file tree 4 files changed +29
-26
lines changed Original file line number Diff line number Diff line change @@ -66,17 +66,19 @@ Add these entries to your VSCode config (Open the menu at File > Preferences > S
6666}
6767```
6868
69+ ** After adding these entries, close and re-open Visual Studio Code in order for Phan to pick up the new settings.**
70+
6971## Examples
7072
7173### Error Detection
7274
73- ![ Phan error detection demo] ( images/error_detection.png )
75+ ![ Phan error detection demo] ( https://raw.githubusercontent.com/TysonAndre/vscode-php-phan/master/ images/error_detection.png)
7476
7577Phan's capabilities are summarized in [ Phan's README] ( https://github.com/phan/phan#features )
7678
7779### Error Detection (Tolerating Syntax Errors)
7880
79- ![ Phan error tolerant detection demo] ( images/tolerant_parsing.png )
81+ ![ Phan error tolerant detection demo] ( https://raw.githubusercontent.com/TysonAndre/vscode-php-phan/master/ images/tolerant_parsing.png)
8082
8183Optional, enabled by the setting ` phan.useFallbackParser `
8284
Original file line number Diff line number Diff line change 77 "license" : " MIT" ,
88 "private" : true ,
99 "preview" : false ,
10- "version" : " 0.0.2-dev " ,
10+ "version" : " 0.0.3 " ,
1111 "engines" : {
1212 "vscode" : " ^1.16.0" ,
1313 "os" : [ " darwin" , " linux" ]
Original file line number Diff line number Diff line change @@ -172,7 +172,7 @@ export async function activate(context: vscode.ExtensionContext): Promise<void>
172172 const phanScriptPath = conf . get < string > ( 'phanScriptPath' ) || defaultPhanScriptPath ;
173173 // TODO: Support analyzing more than one project.
174174 // TODO: Figure out how to stop the language server when a different project is opened.
175- const analyzedProjectDirectory = conf . get < string > ( 'analyzedProjectDirectory' ) ;
175+ const analyzedProjectDirectory = conf . get < string > ( 'analyzedProjectDirectory' ) || '' ;
176176 const enableDebugLog = conf . get < boolean > ( 'enableDebugLog' ) ;
177177 const useFallbackParser = conf . get < boolean > ( 'useFallbackParser' ) ;
178178 const additionalCLIFlags = conf . get < string [ ] > ( 'additionalCLIFlags' ) || [ ] ;
@@ -236,6 +236,7 @@ export async function activate(context: vscode.ExtensionContext): Promise<void>
236236 // php phan --language-server-verbose [args]
237237 args . unshift ( '--quick' ) ;
238238 }
239+
239240 // The server is implemented in PHP
240241 // FIXME create a real language server module
241242 // FIXME install in vendor?
Original file line number Diff line number Diff line change 11{
2- "compilerOptions" : {
3- "target" : " ES6" ,
4- "module" : " commonjs" ,
5- "moduleResolution" : " node" ,
6- "outDir" : " out" ,
7- "lib" : [
8- " es6"
9- ],
10- "noImplicitAny" : true ,
11- "sourceMap" : true ,
12- "rootDir" : " src" ,
13- "strictNullChecks" : true ,
14- "noImplicitThis" : true ,
15- "noImplicitReturns" : true ,
16- "noUnusedLocals" : true ,
17- "allowUnreachableCode" : false ,
18- "allowUnusedLabels" : false
19- },
20- "exclude" : [
21- " node_modules" ,
22- " out"
23- ]
2+ "compilerOptions" : {
3+ "target" : " ES6" ,
4+ "module" : " commonjs" ,
5+ "moduleResolution" : " node" ,
6+ "outDir" : " out" ,
7+ "lib" : [
8+ " es6"
9+ ],
10+ "noImplicitAny" : true ,
11+ "sourceMap" : true ,
12+ "rootDir" : " src" ,
13+ "strictNullChecks" : true ,
14+ "noImplicitThis" : true ,
15+ "noImplicitReturns" : true ,
16+ "noUnusedLocals" : true ,
17+ "allowUnreachableCode" : false ,
18+ "allowUnusedLabels" : false
19+ },
20+ "exclude" : [
21+ " node_modules" ,
22+ " out"
23+ ]
2424}
You can’t perform that action at this time.
0 commit comments