vscode-swift icon indicating copy to clipboard operation
vscode-swift copied to clipboard

Issues with dependencies in edit mode

Open 0xTim opened this issue 8 months ago • 1 comments

Describe the bug There are a number of bugs when putting a dependency in edit mode via the extension. The 2 big ones are:

  • The dependency/package view in the project pane disappears so you can't click through to dependencies and view the code of the package you're trying to edit
  • Indexing seems to fail for the local dependency, making things like autocomplete, click through to method etc fail

To Reproduce Steps to reproduce the behavior:

  1. Open a package
  2. Right click on dependency and select 'use local version'
  3. Error

Expected behavior Things to work the same as if it were a remote dependency

Environment

  • OS: macOS 15.5
  • Swift version
swift-driver version: 1.120.5 Apple Swift version 6.1 (swiftlang-6.1.0.110.21 clang-1700.0.13.3)
Target: arm64-apple-macosx15.0
  • Visual Studio Code version: 1.100.2
  • vscode-swift version: 2.4.0

Additional context N/A

0xTim avatar Jun 19 '25 12:06 0xTim

Here is the related sourcekit-lsp issue https://github.com/swiftlang/sourcekit-lsp/issues/1877

adam-fowler avatar Jun 19 '25 14:06 adam-fowler