Commit Graph

1362 Commits

Author SHA1 Message Date
Max Desiatov
95709feced Bump swift-tools-version to 5.5 (#696)
In addition to Swift Concurrency, Swift 5.5 also introduces `get throws` properties, which would allow us to fix numerous warnings related to non-throwing `AbsolutePath.init` deprecation.
2023-02-08 19:29:21 +00:00
Max Desiatov
effcb1c20a Move Platform to SwiftPM (#704) 2023-02-07 09:48:26 +00:00
Hamish Knight
3c31a0e6d9 Merge pull request #672 from hamishknight/express-yourself
Update for SwiftSyntax if/switch expression work
swift-DEVELOPMENT-SNAPSHOT-2023-02-06-a swift-DEVELOPMENT-SNAPSHOT-2023-02-05-a swift-DEVELOPMENT-SNAPSHOT-2023-02-04-a swift-DEVELOPMENT-SNAPSHOT-2023-02-03-a
2023-02-03 16:40:26 +00:00
Alex Hoppen
6b728e5bed Merge pull request #705 from ahoppen/ahoppen/interface-test-logging
Add extended logging to SwiftIntefaceTests.testSystemModuleInterface
swift-DEVELOPMENT-SNAPSHOT-2023-02-02-a swift-DEVELOPMENT-SNAPSHOT-2023-02-01-a
2023-02-01 16:40:16 +01:00
Alex Hoppen
21481f0117 Merge pull request #703 from apple/maxd/fix-identifer-typo
SKCore: fix `identifer` typo in comments
2023-01-31 19:16:15 +01:00
Alex Hoppen
3381602659 Add extended logging to SwiftIntefaceTests.testSystemModuleInterface
This enables lower-leve logging for a single test case, which will hopefull help us figure out why that test is sometimes failing in CI.
2023-01-31 18:42:20 +01:00
Max Desiatov
6df8f25802 SKCore: fix identifer typo in comments 2023-01-31 15:40:04 +00:00
Max Desiatov
de89ec98c4 NFC: add .vscode/launch.json (#700)
* NFC: add `.vscode/launch.json`

The workspace wide configuration should be portable, and allows us to add any recommended flags, which is convenient for getting started.

* Add trailing newline, remove `tasks.json`
swift-DEVELOPMENT-SNAPSHOT-2023-01-30-a swift-DEVELOPMENT-SNAPSHOT-2023-01-28-a swift-DEVELOPMENT-SNAPSHOT-2023-01-25-a
2023-01-25 15:50:08 +00:00
Alex Hoppen
2eb1f052bb Merge pull request #698 from ahoppen/ahoppen/testSystemModuleInterface
Add failure message to assert in testSystemModuleInterface
swift-DEVELOPMENT-SNAPSHOT-2023-01-24-a
2023-01-24 21:23:59 +01:00
Alex Hoppen
abdb0a0b37 Add failure message to assert in testSystemModuleInterface
This helps us debug if the test fails in CI.
2023-01-24 15:05:50 +01:00
Alex Hoppen
0a50674b80 Merge pull request #693 from ahoppen/ahoppen/remove-shutdown-request-decoding-workaround
Remove workaround for SR-16097 to decode Shutdown request
swift-DEVELOPMENT-SNAPSHOT-2023-01-23-a swift-DEVELOPMENT-SNAPSHOT-2023-01-20-a swift-DEVELOPMENT-SNAPSHOT-2023-01-19-a swift-DEVELOPMENT-SNAPSHOT-2023-01-18-a swift-DEVELOPMENT-SNAPSHOT-2023-01-17-a swift-DEVELOPMENT-SNAPSHOT-2023-01-16-a swift-DEVELOPMENT-SNAPSHOT-2023-01-14-a
2023-01-14 08:38:33 +01:00
Alex Hoppen
66c598430a Remove workaround for SR-16097 to decode Shutdown request
rdar://92254952
2023-01-13 17:04:35 +01:00
Hamish Knight
9cb32f235f Update for SwiftSyntax if/switch expression work 2023-01-13 10:28:05 +00:00
Alex Hoppen
223a4a9b8e Merge pull request #692 from ahoppen/ahoppen/merge-keywords
Don’t classify `_` as a keyword
2023-01-12 11:05:37 +01:00
Alex Hoppen
b51ae5a1ac Don’t classify _ as a keyword
The classification of `_` changed in SwiftSyntax to no longer be a keyword. I think that makes sense.
2023-01-12 08:09:43 +01:00
Alex Hoppen
1dc28b4405 Merge pull request #691 from ahoppen/ahoppen/markdown-comment
Ensure there are always newlines in a generated markdown comment
swift-DEVELOPMENT-SNAPSHOT-2023-01-12-a
2023-01-11 19:07:52 +01:00
Alex Hoppen
b7da2a6884 Ensure there are always newlines in a genrated markdown comment
Fixes #690
Fixes rdar://103911070
2023-01-11 11:17:52 +01:00
Mishal Shah
7ef89a04d6 Merge pull request #673 from apple/maxd/bump-argument-parser
Bump `swift-argument-parser` to 1.1.4
swift-DEVELOPMENT-SNAPSHOT-2023-01-11-a swift-DEVELOPMENT-SNAPSHOT-2023-01-10-a
2023-01-10 00:40:37 -08:00
Saleem Abdulrasool
b55057a1a1 build: repair the build after the TSCUtility changes
SKSupport now requires a link against Foundation, update the build
system to track that dependency.

Co-authored-by: Max Desiatov <m_desiatov@apple.com>
swift-DEVELOPMENT-SNAPSHOT-2023-01-09-a swift-DEVELOPMENT-SNAPSHOT-2023-01-08-a swift-DEVELOPMENT-SNAPSHOT-2023-01-07-a
2023-01-04 21:28:10 -08:00
Saleem Abdulrasool
f857dbf22a Merge pull request #686 from compnerd/utility
SourceKit: sever dependency on `TSCUtility`
2023-01-03 09:02:35 -08:00
Saleem Abdulrasool
4bbd74f105 SourceKit: sever dependency on TSCUtility
The dependency on `TSCUtility` was strictly for identifying the platform
of execution. This logic is relatively self-contained and effectively an
extension over an enumeration. Replicate this logic with updates for new
syntactic improvements. This allows us to partially reduce dependency on
swift-tools-support-core. The dependency on TSCBasic is more complicated
to remove due to the extensive use of `AbsolutePath`.

Co-authored-by: Alex Hoppen <alex@alexhoppen.de>
2023-01-02 12:30:28 -08:00
Ben Barham
1011c6e85f Merge pull request #682 from bnbarham/update-clang-test
Allow folding range response from clangd
swift-DEVELOPMENT-SNAPSHOT-2023-01-02-a swift-DEVELOPMENT-SNAPSHOT-2022-12-29-a swift-DEVELOPMENT-SNAPSHOT-2022-12-21-a
2022-12-20 13:25:14 -08:00
Ben Barham
3bf148a920 Allow folding range response from clangd
clangd supports folding range in stable/20221013. Update the test to
allow an actual response.
2022-12-20 10:41:43 -08:00
Ben Barham
f75d20f46b Merge pull request #680 from bnbarham/update-inlay-provider-registration
Update `inlayHintProvider` registration
swift-5.8-DEVELOPMENT-SNAPSHOT-2022-12-29-a swift-5.8-DEVELOPMENT-SNAPSHOT-2022-12-20-a swift-DEVELOPMENT-SNAPSHOT-2022-12-19-a swift-DEVELOPMENT-SNAPSHOT-2022-12-18-a swift-DEVELOPMENT-SNAPSHOT-2022-12-17-a swift-DEVELOPMENT-SNAPSHOT-2022-12-16-a
2022-12-15 14:57:48 -08:00
Ben Barham
73af860ac2 Update inlayHintProvider registration
The LSP API allows a boolean here:
```
	/**
	 * The server provides inlay hints.
	 *
	 * @since 3.17.0
	 */
	inlayHintProvider?: boolean | InlayHintOptions
		 | InlayHintRegistrationOptions;
```

Update our server capabilities to allow this.

Resolves rdar://102913088.
2022-12-15 11:26:29 -08:00
Artem Chikin
13f73915ee Merge pull request #678 from apple/FixCMakeBuild
Fix CMake build by adding missed new files to CMakeLists
swift-DEVELOPMENT-SNAPSHOT-2022-12-15-a
2022-12-14 15:30:57 -08:00
Artem Chikin
05b03c124e Fix CMake build by adding missed new files to CMakeLists 2022-12-14 09:50:38 -08:00
Alex Hoppen
c31dff2ae6 Merge pull request #668 from bwhiteley/textualinterface
SourceKitLSP: generate Swift textual interfaces for module references
swift-DEVELOPMENT-SNAPSHOT-2022-12-14-a
2022-12-13 12:51:57 +01:00
Bart Whiteley
d2f7f2f3c6 Generate textual Swift interfaces for module references 2022-12-12 12:45:21 -07:00
Max Desiatov
5b16c3e19d LanguageServerProtocol: handle new files with CMake (#677)
New files not available to CMake causes build failures on Windows.
swift-DEVELOPMENT-SNAPSHOT-2022-12-13-a swift-DEVELOPMENT-SNAPSHOT-2022-12-12-a swift-DEVELOPMENT-SNAPSHOT-2022-12-10-a swift-DEVELOPMENT-SNAPSHOT-2022-12-09-a swift-DEVELOPMENT-SNAPSHOT-2022-12-08-a
2022-12-07 17:22:42 +00:00
Alex Hoppen
ae04934cd8 Merge pull request #674 from ahoppen/ahoppen/server-cancelled
Return a .serverCancelled error code if the server cancels a request
swift-DEVELOPMENT-SNAPSHOT-2022-12-07-a swift-DEVELOPMENT-SNAPSHOT-2022-12-05-a
2022-12-05 15:25:21 +01:00
Alex Hoppen
ca45a7a62b Return a .serverCancelled error code if the server cancels a request
`.cancelled` should only be returned if the client requested cancellation.
2022-12-05 08:45:36 +01:00
Alex Hoppen
14ea6f66df Merge pull request #671 from ahoppen/ahoppen/update-capabilities
Update capability definitions to LSP 3.17
2022-12-05 08:43:04 +01:00
Alex Hoppen
975286d353 Update capability definitions to LSP 3.17 2022-12-04 19:56:51 +01:00
Alex Hoppen
a4c7688cab Merge pull request #670 from ahoppen/ahoppen/scratch-path
Rename --scratch-path to --build-path
swift-DEVELOPMENT-SNAPSHOT-2022-12-04-a
2022-12-04 18:14:57 +01:00
Alex Hoppen
595acfacfd Merge pull request #669 from ahoppen/ahopppen/update-lsp
Update request and notification definitions to LSP 3.17
2022-12-04 18:14:22 +01:00
Alex Hoppen
fa9b5f96ac Add a test case checking that documentDependenciesUpdated works for clang
We weren’t sure if it works because it always sends 0 as the document’s version number, but everythig appears to be fine.
2022-12-02 09:53:19 +01:00
Alex Hoppen
93a8f91436 Update request and notification definitions to LSP 3.17 2022-12-01 10:44:40 +01:00
Max Desiatov
b323ab5b95 Bump swift-argument-parser to 1.1.4 2022-11-30 21:07:19 +00:00
Alex Hoppen
bf00048d54 Rename --scratch-path to --build-path
Resolves #662
rdar://101628335
2022-11-24 07:32:00 +01:00
Robert Widmann
f05ac4b075 Merge pull request #661 from compnerd/no-utility
SourceKitLSP: add new dependency introduced in SwiftSyntax
swift-DEVELOPMENT-SNAPSHOT-2022-12-01-a swift-DEVELOPMENT-SNAPSHOT-2022-11-19-a swift-DEVELOPMENT-SNAPSHOT-2022-11-14-a swift-DEVELOPMENT-SNAPSHOT-2022-11-12-a swift-DEVELOPMENT-SNAPSHOT-2022-11-11-a swift-DEVELOPMENT-SNAPSHOT-2022-11-03-a swift-DEVELOPMENT-SNAPSHOT-2022-11-02-a swift-DEVELOPMENT-SNAPSHOT-2022-11-01-a swift-DEVELOPMENT-SNAPSHOT-2022-10-31-a swift-DEVELOPMENT-SNAPSHOT-2022-10-27-a
2022-10-26 16:33:14 -07:00
Saleem Abdulrasool
fb351c73d5 SourceKitLSP: add new dependency introduced in SwiftSyntax
Add a dependency on IDEUtils that is missing in the build.
2022-10-26 14:03:11 -07:00
Hamish Knight
5b4093b655 Merge pull request #660 from ahoppen/ahoppen/fix-build
Add dependency on IDEUtils
2022-10-26 19:11:35 +01:00
Alex Hoppen
a7ae0edf6a Add dependency on IDEUtils
Reflect for the fact that SyntaxClassifier has moved to a new `IDEUtils` module.
2022-10-26 20:09:45 +02:00
Max Desiatov
4fcb624567 SKCore: use PackageModel.BuildFlags instead of TSC (#659)
As TSC would like to deprecate `BuildFlags` (https://github.com/apple/swift-tools-support-core/pull/359), let's use new `struct BuildFlags` from SwiftPM's `PackageModel`.
2022-10-25 19:31:55 +01:00
Alex Hoppen
e151c8023b Merge pull request #657 from RuslanLa/main
SKCore: allow non python build servers
2022-10-25 09:30:12 +02:00
Ruslan Latypov
c94c48415d fix scripts extension comparison to include dot 2022-10-24 14:41:58 +01:00
Ruslan Latypov
8ba893118c SKCore: allow non python build servers 2022-10-21 17:43:48 +01:00
Boris Bügling
2c89019f43 Merge pull request #656 from neonichu/adopt-to-new-packagegraph-api
Adopt to new package graph API
swift-DEVELOPMENT-SNAPSHOT-2022-10-24-a swift-DEVELOPMENT-SNAPSHOT-2022-10-22-a
2022-10-20 13:28:03 -07:00
Robert Widmann
bf4c67b2ef Merge pull request #652 from apple/folderol 2022-10-20 07:53:44 -07:00