-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: clear status bar only when necessary
- Loading branch information
Showing
6 changed files
with
42 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"phpstan-vscode": patch | ||
--- | ||
|
||
Fix status bar on `clearCache` and `pauseFileWatcher` commands |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,4 +34,6 @@ export async function clearCache(ext: Ext) { | |
}); | ||
|
||
await waitForClose(childProcess); | ||
|
||
ext.clearStatusBar(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,13 @@ | ||
import { Ext } from "../extension"; | ||
import analyse from "./analyse"; | ||
|
||
export default function resumeFileWatcher(ext: Ext) { | ||
export default async function resumeFileWatcher(ext: Ext) { | ||
ext.setStatusBar({ | ||
text: "$(debug-pause) PHPStan", | ||
tooltip: "Resume file watcher", | ||
command: resumeFileWatcher, | ||
}); | ||
ext.store.fileWatcher.statusBarFixed = undefined; | ||
ext.store.fileWatcher.enabled = true; | ||
analyse(ext, 0); | ||
await analyse(ext, 0); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters