Skip to content
This repository has been archived by the owner on May 4, 2023. It is now read-only.

Add extra way to get the document view in inline completion #30

Merged
merged 1 commit into from
Jan 19, 2023

Conversation

picimako
Copy link
Contributor

@picimako picimako commented Jan 19, 2023

Changes

  • Added the ToDocumentView() utility method in EditorUtils and replaced all to DocumentView conversions to use this method.
    • This way InlineCompletionClient is also provided with an additional way of retrieving the DocumentView, and if it fails, then no completion is performed.
  • NOTE: It is not certain that this change fixes Rollbar item 30, but it adds an extra layer of protection to try to prevent it.

@github-actions
Copy link

github-actions bot commented Jan 19, 2023

Test Results

    1 files  ±0    30 suites  ±0   5s ⏱️ -1s
237 tests ±0  229 ✔️ ±0  8 💤 ±0  0 ±0 
242 runs  ±0  234 ✔️ ±0  8 💤 ±0  0 ±0 

Results for commit e3c6246. ± Comparison against base commit 9de28d4.

♻️ This comment has been updated with latest results.

@dastrong-codiga dastrong-codiga merged commit 48e672a into main Jan 19, 2023
@dastrong-codiga dastrong-codiga deleted the fix-view-conversion branch January 19, 2023 15:19
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants