Commit Graph

  • 5202a8fc1c Add test cases that launch a SourceKitLSP server using a BSP server Alex Hoppen 2024-09-19 12:47:06 -07:00
  • 4068428b5e Add a settings.json file to the project Alex Hoppen 2024-09-20 14:57:50 -07:00
  • 4979a96adf Tweak diagnose bundle documentation Ben Barham 2024-09-20 13:36:53 -07:00
  • ffed667c53 Merge pull request #1691 from ahoppen/remove-tasks Alex Hoppen 2024-09-20 07:57:48 -07:00
  • 813a10e66c Simplify the Python files used to write BSP servers for SourceKit-LSP tests Alex Hoppen 2024-09-18 19:26:19 -07:00
  • d8b41d4eff Merge pull request #1685 from ahoppen/only-scan-test-targets Alex Hoppen 2024-09-19 20:41:40 -07:00
  • 24f8803540 Merge pull request #1690 from ahoppen/allow-swift-5 Alex Hoppen 2024-09-19 18:31:18 -07:00
  • 6248d22897 Merge pull request #1683 from ahoppen/traverse-modules Alex Hoppen 2024-09-19 18:03:17 -07:00
  • 0028cf963e Merge pull request #1684 from ahoppen/no-bsp-messages-before-initialize Alex Hoppen 2024-09-19 17:34:19 -07:00
  • 5df19cccfc Merge pull request #1688 from ahoppen/reply-to-requests-on-jsonrpc-closure Alex Hoppen 2024-09-19 17:00:26 -07:00
  • ca774f89b5 Remove VS Code tasks.json to run all tests in parallel Alex Hoppen 2024-09-19 16:05:21 -07:00
  • 2aabaa8067 Support building SourceKit-LSP using Swift 5 language mode Alex Hoppen 2024-09-19 14:07:38 -07:00
  • 120bd8688b Only scan test targets for tests Alex Hoppen 2024-09-18 18:17:38 -07:00
  • 82e0036b96 Don’t send messages to the BSP server before the build/initialize request returns Alex Hoppen 2024-09-18 17:56:01 -07:00
  • 40cc4c60c6 Adjustments because traverseModules no longer returns depth Alex Hoppen 2024-09-18 16:11:02 -07:00
  • 478227308b Merge pull request #1682 from ahoppen/swiftpm-symlink Alex Hoppen 2024-09-19 13:38:11 -07:00
  • 8cdda3272b When a JSON-RPC connection is closed, send an error response to all outstanding requests Alex Hoppen 2024-09-19 12:24:06 -07:00
  • b8b53633cf Merge pull request #1676 from ahoppen/no-reload-if-settings-didnt-change Alex Hoppen 2024-09-18 17:42:25 -07:00
  • 5574fdcb17 Merge pull request #1678 from ahoppen/harder-cancellation Alex Hoppen 2024-09-18 17:42:13 -07:00
  • 14765bbca8 Fix an issue that caused us to not get compiler arguments when opening a SwiftPM package at a symlink Alex Hoppen 2024-09-18 11:51:04 -07:00
  • 4a2d2d07d4 Merge pull request #1675 from ahoppen/fix-mem-leak Alex Hoppen 2024-09-18 11:54:18 -07:00
  • 0f78562eb4 Only reopen files for which the build settings actually changed Alex Hoppen 2024-09-14 10:29:28 -07:00
  • 2446a32604 Fix a memory leak Alex Hoppen 2024-09-16 11:48:45 -07:00
  • 41f8354710 Merge pull request #1677 from ahoppen/require-6.0 Alex Hoppen 2024-09-18 07:53:19 -07:00
  • bc17a9e20f Merge pull request #1680 from ahoppen/transitive-dependencies Alex Hoppen 2024-09-18 07:52:49 -07:00
  • 7ab7c01cdc Require a Swift 6 compiler to build SourceKit-LSP Alex Hoppen 2024-09-16 13:25:59 -07:00
  • 014ebbeee5 Close code completion session when a document’s dependencies are updated Alex Hoppen 2024-09-17 15:06:20 -07:00
  • d8b2cb2a82 Mark all transitive dependents of a modified target as being unprepared Alex Hoppen 2024-09-17 14:36:12 -07:00
  • 23c37ed47a Add method to extract DocumentPositions and text without markers from marked text Alex Hoppen 2024-09-17 11:48:38 -07:00
  • 6a2c2af6fe Add convenience accessor to get the locations of a LocationsOrLocationLinksResponse in tests Alex Hoppen 2024-09-17 11:48:09 -07:00
  • 4ead08884f Simplify and refactor deduplication into standalone method Paul LeMarquand 2024-09-16 20:30:00 -04:00
  • 6e99e34898 Merge pull request #1674 from ahoppen/bsp-cleanup swift-DEVELOPMENT-SNAPSHOT-2024-09-18-a swift-DEVELOPMENT-SNAPSHOT-2024-09-17-a Alex Hoppen 2024-09-16 16:18:17 -07:00
  • 6211298639 Update cancellation tests to harder type checking example Alex Hoppen 2024-09-16 13:50:47 -07:00
  • 3a09df664e Address comments Paul LeMarquand 2024-09-16 16:42:33 -04:00
  • 65c7c181f8 Address feedback, properly handle duplicate IDs in extensions Paul LeMarquand 2024-09-16 15:31:49 -04:00
  • e15bdd7e90 Review SwiftPMBuildSystem.swift Alex Hoppen 2024-09-15 10:20:09 -07:00
  • 2c2d9f9318 Review PrefixMessageWithTaskEmoji.swift Alex Hoppen 2024-09-15 10:03:14 -07:00
  • db539b06ec Review TestBuildSystem.swift Alex Hoppen 2024-09-15 09:26:02 -07:00
  • 0bdbb507c9 Review CompilationDatabaseBuildSystem Alex Hoppen 2024-09-15 09:23:05 -07:00
  • 3753837858 Review CompilationDatabase.swift Alex Hoppen 2024-09-15 09:15:51 -07:00
  • bc9ee378d7 Review QueueBasedMessageHandler Alex Hoppen 2024-09-15 09:01:04 -07:00
  • 316790ff7a Review BuiltInBuildSystem Alex Hoppen 2024-09-15 08:59:51 -07:00
  • 5996e56010 Review BuiltInBuildSystemAdapter Alex Hoppen 2024-09-15 08:55:43 -07:00
  • d155665b73 Review BuildSystemManager Alex Hoppen 2024-09-14 22:39:55 -07:00
  • 0f56e5f32e Simplify FallbackBuildSystem to a free function returning fallback arguments Alex Hoppen 2024-09-15 09:30:25 -07:00
  • a9578bbb45 Review BuildSystemMessageDependencyTracker Alex Hoppen 2024-09-14 18:28:08 -07:00
  • 9ee7c59c7d Minor cleanups Alex Hoppen 2024-09-14 18:24:31 -07:00
  • 3a78b650c1 Share logic to infer language from file extension between BuildSystemManager and FileBuildSettings.patching Alex Hoppen 2024-09-15 10:00:49 -07:00
  • 2f388b988a Send shutdown request to build system from BuildSystemManager Alex Hoppen 2024-09-14 17:40:24 -07:00
  • 85b2f1fd30 Review BuildServerProtocol module for consistency Alex Hoppen 2024-09-14 17:39:07 -07:00
  • 80afa152fb Replace FIXME with TODO Alex Hoppen 2024-09-14 13:22:32 -07:00
  • 6762bb3e25 Remove resolved FIXME Alex Hoppen 2024-09-14 10:41:36 -07:00
  • 765ea4878c Remove testSettingsChangedAfterUnregister Alex Hoppen 2024-09-14 10:34:25 -07:00
  • cb2924a5fb Remove sourceFilesDidChange Alex Hoppen 2024-09-14 09:05:01 -07:00
  • 79e1d2abad If we have a cached request for a superset of the targets, serve the result from that Alex Hoppen 2024-09-14 10:41:56 -07:00
  • 5870ad9eb4 Implement InverseSourcesRequest in BuildSystemManager Alex Hoppen 2024-09-14 08:39:01 -07:00
  • 14e96311ed Fix issue that created incorrect display name for BSP server Alex Hoppen 2024-09-13 23:03:21 -07:00
  • 8a1096375d Remove double logging of BSP replies Alex Hoppen 2024-09-13 23:02:49 -07:00
  • 29cfda032c Refactor sourceFiles to return a dictionary from DocumentURI to SourceFileInfo instead of a SourceFileInfo array Alex Hoppen 2024-09-13 21:42:30 -07:00
  • 70288465dc Log target name instead of the target's URI Alex Hoppen 2024-09-13 17:45:08 -07:00
  • 5ffc782316 Add BSP messages to bspRegistry Alex Hoppen 2024-09-13 17:39:23 -07:00
  • f741b0dd41 Use more fine-grained dependency tracking to allow BSP requests to be handled concurrently Alex Hoppen 2024-09-13 17:36:51 -07:00
  • d00722e33f Use BSP to log messages from preparation in the build system Alex Hoppen 2024-09-13 16:00:56 -07:00
  • 8ac405cb19 Make BuildSystemManager.buildSystem and BuiltInBuildSystemAdapter.underlyingBuildSystem private Alex Hoppen 2024-09-13 15:45:15 -07:00
  • 9334bb7567 Merge pull request #1668 from ahoppen/connection-based-bsp Alex Hoppen 2024-09-16 09:18:05 -07:00
  • 7d11825b16 Fix build issues on Windows Alex Hoppen 2024-09-15 21:15:07 -07:00
  • c93f193d21 Share message handling logic between BuiltInBuildSystemAdapter and BuildSystemManager Alex Hoppen 2024-09-13 15:15:49 -07:00
  • 6cc2cc4e95 Implement reloadPackageStatusCallback using BSP messages Alex Hoppen 2024-08-25 08:28:52 -07:00
  • 66f24e3554 Introduce buildSystemTestHooks Alex Hoppen 2024-08-25 07:30:49 -07:00
  • 3d95375043 Use a LocalConnection to communicate between BuildSystemManager and BuildSystem Alex Hoppen 2024-08-24 22:27:41 -07:00
  • 57e933da97 Move Atomics from SKSupport to SwiftExtensions Alex Hoppen 2024-09-15 16:28:09 -07:00
  • fe1363c47b Merge pull request #1666 from ahoppen/skip-was swift-DEVELOPMENT-SNAPSHOT-2024-09-16-a swift-DEVELOPMENT-SNAPSHOT-2024-09-15-a swift-DEVELOPMENT-SNAPSHOT-2024-09-14-a Alex Hoppen 2024-09-14 10:42:31 -07:00
  • f07a30eaa4 Merge pull request #1665 from ahoppen/another-asp Alex Hoppen 2024-09-13 15:15:57 -07:00
  • fffc783381 Skip testWasm in CI if toolchain cannot compile for wasm Alex Hoppen 2024-09-13 11:30:32 -07:00
  • a96c0913ad Implement addSourceFilesDidChangeCallback in BuildSystemManager Alex Hoppen 2024-09-13 11:07:55 -07:00
  • fac21f5976 Implement waitForUpToDateBuildGraph using BSP Alex Hoppen 2024-08-24 20:40:46 -07:00
  • 12923b6d73 Implement toolchain(for:) using BSP Alex Hoppen 2024-08-24 20:13:43 -07:00
  • d8161b371f Cache build targets by ID and associated depths Alex Hoppen 2024-09-13 09:19:23 -07:00
  • f5245bf96a Merge pull request #1664 from ahoppen/buildgraph-generation-targets swift-DEVELOPMENT-SNAPSHOT-2024-09-13-a Alex Hoppen 2024-09-13 08:36:25 -07:00
  • cc11fe1b02 Implement topologicalSort inside BuildSystemManager using dependency information Alex Hoppen 2024-08-24 18:11:52 -07:00
  • bb96ff4c68 Migrate targets(dependingOn:) to BSP Alex Hoppen 2024-09-12 16:59:03 -07:00
  • 897cd5e775 Implicitly trigger build graph generation when creating a SwiftPMBuildSystem Alex Hoppen 2024-08-24 16:13:56 -07:00
  • 367b19aa73 Merge pull request #1663 from ahoppen/language-dependencies-initialize Alex Hoppen 2024-09-12 16:16:26 -07:00
  • 9006ab6fc8 Use the InitializeRequest from BSP to communicate some static options between the build system and BuildSystemManager Alex Hoppen 2024-08-24 16:04:21 -07:00
  • 022a6de6c3 Handle filesDependenciesUpdated in BuildSystemManager instead of the build system Alex Hoppen 2024-09-11 14:42:24 -07:00
  • 9d94fe36a9 Migrate defaultLanguage(for:) to BSP Alex Hoppen 2024-09-11 14:12:25 -07:00
  • dd5018384b Merge pull request #1660 from ahoppen/source-files-bsp swift-DEVELOPMENT-SNAPSHOT-2024-09-12-a Alex Hoppen 2024-09-12 07:33:48 -07:00
  • 7bcbae4e90 Fully specify test IDs if they are not unique Paul LeMarquand 2024-09-12 09:33:06 -04:00
  • 35899ab348 Merge pull request #1658 from ahoppen/revert-uri-hack swift-DEVELOPMENT-SNAPSHOT-2024-09-11-a Alex Hoppen 2024-09-11 14:38:16 -07:00
  • c5ba9671f0 Migrate getting the list of all source files to BSP Alex Hoppen 2024-09-11 12:54:50 -07:00
  • cf47f2c72b Merge pull request #1659 from ahoppen/more-bsp Alex Hoppen 2024-09-11 13:41:38 -07:00
  • 3a118980b4 Migrate BuildSystem.prepare to a BSP request Alex Hoppen 2024-08-24 14:06:24 -07:00
  • 7e3f453a7c Remove registerForChangeNotifications Alex Hoppen 2024-08-24 13:33:28 -07:00
  • 236f566977 Instead of having FileHandlingCapability for a source file, check if it belongs to any targets Alex Hoppen 2024-08-24 13:18:48 -07:00
  • bf8ff8b3d1 Merge pull request #1657 from ahoppen/custom-timeout Alex Hoppen 2024-09-11 08:23:32 -07:00
  • 37f7540ebe Merge pull request #1656 from ahoppen/workspace-delegate Alex Hoppen 2024-09-11 08:23:25 -07:00
  • e083124ca5 Merge pull request #1655 from ahoppen/bsp-settings Alex Hoppen 2024-09-10 16:27:23 -07:00
  • 57055d4135 Make Workspace the delegate of a BuildSystemManager Alex Hoppen 2024-09-10 12:39:21 -07:00
  • 5d1eb73a68 Revert "Add an extra percent encoding layer when encoding DocumentURIs to LSP requests" Alex Hoppen 2024-09-10 14:41:47 -07:00
  • b9370cf276 Allow overriding the timeout duration for tests Alex Hoppen 2024-09-10 13:44:52 -07:00