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.

Class function autocomplete

See original GitHub issue

When accepting autocomplete for an override function, the func keyword gets added twice, resulting in broken code.

e.g. with this code:

class Foobar: UIViewController {
  func vie
}

and having the cursor after func vie and choosing viewDidAppear(_ animated: Bool) results in the following code:

class Foobar: UIViewController {
    func override func viewDidAppear(_ animated: Bool) {
    
    }
}

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
vknabelcommented, Mar 31, 2018

@rudedogg great to hear! And as it solved your issues: I just released 2.3.0.

0reactions
rudedoggcommented, Mar 31, 2018

@vknabel Sorry for the really late reply. Electron apps are laggy for some reason on my Hackintosh, but new graphics drivers were released so VS Code is running a lot better.

I tried the 2.3.0 VSIX release you linked, and it fixes the double dot (..) issue when accepting a completion candidate 🎉 !

In case it helps debug that issue, here’s my setup: macOS 10.13.4, VS Code 1.21.1, project targeting macOS 10.10 (https://github.com/akhilcb/ACBTokenField)

Read more comments on GitHub >

github_iconTop Results From Across the Web

vscode autocomplete class functions - python - Stack Overflow
Is there a way to make VSCODE autocomplete class functions in python? when I create the constructor it works but if I simply...
Read more >
Using Class Completion - RAD Studio - Embarcadero DocWiki
Class completion automates the definition of new classes by generating skeleton code for Delphi class members that you declare. The shortcut key for...
Read more >
Plugin.AutoComplete Class - YUI Library - GitHub Pages
An array of classes (constructor functions), making up the class hierarchy for this object. This value is cached the first time the method,...
Read more >
Autocomplete doesn't work on type-hinted module classes as ...
VSCode doesn't auto-complete the type-hinted function paramater, when you type hint it as module.class such as the enum.Enum as shown below.
Read more >
Customize Code Suggestions and Completions - MathWorks
To customize code suggestions and completions for your functions and classes, provide MATLAB ® with information about your function signatures.
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