question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Completion provider to provide non-saved file contents

See original GitHub issue

Hi, great work on the lib!

I am writing a VSC extension for our python framework and trying to implement autocomplete. The problem is trigger_characters are not enough for me as I would need to know more context. E.g. differentiate when the completion was triggered by q.client. or q.app. so that I could provide valid completion items ofc. I am able to get the triggering file contents, but it is not up to date as the file is dirty (not saved yet).

My question is if there is any way to get the file contents of a dirty file.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
mturocicommented, Jun 16, 2021

@danixeee I can confirm that proposed fix works like a charm for me, thanks!

0reactions
danixeeecommented, Jun 30, 2021

@mturoci Could you send the content of a log file?

Read more comments on GitHub >

github_iconTop Results From Across the Web

4 Ways To Recover Notepad File On Win 10 Quickly - MiniTool
The temporary files are only useful for recovering unsaved content; it won't work if you'd like to recover the lost or deleted notepad...
Read more >
How to recover unsaved Word documents - Microsoft Learn
Word backup file names have a ".wbk" extension. If you have the "backup copy" option selected in Word, there might be a backup...
Read more >
Recover InDesign documents - Adobe Support
Learn how to recover documents or files if Adobe InDesign shuts down, crashes, or hangs unexpectedly.
Read more >
How to restore lost work/data by running a Journal file in Revit
The journal file could not be run to completion. Utilize care in saving any work as the project may be in an unstable...
Read more >
VS Code API | Visual Studio Code Extension API
Despite that, features like automatic word-completion, code navigation, or code checking have become popular across different tools for different ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found