ios-swift-for-vs-code icon indicating copy to clipboard operation
ios-swift-for-vs-code copied to clipboard

Autocompletion not working

Open NyxReloaded opened this issue 4 months ago • 4 comments

Description

Since the latest update of the extension, autocompletion has completely stopped working. The automatic suggestions that used to appear while typing code no longer show up. This is seriously affecting productivity and development.

Steps to reproduce the bug:

  1. Open Visual Studio Code.
  2. Install/Update the extension to the latest version.
  3. Open xcode project in vscode (using Xcode iOS Swift IDE extension)
  4. Open a file in a language supported by the extension (e.g., a .swift file).
  5. Start typing code (e.g., a function, a variable, etc.).
  6. Trigger suggest (ctrl + space)
  7. Notice that no suggestions or autocompletion appear. (Only a "Loading..." text appear)

Expected behavior

Autocompletion should provide relevant suggestions based on the typed code, as it did prior to the update.

Actual behavior

No suggestions are provided during autocompletion.

Additional informations

  • Extension version: v0.3.0
  • Visual Studio Code version: 1.91.1
  • Operating system: macOS 15.0.1
  • Logs appear in console :

[Error - 18:31:00] Request textDocument/inlayHint failed. Message: sourcekitd request timed out Code: -32001 [Error - 18:31:01] Request textDocument/semanticTokens/full failed. Message: No language service for 'cpp-ghost-text-preview-widget-anysphere://jwchiymjab' found Code: -3200

Possible causes or suggestions:

I suspect the issue might be related to an issue with the new LSP client support. The previous version which use sourcekit-lsp works.

Thank you for your assistance in resolving this issue!

NyxReloaded avatar Oct 11 '24 16:10 NyxReloaded