You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Open the command palette and search for "Debug: Start Debugging"
13
+
- A new VS Code window will open, you'll see "[Extension Development Host]" in the title
14
+
- Open any folder you'd like to test against
15
+
- Press `⌘ + R` to reload the Extension Development Host project and see changes
16
+
17
+
## Of Note
18
+
19
+
-`console.log` will appear in your main VS Code "Debug Console" tab, _not_ the Extension Development Host window
20
+
-`info`, `error`, etc from `src/support/logger.ts` will show up in the "Output" tab (make sure to select "Laravel" from the list) of your Extension Development Host window
21
+
22
+
## Testing the Parser
23
+
24
+
The [PHP parser](https://github.com/laravel/vs-code-php-parser-cli) is a standalone binary that parses the PHP scripts for item detection and autocomplete.
25
+
26
+
If you are making changes to the parser, follow the setup instructions from that repo and create an `.env` file at the root of the `vs-code-extension` with the full path to this variable set:
27
+
28
+
`PHP_PARSER_BINARY_PATH=[FULL PATH TO DIRECTORY]/vs-code-php-parser-cli/php-parser`
29
+
30
+
If you make changes to your `.env` file, you'll have to close the Extension Development Host and start debugging again.
0 commit comments