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

chore: make LSP test less prone to changes #20003

Merged
merged 1 commit into from
Aug 1, 2023

Conversation

bartlomieju
Copy link
Member

This test was getting changed often, I modified it a bit
so it's less sensitive to changes in declaration files.

@bartlomieju bartlomieju enabled auto-merge (squash) July 31, 2023 23:08
@dsherret dsherret disabled auto-merge August 1, 2023 01:30
@dsherret dsherret enabled auto-merge (squash) August 1, 2023 01:31
Copy link
Member

@dsherret dsherret left a comment

Choose a reason for hiding this comment

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

LGTM!

@@ -5108,9 +5108,12 @@ fn lsp_completions_auto_import() {
);
assert!(!list.is_incomplete);
let item = list.items.iter().find(|item| item.label == "foo");
if item.is_none() {
let Some(item) = item else {
panic!("completions items missing 'foo' symbol");
Copy link
Member

Choose a reason for hiding this comment

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

In the future, we should just unwrap these.

@dsherret dsherret merged commit a05e890 into denoland:main Aug 1, 2023
11 checks passed
@bartlomieju bartlomieju deleted the lsp_test branch August 1, 2023 08:34
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.

None yet

2 participants