Skip to content

Conversation

@Wilfred
Copy link
Contributor

@Wilfred Wilfred commented Jan 8, 2025

Ensure that all the fields that rust-analyzer understands are in the manual, they all have doc comments, and they use consistent punctuation (; rather than mixing , and ;).

Whilst we're here, fix the sysroot_src example and add 2024 as a legal value for Rust edition.

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jan 8, 2025
args: string[];
/// The current working directory of the runnable.
cwd: string;
kind: 'check' | 'run' | 'testOne';
Copy link
Member

Choose a reason for hiding this comment

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

Let's give kind a comment too.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think testOne is the only value that's used when you have a rust-project.json, so I've documented that and removed the other mentions.

@Wilfred Wilfred force-pushed the document_build_info branch from 9db9b53 to 6ab6084 Compare January 9, 2025 23:52
args: string[];
/// The current working directory of the runnable.
cwd: string;
/// Used to decide what CodeLens to offer.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
/// Used to decide what CodeLens to offer.
/// Used to decide what code lens to offer.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated. FWIW VS Code uses this capitalisation, but I agree that 'code lens' reads more nicely here.

/// 'testOne': This runnable will be used when the user clicks the 'Run Test'
/// CodeLens above a test.
///
/// The args can contain two template strings: `{label}` and `{test_id}`.
Copy link
Member

Choose a reason for hiding this comment

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

This seems copy-pasted from above, by mistake.

Ensure that all the fields that rust-analyzer understands are in the
manual, they all have doc comments, and they use consistent
punctuation (`;` rather than mixing `,` and `;`).

Whilst we're here, fix the `sysroot_src` example and add 2024 as a
legal value for Rust edition.
@Wilfred Wilfred force-pushed the document_build_info branch from 6ab6084 to 86a4b2f Compare January 21, 2025 20:00
@lnicola lnicola added this pull request to the merge queue Jan 22, 2025
Merged via the queue into rust-lang:master with commit 1f23156 Jan 22, 2025
9 checks passed
@Wilfred Wilfred deleted the document_build_info branch January 24, 2025 19:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants