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

[typespec-vscode] expose linter rule documentation url in codefixes #5131

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

mzhongl524
Copy link
Member

Modifications

best-practices:
1、Add a URL to the rule file to point to the relevant document.(for testing)

compiler:
1、A new codefix file has been added to handle the Linter Rule doc URL. 2、Added OPEN_RULE_DOC command type.
3、If the diagnostic URL is not empty, add a codefix and process the send request in the server file.

typespec-vscode:
1、Define the request and open the received URL document.

samples:
1、Add lint-related configurations to the yaml configuration file to define a lowercase model type in the tsp file for functional testing. Such as "model foo {}".

Related issues:#3043

1、Add a URL to the rule file to point to the relevant document.(for testing)

compiler:
1、A new codefix file has been added to handle the Linter Rule doc URL.
2、Added OPEN_RULE_DOC command type.
3、If the diagnostic URL is not empty, add a codefix and process the send request in the server file.

typespec-vscode:
1、Define the request and open the received URL document.

samples:
1、Add lint-related configurations to the yaml configuration file to define a lowercase model type in the tsp file for functional testing.
Such as "model foo {}".
@azure-sdk
Copy link
Collaborator

azure-sdk commented Nov 15, 2024

All changed packages have been documented.

  • typespec-vscode
Show changes

typespec-vscode - fix ✏️

[typespec] expose linter rule documentation url in codefixes

@azure-sdk
Copy link
Collaborator

You can try these changes here

🛝 Playground 🌐 Website 📚 Next docs

@RodgeFu RodgeFu added the ide Issues for VS, VSCode, Monaco, etc. label Nov 16, 2024
…efix file, and restore the other codes to the original state.
…fix, and then define the command to open the URL
@mzhongl524 mzhongl524 changed the title [typespec] expose linter rule documentation url in codefixes [not ready][typespec-vscode] expose linter rule documentation url in codefixes Nov 28, 2024
@RodgeFu RodgeFu changed the title [not ready][typespec-vscode] expose linter rule documentation url in codefixes [typespec-vscode] expose linter rule documentation url in codefixes Nov 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ide Issues for VS, VSCode, Monaco, etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants