Bug 547863 - [Local terminal] an option to trigger refresh of folder/project upon commands
Summary: [Local terminal] an option to trigger refresh of folder/project upon commands
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: terminal (show other bugs)
Version: Next   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords: usability
Depends on:
Blocks:
 
Reported: 2019-06-03 05:06 EDT by Mickael Istria CLA
Modified: 2020-09-04 15:11 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mickael Istria CLA 2019-06-03 05:06:10 EDT
When running a local terminal and the current working directory is folder that exists as a resource in the workspace, it would be nice to have the related folder refreshed automatically after a command.
I imagine a toggle button like "automatically refresh related resources after each command".

One use case would be:
1. I have an empty project
2. I do right-click > Show in Local Terminal
3. I invoke "npm init"

In this case, I would love to see the package.json added automatically when the command completes.
Comment 1 Jonah Graham CLA 2020-05-01 10:10:21 EDT
The Terminal component of the Eclipse Ecosystem has a new home. The Terminal is now part of the Eclipse CDT project[1].

This change means a new Git repo[2], P2 site[3] and Bugzilla component. The terminal will continue to be delivered as part of the quarterly Simultaneous Release of Eclipse as well.

The marketplace entry[4] had not been updated in a few years. It will once again install the latest release of the terminal on the latest release of the whole IDE (currently 2020-03).

If this bug is no longer relevant, please feel free to comment or close the bug. If you can confirm if this issues still occurs in the latest release please do let me know in a comment.

[1] https://wiki.eclipse.org/CDT/User/NewIn911
[2] https://git.eclipse.org/c/cdt/org.eclipse.cdt.git (in the terminal directory)
[3] current release is 9.11 - P2 site https://download.eclipse.org/tools/cdt/releases/9.11/
[4] https://marketplace.eclipse.org/content/tm-terminal

(This comment was added to all open terminal bugs along with changing the Product/component pair to CDT/terminal.)
Comment 2 Jonah Graham CLA 2020-05-01 11:37:13 EDT
Hi Mickael,

Are you hoping to hook this in on user pressing "enter", or is the use case only when the "Command Input Field"? I don't think the terminal can detect when a command is actually run, other than guessing one is when enter is pressed. Perhaps you envision the terminal to scan for a new prompt and do a refresh when it sees it?

Is there something that this request does beyond Preferences -> Refresh using native hooks or polling? I can see that the auto refresh on seems to take a few moments before project explorer updates.

The problem I see is that it is (somewhat) easy to detect when a command is initiated, but much harder to detect when it is completed.