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

feat: Allow not showing inline preview for completers when inlineEnabled is set to true. #5315

Merged
merged 11 commits into from
Sep 19, 2023

Conversation

akoreman
Copy link
Contributor

@akoreman akoreman commented Sep 14, 2023

Issue #, if available: NA

Description of changes: Now, we have a property at the AutoComplete level to enable inline preview for all completion items within that AutoComplete. For some use-cases, users might want to have more granularity and only show inline previews for some of the registered completers.

This adds a property to Completer to allow hiding that completer from the inline preview.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@codecov
Copy link

codecov bot commented Sep 14, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: +0.05% 🎉

Comparison is base (76b725c) 87.33% compared to head (1a5b054) 87.39%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5315      +/-   ##
==========================================
+ Coverage   87.33%   87.39%   +0.05%     
==========================================
  Files         574      574              
  Lines       45482    45534      +52     
  Branches     6934     6935       +1     
==========================================
+ Hits        39723    39793      +70     
+ Misses       5759     5741      -18     
Flag Coverage Δ
unittests 87.39% <100.00%> (+0.05%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Changed Coverage Δ
src/autocomplete.js 84.20% <100.00%> (+2.22%) ⬆️
src/autocomplete/inline.js 100.00% <100.00%> (+3.12%) ⬆️
src/autocomplete/inline_test.js 99.47% <100.00%> (+0.07%) ⬆️
src/autocomplete_test.js 98.41% <100.00%> (+0.14%) ⬆️

... and 2 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@akoreman akoreman changed the title Allow not showing inline preview for Completion items when inlineEnabled is set to true. Allow not showing inline preview for completers when inlineEnabled is set to true. Sep 18, 2023
@akoreman akoreman marked this pull request as ready for review September 19, 2023 09:03
@akoreman akoreman changed the title Allow not showing inline preview for completers when inlineEnabled is set to true. feat: Allow not showing inline preview for completers when inlineEnabled is set to true. Sep 19, 2023
@akoreman akoreman merged commit f3e3330 into ajaxorg:master Sep 19, 2023
@akoreman akoreman deleted the inline-completion branch September 19, 2023 14:48
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