Skip to content

bug: fixes spawning of watch-dev in VS Code #603

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Aug 8, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"request": "launch",
"args": ["--extensionDevelopmentPath=${workspaceFolder}"],
"outFiles": ["${workspaceFolder}/dist/**/*.js"],
"preLaunchTask": "npm: compile-dev"
"preLaunchTask": "${defaultBuildTask}"
},
{
"name": "Launch Tests",
Expand Down
15 changes: 14 additions & 1 deletion .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,20 @@
"isDefault": true
},
"isBackground": true,
"problemMatcher": "$tsc-watch",
"presentation": {
"panel": "dedicated",
"reveal": "never"
},
"problemMatcher": [
{
"base": "$tsc-watch",
"background": {
"activeOnStart": true,
"beginsPattern": "asset .*",
"endsPattern": "webpack .* compiled .*"
}
}
],
"detail": "webpack --mode development --watch --progress"
},
{
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
- Removes duplicate diagnostic messages from the linter
([#598](https://github.com/fortran-lang/vscode-fortran-support/issues/598))

### Fixed

- Fixed `npm run watch-dev` not syncing changes to spawned Extension Dev Host
([#602](https://github.com/fortran-lang/vscode-fortran-support/issues/602))

## [3.2.0]

### Added
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ npm run compile-dev

### Developing & Debugging 🐞️

You can now start writing code the `watcher` task will check for compilation errors.
You can now start writing code, the `watcher` task, if not running, will automatically start when debugging.
You can actively debug the extension by pressing <kbd>F5</kbd> with `Launch Extension` selected.

👉 **Tip!** You don't need to stop and restart the development version of VS Code after each change. You can just execute `Reload Window` from the command palette in the
Expand Down