Repository navigation
Add context menu item to open file in your preferred editor in the changes tab - #4030
Conversation
|
After testing this, I noticed one small issue: If I were to look immediately at the context window, the change does not register in the UI (it does register in the back end as the correct editor opens). In this instance, I had changed it to Sublime. Sublime opened as intended, but the UI was lagging and still referenced Atom. Eventually Desktop catches up and there is no issue. 1.0.14-beta5 |
|
Yep, I was able to reproduce by doing the following:
@nerdneha and I found the following when investigating together: It seems this is caused by the By comparison: Any ideas @desktop/core ? |
Invalidation props determine whether a list should re-render. Instead of relying on React's automagical updates, adding this key to the invalidationProps object ensures the list is re-rendered as soon as the parent's props change.
|
@tierninho I just address the issue you mentioned. 🔢 |
|
@iAmWillShepherd thanks for the repro steps. I pulled down the latest changes, but it's still behaving the same way for me |
|
@tierninho Here's the behavior I see... |
|
@tierninho Did you run |
|
@iAmWillShepherd works for me now |
|
|
||
| /** | ||
| * Called to open a file using the user's configured applications | ||
| * * @param path The path of the file relative to the root of the repository |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
| readonly availableWidth: number | ||
| readonly onIgnore: (pattern: string) => void | ||
|
|
||
| /** The current external editor's name selected by the user */ |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
| const filesDescription = `${fileCount} changed ${filesPlural}` | ||
| const anyFilesSelected = | ||
| fileCount > 0 && this.includeAllValue !== CheckboxValue.Off | ||
| const invalidationProps = { |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
|
|
||
| /** | ||
| * Called to open a file using the user's configured applications | ||
| * * @param path The path of the file relative to the root of the repository |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
| readonly gitHubUserStore: GitHubUserStore | ||
| readonly askForConfirmationOnDiscardChanges: boolean | ||
| readonly accounts: ReadonlyArray<Account> | ||
| /** The current external editor's name selected by the user */ |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
|
|
||
| /** | ||
| * Called to open a file using the user's configured applications | ||
| * * @param path The path of the file relative to the root of the repository |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
| readonly askForConfirmationOnDiscardChanges: boolean | ||
| readonly accounts: ReadonlyArray<Account> | ||
|
|
||
| /** The current external editor's name selected by the user */ |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
| */ | ||
| readonly coAuthors: ReadonlyArray<IAuthor> | ||
|
|
||
| /** The current external editor's name selected by the user */ |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
|
|
||
| /** | ||
| * Called to open a file using the user's configured applications | ||
| * * @param path The path of the file relative to the root of the repository |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
| readonly externalEditorLabel?: string | ||
|
|
||
| /** | ||
| * Called to open a file using the user's configured applications |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Co-Authored-By: Markus Olsson <[email protected]>
|
🔢 |


Fixes issue #4028
Before
After