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.

VSCode autocompletion doesn't "complete", duplicates existing text

See original GitHub issue

Apologies if this is easily fixed, but I wasn’t able to find it in the docs.

On my Mac, when I type any VSCode autocompletion, the autocompletion appends to what I have already written, producing invalid code. Say I’m writing is.infinite, and I have written is., I navigate over to infinite and press tab or Enter and the editor produces is.is.infinite().

Is there a setting to change this behavior? Is this intended to be the default behavior? Or am I missing something?

Thank you.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:2
  • Comments:15 (9 by maintainers)

github_iconTop GitHub Comments

2reactions
renkun-kencommented, Oct 15, 2021

Ah! I just noticed that this issue only occurs inside .Rmd code chunks and not in .R files. Can you reproduce there?

Yes, I could reproduce it in rmd. Thanks for reporting!

1reaction
renkun-kencommented, Oct 17, 2021

From the logging of the languageserver, the beginning tokens seem correct:


[2021-10-17 13:27:02.649] token: {
  "full_token": "is.",
  "right_token": "",
  "package": null,
  "accessor": "",
  "token": "is."
}

[2021-10-17 13:27:02.656] bracket is  

[2021-10-17 13:27:02.657] completions:  {
  "init_count": 57,
  "final_count": 57,
  "time": 0.0078,
  "isIncomplete": false
}

[2021-10-17 13:27:19.168] token: {
  "full_token": "data.",
  "right_token": "",
  "package": null,
  "accessor": "",
  "token": "data."
}

[2021-10-17 13:27:19.176] bracket is  

[2021-10-17 13:27:19.177] completions:  {
  "init_count": 62,
  "final_count": 62,
  "time": 0.0089,
  "isIncomplete": false
}
Read more comments on GitHub >

github_iconTop Results From Across the Web

[Bug] Duplicated suggestions, typehints, docs etc. #3027
Open both. Switch from Python file to the Notebook and back. After some seconds the typhints, autocomplete suggestions, etc. are duplicated.
Read more >
Tab autocomplete in Visual Studio Code doesn't work
editor.tabCompletion was off. When I turn it on it toggles between some options (e.g. div/device) but doesn't close tags or complete anything.
Read more >
IntelliSense in Visual Studio Code
IntelliSense. IntelliSense is a general term for various code editing features including: code completion, parameter info, quick info, and member lists.
Read more >
Remote Development with VS Code
VS Code remote support for WSL, Containers, and SSH.
Read more >
January 2022 (version 1.64) - Visual Studio Code
Editor. Audio cues. Audio cues indicate if the current line has certain markers, such as errors, breakpoints, or folded text regions. They ...
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