Describe the bug
When a product depends on another product in the same project, it seems when making changes in the product (in this case the Library product/target), it does not reflect instantly in the executable product/target.
You need to rebuild at the moment for the index to be updated. There is work going on in SourceKit-LSP to enable background indexing, which will hopefully be available in Swift 6
Describe the bug When a product depends on another product in the same project, it seems when making changes in the product (in this case the Library product/target), it does not reflect instantly in the executable product/target.
To Reproduce Steps to reproduce the behavior:
Create file structure as follows:
Add these files:
Library.swift
:main.swift
:Package.swift
:Library.swift
, change the name of the function or argument name.I have to rebuild from command line and restart the the editor for the changes to be reflected.
Expected behavior Changes are instantly reflected.
Environment