-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable file links when task terminals complete #9695
Enable file links when task terminals complete #9695
Conversation
010d877
to
96a1b61
Compare
With the initial changes proposed by you, solve this problem that I have had: (Thanks) However with the last proposed change "switch ordering of fallback" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I confirmed that it fixes the issue with file links in terminals when executing tasks 👍
Thanks for bringing attention to this issue. The behavior you've described does make sense with the ordering change since prior to the last commit, the backend method was never being called and thus never triggering the error (which is just hiding the underlying issue). Unfortunately, though the original commit did prevent the error from being thrown, it's probably not in the best interest to revert that change since I'm relying on the error being thrown to allow for the fallback inside the Maybe a potential fix for the future is to make these errors less invasive and to use warnings instead, however I think it may be out of the scope of this MR since several features of the task/terminal system likely rely on these errors. |
Thanks for addressing my comments. I agree that this likely isn't the place to modify the behavior of the backend error logs: the faulty logic to which they point still exists. The code here allows the frontend to work around the possibility of backend failure, and that's a step forward. |
@kenneth-marut-work @colin-grant-work Thanks for the explanations, now I understand what concerns the backend errors for the future in another PR. |
96a1b61
to
e683989
Compare
Signed-off-by: Kenneth Marut <[email protected]>
e683989
to
507dd34
Compare
Fixes eclipse-theia#9743 by improving check for taskConfig.options.cwd from eclipse-theia#9695. Also ensures that lastCwd field on terminal-widget is never undefined as to ensure get cwd() will always return a URI. Signed-off-by: Kenneth Marut <[email protected]>
Fixes #9743 by improving check for taskConfig.options.cwd from #9695. Also ensures that lastCwd field on terminal-widget is never undefined as to ensure get cwd() will always return a URI. Signed-off-by: Kenneth Marut <[email protected]>
Fixes eclipse-theia#9743 by improving check for taskConfig.options.cwd from eclipse-theia#9695. Also ensures that lastCwd field on terminal-widget is never undefined as to ensure get cwd() will always return a URI. Signed-off-by: Kenneth Marut <[email protected]>
Signed-off-by: Kenneth Marut [email protected]
What it does
Fixes #9677 by ensuring that the
terminal-linkmatcher-files
'sgetValidate
method does not fail when trying to retrieve theTerminalWidget
'scwd
field when a task is terminated. This is done by adding alastCwd
field on the terminalWidget which is set every time a taskTerminal is started or reused.I've added this fix on the frontend although the underlying issue is due to the
base-terminal-server
's call tothis.processManager.get(id)
being prone to failure when tasks end (i.e. 'terminal "id" does not exist').How to test
Run that task and observe that you cannot ctrl+click on the file paths
Run the command
find $(pwd)
manually in a separate Theia terminal and observe that you can click the pathsExit Theia, and build this branch
Run through the same steps and observe that paths are now clickable even after the task ends.
Review checklist
Reminder for reviewers