From e3fadb5b76a933cbad2b13caf4ea52542877865c Mon Sep 17 00:00:00 2001 From: Alex Hoppen Date: Mon, 17 Mar 2025 10:15:14 -0700 Subject: [PATCH] Re-enable SourceKit-LSP integration test I forgot to change `workspace/_pollIndex` to `workspace/_synchronize` in the integration test when merging https://github.com/swiftlang/sourcekit-lsp/pull/2060. rdar://147100271 --- test-sourcekit-lsp/test-sourcekit-lsp.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/test-sourcekit-lsp/test-sourcekit-lsp.py b/test-sourcekit-lsp/test-sourcekit-lsp.py index 5401edc..e6598f2 100644 --- a/test-sourcekit-lsp/test-sourcekit-lsp.py +++ b/test-sourcekit-lsp/test-sourcekit-lsp.py @@ -1,7 +1,6 @@ # Canary test for sourcekit-lsp, covering interaction with swiftpm and toolchain # language services. -# REQUIRES: rdar147100271 # REQUIRES: have-sourcekit-lsp # Make a sandbox dir. @@ -134,7 +133,7 @@ def main(): "rootPath": args.package, "capabilities": {}, "initializationOptions": { - "listenToUnitEvents": False, + "experimentalFeatures": ["synchronize-request"] }, }, ) @@ -151,7 +150,7 @@ def main(): }, ) - connection.send_request("workspace/_pollIndex", {}) + connection.send_request("workspace/_synchronize", {"index": True}) foo_definition_response = connection.send_request( "textDocument/definition", {