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 go-to-definition within same document #1224

Merged
merged 2 commits into from
Jan 10, 2025
Merged

Conversation

nighca
Copy link
Collaborator

@nighca nighca commented Jan 9, 2025

Copy link

qiniu-prow bot commented Jan 9, 2025

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@@ -27,7 +27,7 @@ type SpxDefinition struct {

// HTML returns the HTML representation of the definition.
func (def SpxDefinition) HTML() string {
return fmt.Sprintf("<definition-item def-id=%q overview=%q>\n%s</definition-item>\n", def.ID, def.Overview, def.Detail)
return fmt.Sprintf("<definition-item def-id=%s overview=%s>\n%s</definition-item>\n", attr(def.ID.String()), attr(def.Overview), def.Detail)
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

%q 会把内容中的 " escape 为 \",而 HTML 要求 &quot; / &#34;

@nighca nighca marked this pull request as ready for review January 9, 2025 09:51
@nighca nighca requested a review from Copilot January 9, 2025 09:53

Choose a reason for hiding this comment

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

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

@qiniu-ci
Copy link

qiniu-ci commented Jan 9, 2025

This PR has been deployed to the preview environment. You can explore it using the preview URL.

Warning

Please note that deployments in the preview environment are temporary and will be automatically cleaned up after a certain period. Make sure to explore it before it is removed. For any questions, contact the Go+ Builder team.

@aofei aofei merged commit 2d47003 into goplus:dev Jan 10, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Markdown parsing issue with string constant "Go to definition" fails to locate within same file
3 participants