-
Notifications
You must be signed in to change notification settings - Fork 24
fix: handle agent parameter in URIs #538
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
Conversation
@@ -628,7 +628,7 @@ export class Commands { | |||
|
|||
const workspaceOwner = args[0] as string; | |||
const workspaceName = args[1] as string; | |||
const workspaceAgent = undefined; // args[2] is reserved, but we do not support multiple agents yet. | |||
const workspaceAgent = args[2] as string; |
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.
openDevcontainer
URIs must include the agent name to work properly, I believe, so this is string
and not string | undefined
.
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.
LGTM, thanks for fixing this!
# git config blame.ignoreRevsFile .git-blame-ignore-revs | ||
|
||
# chore: simplify prettier config (#528) | ||
f785902f3ad20d54344cc1107285c2a66299c7f6 |
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.
What's the purpose of this?
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.
We have the same file on coder/coder
- it's just a convenient way to remove a formatting commit from git blame
results. I noticed every line was blamed on #528. No longer the case after running git config blame.ignoreRevsFile .git-blame-ignore-revs
Merge activity
|
This fixes a bug where the
agent
query parameter on the extension URI was ignored.We were previously doing:
where
args[2]
was the agent name, but we were discarding it:The same was true for the
coder.open
command. Presumably due to the comment saying multiple agents aren't supported, which hasn't been true for years.