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

Test to diagnosis syntax error in impl file #1299

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

Conversation

kugesan1105
Copy link
Collaborator

Description

@kugesan1105 kugesan1105 changed the title Test to check the syntax error in impl file Test to diagnosis syntax error in impl file Sep 20, 2024
@@ -80,23 +80,28 @@ def update_modules(
impl_parent=self.modules[file_path],
)

def quick_check(self, file_path: str) -> bool:
def quick_check(self, file_path: str) -> tuple[bool, list[lspt.Diagnostic]]:
Copy link
Contributor

Choose a reason for hiding this comment

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

Not a fan of returning a tuple here just for the purpose of test case checking.

can you use the hover possition strategy for checking as in other tests?

Copy link
Contributor

@marsninja marsninja Oct 7, 2024

Choose a reason for hiding this comment

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

@kugesan1105 let me know if that works, the lsp.Position type stuff in the hover tests.

@marsninja marsninja removed their assignment Oct 7, 2024
This reverts commit 2a96447.
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.

2 participants