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
IEnvironmentService#userHome is deprecated #94506
Comments
@bpasero In |
Hm, why would we not show an extension tip checking for installed tools on the remote? |
We cannot treat all remote environments same. For eg., Dev containers what does it mean looking for installables in it? Does it makes sense? I also think it is not intended to look for different kind of installables in the remote machine and prompt them in the remote window which does not need them at all. I see remote window is scoped to a workspace. |
If you feel that web/remote should not have these tips, then I suggest to split the service into 2: web and native and only do the one in the one case. |
@bpasero labelService depends on this being sync, if we change this method to be async than all callers of |
@isidorn I guess, the alternate approach is to have sync access where Still, I would not want to have this on the |
@bpasero that makes sense. If you introduce that |
@isidorn I added |
- do not recommed exe and dynamic workspace recommendations in web
Would be better to make the querybuilder async but that has a huge downstream impact
Did this in the QueryBuilder - tried to make it async to do this properly but it spiraled out of control. |
@bpasero what is the preferred way to get the local userHome even when there is a remote userHome now? For the simple file picker I need both. |
@alexr00 you can always depend on |
Since we are getting close, assigning myself for final cleanup and moving to April. |
FYI my refactor broke the SSH extension as local terminals need to be launched before the remote connection is available. Moving to |
Changes for simplefiledialog.ts Part of #94506
Part of #94506 Co-authored-by: Alex Ross <alros@microsoft.com>
Simple file dialog is done. |
I decided to go with the following solution:
There is a slight semantic change from the old behaviour: if you used to use //cc @isidorn @alexr00 @Tyriar @roblourens for potential customers PS: noticed quite some usages of |
I recently cleaned up the environment service for web and one outcome is that
userHome
is actually not known upfront until resolved later from the remote in web. For that case we do have aIRemotePathService#userHome
that checks the remote and falls back to the local user home if possible.I would like people to adopt the remote path service if possible. One catch is that the method is async since it needs to resolve the remote environment if there is one.
Outcome of this should be that no-one depends on
IEnvironmentService#userHome
anymore.The text was updated successfully, but these errors were encountered: