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

fix(lsp): align filter text to vscode logic #12081

Merged
merged 2 commits into from Sep 16, 2021

Conversation

kitsonk
Copy link
Contributor

@kitsonk kitsonk commented Sep 15, 2021

Fixes #11861

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. Just one question.

if let Some(insert_text) = &self.insert_text {
if insert_text.starts_with("this.#") {
return Some(insert_text.replace("this.#", ""));
} else {
Copy link
Member

Choose a reason for hiding this comment

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

Do we need to remove this. in the case where it only starts with this.?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It is a replication of the vscode logic, which does not do this. And it only sets the filter text. When the replacement text is this.# there is then effectively empty filter text, which is then nothing.

cli/lsp/tsc.rs Outdated Show resolved Hide resolved
@kitsonk kitsonk merged commit ccb3387 into denoland:main Sep 16, 2021
@kitsonk kitsonk deleted the kitsonk/issue11861 branch September 16, 2021 02:07
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.

lsp: suggestion should include "#privateVariable" when typing it without "#" symbol
3 participants