Skip to content
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

fix(vscode): navigate to code browser #2315

Merged
merged 3 commits into from
May 31, 2024
Merged

fix(vscode): navigate to code browser #2315

merged 3 commits into from
May 31, 2024

Conversation

wwayne
Copy link
Contributor

@wwayne wwayne commented May 31, 2024

No description provided.

@wwayne wwayne requested review from wsxiaoys and liangfung May 31, 2024 10:43
Comment on lines 42 to 45
const filePathQuery = `redirect_filepath=${context.filepath}`;
const gitUrlQuery = `redirect_git_url=${context.git_url}`;
const lineQuery = `line=${context.range.start}`;
const url = `${serverInfo.config.endpoint}/files?${filePathQuery}&${gitUrlQuery}&${lineQuery}`;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use URL and searchParams to properly encode url.

@wsxiaoys wsxiaoys marked this pull request as draft May 31, 2024 10:50
const serverInfo = await this.agent.fetchServerInfo();
const filePathQuery = `redirect_filepath=${context.filepath}`;
const gitUrlQuery = `redirect_git_url=${context.git_url}`;
const lineQuery = `line=${context.range.start}`;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should encode the params

@wwayne wwayne force-pushed the vscode-navigate branch from 7fa9766 to 59cb5f6 Compare May 31, 2024 10:55
@wwayne wwayne marked this pull request as ready for review May 31, 2024 10:55
@wwayne wwayne requested review from wsxiaoys and liangfung May 31, 2024 10:55
@wsxiaoys wsxiaoys enabled auto-merge (squash) May 31, 2024 10:56
@wsxiaoys wsxiaoys merged commit 4e1e061 into main May 31, 2024
4 checks passed
@wsxiaoys wsxiaoys deleted the vscode-navigate branch May 31, 2024 10:58
wsxiaoys pushed a commit that referenced this pull request Jun 3, 2024
* fix(vscode): navigate to code browser

* [autofix.ci] apply automated fixes

* update

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants