Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR simply adds a 'Recapture' button to the inspector view:
![image](https://private-user-images.githubusercontent.com/13157904/309466308-70189851-d87d-4420-8536-59a63a366e40.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk3OTc5MDMsIm5iZiI6MTczOTc5NzYwMywicGF0aCI6Ii8xMzE1NzkwNC8zMDk0NjYzMDgtNzAxODk4NTEtZDg3ZC00NDIwLTg1MzYtNTlhNjNhMzY2ZTQwLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE3VDEzMDY0M1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWVlYjU3YmFhNTkyOGU4MTdkZTNiYTE3YjQ2ZjQ2MmFkNTU1ODVmNDFmMjZiZWMwYTAxZWUyNjk2YWE4OTA0M2UmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.hzvzRkiNlL_oXxUBYMMuTDg7xnBQSlgURIWLJRFZriQ)
(Q: should it be 'Refresh'? Should the button be smaller? Should it just be a refresh icon, but then we have to package a small svg?)
This is useful in scenarios where you want to recapture without interacting with the primary window itself.
An example is a focus issue in Lapce that I'm debugging, where I expect the focus is ending up somewhere it shouldn't, but if I want to trigger the inspector then I need the focus elsewhere. So I can't find out where the focus ends up! Recapture lets me interact with the primary window, recapture, and see where the focus is at.
Why this is a draft pr is that there's a bug with this code where sometimes when pressing recapture it will produce a blank screen, for reasons I don't know.