Community
Participate
Working Groups
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.
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.)
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.