-
Notifications
You must be signed in to change notification settings - Fork 217
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
base: main
Are you sure you want to change the base?
Conversation
jac/jaclang/langserve/engine.py
Outdated
@@ -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]]: |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
This reverts commit 2a96447.
Description