-
Notifications
You must be signed in to change notification settings - Fork 27.9k
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
[api][commands] Open new window and a file #123615
Comments
Maybe we should look into extra arguments to the |
I was just thinking of custom arguments for an extension, but yeah I guess that would work as an argument handled by vscode too. But the extension uses @SiddhanthUnnithan do you pass any extra options to |
Currently we pass "preserveFocus: False" and "preview: False" as arguments. |
Is this still wanted? |
Hi Martin, |
The
vscode.newWindow
command takes aremoteAuthority
argument and opens a window on that authority. The Azure ML extension needs to open a window on a certain remote, then open a file on that remote. They do this by adding extra data to the remoteAuthority. This works but a downside is that you end up with extra entries in recently opened, since these windows have different remote authorities and are considered distinct. A better way to do this would be to allow passing in extra arguments that go to the resolver. Maybe they would be a fragment or query on the opened workspace folder URI, I don't know whether we ever do that.The text was updated successfully, but these errors were encountered: