New
Swift 6.1 Release
What's Changed
- Add LSP support for showing Macro Expansions by @lokesh-tr in https://github.com/swiftlang/sourcekit-lsp/pull/1436
- Update Contributing Docs - Encourage PRs Even When Stuck by @mikaelacaron in https://github.com/swiftlang/sourcekit-lsp/pull/1494
- Add comment to keep the message about keeping the list of information collected in sourcekit-lsp in sync with the VS Code plugin by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1488
- Allow prefixing of the token for a
WorkDoneProgresswith a custom string by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1493 - Fix a nondeterministic test failure of
testDontStackTargetPreparationForEditorFunctionalityby @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1499 - Watch for changes to
Package.resolvedby @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1501 - Add test case that we don't reload the package if a
.swiftfile get added in a folder that doesn't affect compilation by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1508 - Delete CODE_OF_CONDUCT.md by @parispittman in https://github.com/swiftlang/sourcekit-lsp/pull/1511
- Add a variant of
sendtoTestSourceKitLSPClientthat allows implicit discarding ofVoidResponseby @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1519 - Sort cases in
handleImplby @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1518 - Update links for repositories moved to the swiftlang org on GitHub by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1513
- Log path of the toolchain used to opening a document by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1502
- Add a request to re-index all files in SourceKit-LSP by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1507
- Add documentation about what a diagnose bundle contains by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1520
- Migrate
SemanticTokensTeststo use position markers by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1509 - Remove Ben Langmuir as a code owner by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1515
- Translate the semantic token legend used by clangd to the semantic token legend used by SourceKit-LSP by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1510
- Send
SIGKILLtoswift-frontendindexing processes by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1500 - [NFC] Delete release branch PR template in favor of org-wide variant by @AnthonyLatsis in https://github.com/swiftlang/sourcekit-lsp/pull/1433
- Add documentation about each module's purpose and move some files between modules by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1517
- Add documentation about editor integration with Nova. by @logancollins in https://github.com/swiftlang/sourcekit-lsp/pull/1523
- Handle diagnostics in secondary files correctly by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1528
- Allow configuring of SourceKit-LSP’s options using configuration files by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1524
- add support for riscv64 by @futurejones in https://github.com/swiftlang/sourcekit-lsp/pull/1483
- Support using SourceKit-LSP for projects that are cross-compiled by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1535
- Make background indexing a proper option in
SourceKitLSPOptionsby @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1533 - Allow specification of SourceKitLSPOptions in the initialize request and look for SourceKit-LSP options in
$XDG_CONFIG_HOME/sourcekit-lspby @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1534 - Fix a compilation issue caused by #1533 and #1524 racing by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1536
- Prepend module name to TestItem IDs by @plemarquand in https://github.com/swiftlang/sourcekit-lsp/pull/1530
- Skip
testWasmif the host toolchain can’t build for WASM by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1538 - removed OpenGeneratedInterfaceRequest by @AppAppWorks in https://github.com/swiftlang/sourcekit-lsp/pull/1532
- Set
prioritizeKeepingFunctionOutputTogetherin.swift-formatby @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1544 - Add a maximum duration for sourcekitd requests by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1543
- Skip
testFreestandingMacroExpansionif host toolchain does not support background indexing by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1548 - Add LSP extension to show Macro Expansions (or any document) in a "peeked" editor (and some minor quality improvements) by @lokesh-tr in https://github.com/swiftlang/sourcekit-lsp/pull/1479
- Skip
testAttachedMacroExpansionif host toolchain does not support background indexing by @lokesh-tr in https://github.com/swiftlang/sourcekit-lsp/pull/1553 - Remove document manager in
SwiftLanguageServiceby @louisunlimited in https://github.com/swiftlang/sourcekit-lsp/pull/1466 - Respect module name argument order precedence by @plemarquand in https://github.com/swiftlang/sourcekit-lsp/pull/1549
- Import new Android overlay by @finagolfin in https://github.com/swiftlang/sourcekit-lsp/pull/1550
- Bump
swift-argument-parserto 1.4.0 by @MaxDesiatov in https://github.com/swiftlang/sourcekit-lsp/pull/1172 - Import new Bionic module from Android overlay instead where possible by @finagolfin in https://github.com/swiftlang/sourcekit-lsp/pull/1559
- Add more test discovery tests by @plemarquand in https://github.com/swiftlang/sourcekit-lsp/pull/1560
- Add TriggerReindexRequest to builtinRequests by @plemarquand in https://github.com/swiftlang/sourcekit-lsp/pull/1561
- Fix incorrect ConfiguredTargets for Package.swift w/ multiple workspaces by @plemarquand in https://github.com/swiftlang/sourcekit-lsp/pull/1545
- Fixup some import related warnings by @plemarquand in https://github.com/swiftlang/sourcekit-lsp/pull/1557
- Report workspace/triggerReindex server capability by @plemarquand in https://github.com/swiftlang/sourcekit-lsp/pull/1563
- Convert String Concatenation to String Interpolation by @AppAppWorks in https://github.com/swiftlang/sourcekit-lsp/pull/1551
- CONTRIBUTING.md: Update for new Swift.org section about release branch PRs by @AnthonyLatsis in https://github.com/swiftlang/sourcekit-lsp/pull/1574
- Import
Darwinin files that usefreeby @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1577 - Adopt
packageaccess level by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1573 - Fix for trivia not preserved after string interpolation conversion by @AppAppWorks in https://github.com/swiftlang/sourcekit-lsp/pull/1575
- [build-script-helper] Switch the
--no-cleanflag to--cleanand have it actually do something by @finagolfin in https://github.com/swiftlang/sourcekit-lsp/pull/1558 - Build SourceKit-LSP in the Swift 6 language mode by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1583
- Add Run/Debug CodeLens Support by @plemarquand in https://github.com/swiftlang/sourcekit-lsp/pull/1556
- Add option to allow SourceKit-LSP to prepare a target without lazy type checking by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1585
- Take the maximum modification date in a symlink change as the mtime of the file by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1572
- Re-arrange modules for clarity by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1581
- Add a documentation document about background indexing by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1571
- Make SourceKit-LSP’s documentation more discoverable by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1584
- Make SourceKit-LSP build without warnings by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1590
- Log the options with which SourceKit-LSP is launched by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1589
- Suggest configuration file to enable background indexing in docs by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1588
- Add a configuration profile to enable extended logging in SourceKit-LSP by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1582
- Fix an infinite recursion when printing the redacted description of
SourceKitLSPOptionsby @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1595 - Build in Swift 6 mode using CMake by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1593
- Remove null byte after home directory on Windows by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1596
- Allow macro expansions to be viewed through
GetReferenceDocumentRequestinstead of storing in temporary files by @lokesh-tr in https://github.com/swiftlang/sourcekit-lsp/pull/1567 - Move
Background Indexing.mdtoContributor Documentationby @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1607 - Improve logging of the type of build system that was opened. by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1606
- Fix build warnings by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1603
- Add configuration option to disable the sandbox for SwiftPM operations by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1605
- Remove
indexPrefixMappingsfromBuildSystemby @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1570 - Add a section to the
Enable Experimental Background Indexingdocument to describe the behavior without background indexing by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1611 - Adopt new async (but not yet swift 6) methods from SwiftPM by @AndrewHoos in https://github.com/swiftlang/sourcekit-lsp/pull/1609
- Log a signpost event when a request is cancelled by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1612
- Type-qualify accessors in call hierarchy by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1616
- Allow the
debug run-sourcekitd-requestsubcommand to execute multiple sourcekitd requests by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1617 - Add configuration options to adjust log level and log privacy level on non-Apple platforms by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1615
- Ensure that all
TODOandFIXMEcomments have associated issues by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1602 - Add a test case that we get build settings for a SwiftPM package if package hasn't been resolved by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1618
- Use
firstRangeinstead of implementingfirstIndexby @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1619 - Add documentation of how to configure SourceKit-LSP for embedded projects by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1622
- Use BuildDescription.traverseModules to get the target targets of a SwiftPM package by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1621
- Re-arrange members in
SwiftPMBuildSystemby groups by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1620 - Remove
sanitizedHomeDirectoryForCurrentUserby @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1623 - [SwiftPM] Switch from
BuildTripletoBuildDestinationby @xedin in https://github.com/swiftlang/sourcekit-lsp/pull/1627 - Add convenience accessor in tests to get a full diagnostic report by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1630
- Implicitly cancel text document requests when the document is edited or closed by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1629
- Add a debug subcommand that shows the requests that are currently being handled by SourceKit-LSP by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1628
- Support expansion of nested macros by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1631
- Remove workarounds that are no longer needed by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1633
- Remove
ExperimentalFeature.showMacroExpansionsflag for macro expansions by @lokesh-tr in https://github.com/swiftlang/sourcekit-lsp/pull/1635 - Address review comments to #1631 by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1637
- Fix the build using a Swift 5.10 compiler by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1638
- Add an extra percent encoding layer when encoding DocumentURIs to LSP requests by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1636
- Add support for semantic functionality in macro expansion reference documents by @lokesh-tr in https://github.com/swiftlang/sourcekit-lsp/pull/1634
- Use SwiftPM's SDK computation logic by @kabiroberai in https://github.com/swiftlang/sourcekit-lsp/pull/1643
- Print error when creation of a sourcekitd request from YAML fails in the
debug run-sourcekitd-requestcommand by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1640 - Remove custom decoding function from
SourceKitLSPOptionsby @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1646 - Don’t block the generation of a build system by build graph generation by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1632
- Fix a race condition that could cause the build graph to not be generated when doing initial background indexing by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1652
- Start migration of the communication between SourceKit-LSP and build systems to happen via the Build Server Protocol (BSP) by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1649
- Create
BuiltInBuildSysteminBuildSystemAdapterby @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1653 - Fix retain cycle between
BuiltInBuildSystemAdapterandBuiltInBuildSystemAdapterDelegateby @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1654 - Use BSP requests to get build settings of a source file by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1655
- Make
Workspacethe delegate of aBuildSystemManagerby @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1656 - Allow overriding the timeout duration for tests by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1657
- Migrate
fileHandlingCapabilityandprepareto BSP and removeregisterForChangeNotificationsby @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1659 - Revert "Add an extra percent encoding layer when encoding DocumentURIs to LSP requests" by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1658
- Migrate getting the list of all source files to BSP by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1660
- Migrate
defaultLanguage(for:)andfilesDependenciesUpdatedto BSP and useInitializeRequestfrom BSP to communicate static options by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1663 - Implicitly trigger build graph generation when creating a
SwiftPMBuildSystemand migratetargets(dependingOn:)andtopologicalSortto BSP by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1664 - Migrate the remaining methods in
BuiltInBuildSystemto be BSP-based by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1665 - Skip
testWasmin CI if toolchain cannot compile for wasm by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1666 - Use a
LocalConnectionto communicate the BSP messages between SourceKit-LSP and the build system by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1668 - Clean-up of the build system integration by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1674
- Mark all transitive dependents of a modified target as being unprepared by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1680
- Require a Swift 6 compiler to build SourceKit-LSP by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1677
- Close code completion session when a document’s dependencies are updated 🚥 #1680 by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1681
- Fix a memory leak by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1675
- Update cancellation tests to harder type checking example by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1678
- Only reopen files for which the build settings actually changed by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1676
- Fix an issue that caused us to not get compiler arguments when opening a SwiftPM package at a symlink by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1682
- When a JSON-RPC connection is closed, send an error response to all outstanding requests by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1688
- Don’t send messages to the BSP server before the
build/initializerequest returns by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1684 - Adopt faster
traverseModulesimplementation in SwiftPM by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1683 - Support building SourceKit-LSP using Swift 5 language mode by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1690
- Only scan test targets for tests by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1685
- Remove VS Code tasks.json to run all tests in parallel by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1691
- Revert "When a JSON-RPC connection is closed, send an error response to all outstanding requests" by @MaxDesiatov in https://github.com/swiftlang/sourcekit-lsp/pull/1706
- Tweak diagnose bundle documentation by @bnbarham in https://github.com/swiftlang/sourcekit-lsp/pull/1697
- Fully specify test IDs if they are not unique by @plemarquand in https://github.com/swiftlang/sourcekit-lsp/pull/1662
- Don't sort CodeActions by @plemarquand in https://github.com/swiftlang/sourcekit-lsp/pull/1709
- When a JSON-RPC connection is closed, send an error response to all outstanding requests by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1707
- Simplify the build servers written written used for BSP integration tests and add test case for BSP integration by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1687
- Expose all BSP messages used by SourceKit-LSP to BSP servers by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1689
- Add a settings.json file to the project by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1699
- Set
isExecutingtotruebefore yielding the execution task by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1711 - Log full options with which SourceKit-LSP is initialized by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1645
- Update issue template to assume that users have installed Swift 6 by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1713
- Restart a BSP server after it has crashed by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1701
- Consistently use
SOURCEKITLSP_as prefix of environment variables instead ofSOURCEKIT_LSPby @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1702 - Specify explicit
selfinExternalBuildSystemAdapterby @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1716 - Make SourceKit-LSP build using a Swift 5.10 compiler again by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1718
- Use fallback build settings if build system doesn’t provide build settings within a timeout by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1700
- Use an
AtomicInt32to countpendingUnitCountinstead of usingAsyncQueueby @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1720 - Revert "Use fallback build settings if build system doesn’t provide build settings within a timeout" by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1723
- Only execute
testCodeCompletionShowsUpdatedResultsAfterDependencyUpdatedif SwiftPM supports experimental-prepare-for-indexing by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1722 - Adopt
InternalImportsByDefaultby @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1710 - Improve logging surrounding build systems by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1712
- Improve
BuildServerBuildSystemTests.testCrashRecoveryby @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1721 - Reduce the number of public imports by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1729
- Allow build systems to specify the files to watch for changes by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1705
- Share implementation of message handling on an
AsyncQueuebetweenBuildSystemIntegrationandSourceKitLSPServerby @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1715 - Add subcommand to visualize the requests running concurrently using a trace file by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1724
- When
withTimeouthits a timeout, don’t wait for cooperative cancellation before returning by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1730 - Explicitly shut down the build server when SourceKit-LSP is shut down by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1719
- Add a document that describes the basic steps needed to implement a BSP server by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1731
- Remove references to the
LanguageServerProtocolmodules in that module itself by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1734 - In
withTaskPriorityChangedHandlerexecute the task that watches for priority changes with high priority by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1737 - Make
BuildSystemManageronly keep a weak reference toSourceKitLSPServerby @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1736 - Mark
MessageDecodingError.MessageKindas@frozenby @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1735 - Fix broken link to Configuration File documentation by @plemarquand in https://github.com/swiftlang/sourcekit-lsp/pull/1740
- Remove elements from
outstandingRequestson crash by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1738 - Fix inadvertent shadowing of ClientCapabilities subtypes by @plemarquand in https://github.com/swiftlang/sourcekit-lsp/pull/1741
- Yield
TimeoutErrorbefore cancelling body task inwithTimeoutby @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1743 - Pass the test name through
assertCodeActionsby @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1748 - Use the test’s default timeout duration for sourcekitd timeouts by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1747
- Skip testWithTimeoutEscalatesPriority by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1749
- Update for EditorPlaceholder SPI changes in swift-syntax by @rintaro in https://github.com/swiftlang/sourcekit-lsp/pull/1746
- Miscellaneous adjustments to make tests pass on Windows by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1751
- Highlight in non-Apple extended logging that the section does not app ly to macOS by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1752
- Build sourcekit-lsp for multiple arches and lipo them by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1717
- Reduce the debounce duration to publish diagnostics to 1s by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1755
- Allow running tests on Windows by using
SWIFTSYNTAX_BUILD_DYNAMIC_LIBRARYby @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1754 - Update BSP connection build server config lookup path by @Rajveer100 in https://github.com/swiftlang/sourcekit-lsp/pull/1728
- Enable
testIndexShutdownby @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1757 - Disable flaky tests on Windows by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1759
- Make
logHandlerprint to stdout instead of stderr by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1760 - Support
workspace/diagnostic/refreshrequest fromTestSourceKitLSPClientby @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1764 - Revert "Make
logHandlerprint to stdout instead of stderr" by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1765 - Remove dependency on ISDBTestSupport by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1767
- Support building only tests using SwiftPM by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1768
- Disable a few more failing tests on Windows by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1772
- Use
withUnsafeFileSystemRepresentationto get the path of a URL on disk by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1774 - Make
DocumentManager.documentsprivate by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1766 - Guard access-level import by
compiler(>=6)by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1777 - Increase the duration in which we allow index cancellation to happen by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1778
- Use fallback build settings if build system doesn’t provide build settings within a timeout by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1762
- Re-enable SemanticTokenTests and SwiftInterfaceTests on Windows by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1773
- When writing an updated package manifest in tests fails, try again by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1785
- Increase timeout duration in
testSourcekitdTimeoutby @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1784 - Fix nondeterministic test failure for tests that await next diagnostic notification by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1782
- Enable
testReferencesInMacroby @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1779 - Fix a race condition that caused
withTimeoutto not escalate the priority of the body by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1780 - Don’t rely on timers for BSP target / settings change tests by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1781
- Fix race condition that caused
testMainFileChangesIfIncludeIsAddedto fail by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1790 - Reduce the number of log messages to log the translation for token types and token modifiers from clangd to SourceKit-LSP by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1795
- Add documentation how to debug memory leaks by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1797
- Fix nondeterministic test failure in
testDependenciesUpdatedSwiftby @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1794 - Fix incorrect log message in
JSONRPCConnectionby @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1796 - Fix swiftPublishDiagnosticsDebounceDuration documentation by @jayadamsmorgan in https://github.com/swiftlang/sourcekit-lsp/pull/1756
- Minor readability changes in Configuration File.md by @kudinovdenis in https://github.com/swiftlang/sourcekit-lsp/pull/1800
- XCTests in extensions produced by symbols have no parent ID by @plemarquand in https://github.com/swiftlang/sourcekit-lsp/pull/1793
- Add a logging option to record all notifications received by SoruceKit-LSP by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1799
- Fix a crash when trying to apply in edit that has out of line positions by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1798
- Switch
Configuration File.mdto consistently use 2 spaces for indentation in list by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1801 - Import new Android overlay in more places by @finagolfin in https://github.com/swiftlang/sourcekit-lsp/pull/1802
- Use
build/taskStart,build/taskProgressandbuild/taskFinishto communicate progress from a BSP server to the client by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1809 - Adopt
MemberImportVisibilityby @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1808 - Don’t log “Did not compute dependents for target” by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1804
- Handle
DocumentRangeFormattingRequestby @MahdiBM in https://github.com/swiftlang/sourcekit-lsp/pull/1806 - Mark
DummyBuildSystemManagerConnectionToClient.waitUntilInitializedaspackageby @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1813 - Split
SKSupportinto multiple modules by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1818 - Allow waiting for the next notification from SourceKit-LSP when the previous wait timed out by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1819
- Fix issue where test nondeterministically failed if SwiftPM doesn't return build settings quickly by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1820
- Address review comments for BSP implementation by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1817
- Enable SwiftPM-baesd tests on Windows by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1821
- Make
.index-builda subdirectory of.buildby @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1803 - Restrict directories that we search for
MyDependency.swiftin tests by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1827 - Add
Task{Start|Progress|Finish}NotificationtoBuildSystemMessageDependencyTrackerby @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1825 - Enable testPluginArgs on Windows by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1822
- Enable background indexing by default by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1714
- Skip tests that use background indexing when running tests with a Swift 5.10 toolchain by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1833
- Enable
MemberImportVisibilityin the CMake build by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1835 - Use
URLin many cases where we usedAbsolutePathby @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1832 - Allow
scratchPathto be a relative path by @kateinoigakukun in https://github.com/swiftlang/sourcekit-lsp/pull/1824 - Fix merge conflict by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1838
- Handle on-type formatting requests by @MahdiBM in https://github.com/swiftlang/sourcekit-lsp/pull/1815
- Add another import of new Android overlay and remove non-existent file exclusion from package manifest by @finagolfin in https://github.com/swiftlang/sourcekit-lsp/pull/1848
- Fix quadratic performance issue in
AsyncQueue<Serial>by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1840 - Log integers and booleans as public information by default in
NonDarwinLoggerby @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1841 - Reply with
nulltoshutdownrequest by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1842 - Don’t crash when opening a file with an empty path by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1843
- Fully qualify type names in call hierarchy, type hierarchy and workspace symbols by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1844
- Minor improvements to
DLHandle.Handleby @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1839 - Provide build settings for version-specific package manifests by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1845
- [6.1] Update related dependencies to release/6.1 by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1850
- Include parameters in initializer document symbols by @matthewbastien in https://github.com/swiftlang/sourcekit-lsp/pull/1852
- Include all resources in a build target's sources list by @matthewbastien in https://github.com/swiftlang/sourcekit-lsp/pull/1853
- Handle new swift-syntax closure expansion behavior by @woolsweater in https://github.com/swiftlang/sourcekit-lsp/pull/1831
- Handle
*.mdand*.tutorialfiles from Swift DocC by @matthewbastien in https://github.com/swiftlang/sourcekit-lsp/pull/1854 - Only load BSP servers that support one of the language we are interested in by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1860
- Log package loading messages to the index log by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1861
- Log which file caused the package to be reloaded by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1862
- Don’t re-index file if we are waiting for its preparation by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1864
- Only show call-like occurrences in call hierarchy. by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1868
- Batch updates to the syntactic test index on fileDidChange events by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1869
- Treat
$/setTraceas a freestanding message by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1871 - Improve logic for build graph generation status by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1863
- Cache path components for directories returned from build system by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1866
- Cached transformed results in
Cacheby @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1867 - Don’t show warning message when opening projects that don't support background indexing by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1872
- Don’t escape
{inside placeholder snippets by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1870 - Don’t implicitly cancel code completion requests on document edits by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1857
- Create child scopes for SwiftPM operations by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1873
- Allow dependency updates in the
index-buildfolder by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1874 - Return compiler arguments for invalid package manifests by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1846
- Merge
mainintorelease/6.1by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1879 - Fix background indexing behavior if a source file is included in two targets via a symlink by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1858
- Improve performance of
sourceFilesAndDirectoriesby @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1865 - Normalize Windows drive letter to be uppercase by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1880
- Fix an error that causes SourceKit-LSP to exit immediately on Windows by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1882
- When a sourcekitd diagnostics request fails, show the request error as a diagnostic on the source file by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1886
- Check that we get correct package version even if package manifest is invalid by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1885
- Interpret the
-index-store-pathrelative to the command’s directory by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1888 - build: wire in LMDB for IndexStoreDB dependency by @compnerd in https://github.com/swiftlang/sourcekit-lsp/pull/1823
- Merge
mainintorelease/6.1by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1892 - Generate JSON Schema and Markdown doc for
.sourcekit-lsp/config.jsonby @kateinoigakukun in https://github.com/swiftlang/sourcekit-lsp/pull/1849 - fix ASTBuild command exec failed by @Kila2 in https://github.com/swiftlang/sourcekit-lsp/pull/1895
- feature support override buildSettingsTimeout by workspace config.json by @Kila2 in https://github.com/swiftlang/sourcekit-lsp/pull/1898
- Emit a log message when we receive a cancel request notification by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1904
- Add semantic highlighting for macros by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1903
- Clear
inProgressTextDocumentRequestsontextDocumentTrackingQueueby @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1902 - [Test] Link macro binaries to _SwiftSyntaxCShims objects by @rintaro in https://github.com/swiftlang/sourcekit-lsp/pull/1901
- Support semantic functionality in generated interfaces if the client supports
getReferenceDocumentby @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1887 - Add option to generate an output mirror file that contains the exact data sent from SourceKit-LSP to the client by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1905
- Remove
SourceKitLSPServer.openGeneratedInterfaceby @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1907 - Cache container names in
CheckedIndexby @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1909 - Merge
mainintorelease/6.1by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/1911 - [6.1] Support background indexing when cross-compiling by @kabiroberai in https://github.com/swiftlang/sourcekit-lsp/pull/1939
- [6.1] Allow workspace options to affect build system search by @bnbarham in https://github.com/swiftlang/sourcekit-lsp/pull/1952
- [6.1] Update the compiler arguments used for background AST builds by @bnbarham in https://github.com/swiftlang/sourcekit-lsp/pull/1972
- [6.1] Use the new SwiftPM API to load the build plan by @bnbarham in https://github.com/swiftlang/sourcekit-lsp/pull/1981
- [6.1] Retry loading the build description if it fails to write
output-file-map.jsonon Windows by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/2010 - [6.1] Only show the
Scheduling Indexingprogress if no indexing tasks are currently happening by @ahoppen in https://github.com/swiftlang/sourcekit-lsp/pull/2052
New Contributors
- @mikaelacaron made their first contribution in https://github.com/swiftlang/sourcekit-lsp/pull/1494
- @parispittman made their first contribution in https://github.com/swiftlang/sourcekit-lsp/pull/1511
- @AnthonyLatsis made their first contribution in https://github.com/swiftlang/sourcekit-lsp/pull/1433
- @logancollins made their first contribution in https://github.com/swiftlang/sourcekit-lsp/pull/1523
- @futurejones made their first contribution in https://github.com/swiftlang/sourcekit-lsp/pull/1483
- @AppAppWorks made their first contribution in https://github.com/swiftlang/sourcekit-lsp/pull/1532
- @louisunlimited made their first contribution in https://github.com/swiftlang/sourcekit-lsp/pull/1466
- @AndrewHoos made their first contribution in https://github.com/swiftlang/sourcekit-lsp/pull/1609
- @Rajveer100 made their first contribution in https://github.com/swiftlang/sourcekit-lsp/pull/1728
- @jayadamsmorgan made their first contribution in https://github.com/swiftlang/sourcekit-lsp/pull/1756
- @kudinovdenis made their first contribution in https://github.com/swiftlang/sourcekit-lsp/pull/1800
- @MahdiBM made their first contribution in https://github.com/swiftlang/sourcekit-lsp/pull/1806
- @woolsweater made their first contribution in https://github.com/swiftlang/sourcekit-lsp/pull/1831
- @Kila2 made their first contribution in https://github.com/swiftlang/sourcekit-lsp/pull/1895
Full Changelog: https://github.com/swiftlang/sourcekit-lsp/compare/swift-6.0.3-RELEASE...swift-6.1-RELEASE