Alex Hoppen
f433f58448
Miscellaneous small cleanups
2025-04-23 18:54:45 +02:00
Alex Hoppen
bc4d9c78e7
Remove public modifiers from MarkdownTitleFinder
2025-04-23 18:54:45 +02:00
Alex Hoppen
1355b203c0
Use on-disk contents of a source file to get the position of a symbol occurrence
...
The index refers to on-disk locations and since the cursor info below also operates on the on-disk contents, we should use the on-disk contents of the file to convert the symbol occurrence location to a `Position`.
2025-04-23 18:54:45 +02:00
Alex Hoppen
024efc2fa1
Remove dependency from SourceKitLSP on swift-docc-symbolkit
...
This way all dependencies on the `docc` libraries are wrapped inside the `DocCDocumentation` module.
2025-04-23 18:54:45 +02:00
Alex Hoppen
bbbc93ea01
Refactor cursorInfoFromDisk to share the underlying logic of invoking cursor info
2025-04-23 18:54:42 +02:00
Matthew Bastien
4fb5323bd4
add cursorInfoFromDisk() to SwiftLanguageService
2025-04-22 15:14:36 -04:00
Matthew Bastien
c24f92d73e
add documentation for certain functions
2025-04-16 15:13:04 -04:00
Matthew Bastien
1c65bda727
remove some nesting levels in DocumentationLanguageService.doccDocumentation(_:)
2025-04-16 14:54:55 -04:00
Matthew Bastien
0ea0e00c55
use LinkCompletionTools to parse SwiftDocC symbol links
2025-04-16 14:44:13 -04:00
Matthew Bastien
4e06c36c70
organize imports
2025-04-16 14:44:13 -04:00
Matthew Bastien
8c15e27959
use a helper document in cursorInfo()
2025-04-16 14:44:12 -04:00
Matthew Bastien
1ca1441054
fix some review comments
2025-04-16 14:44:12 -04:00
Matthew Bastien
0adaf2581f
more robust searching for DocC catalogs
2025-04-16 14:44:12 -04:00
Matthew Bastien
a8eae3c6d8
remove protocols from DocCDocumentation module
2025-04-16 14:44:12 -04:00
Matthew Bastien
49b3f531eb
move SwiftDocC related functionality into its own module
2025-04-16 14:44:11 -04:00
Matthew Bastien
24118ebc78
cleanup unused code
2025-04-16 14:44:11 -04:00
Matthew Bastien
39bf4852b0
handle Markdown and Tutorial files in textDocument/doccDocumentation
2025-04-16 14:44:11 -04:00
Alex Hoppen
1cfa8db1d8
Require Swift 6 to build SourceKit-LSP
...
This significantly cleans up our `import` statements
2025-03-07 08:05:49 -08:00
Alex Hoppen
f6b83dbb1e
Support completionItem/resolve to compute documentation of code completion item
...
Fixes #1935
2025-02-05 10:26:44 -08:00
Alex Hoppen
ed098f58cb
Merge pull request #1934 from ahoppen/multi-toolchain-support
...
Support opening documents within the same workspace with sourcekitd/clangd from different toolchains
2025-01-25 08:52:52 -08:00
Alex Hoppen
98b1294ad9
Support opening documents within the same workspace with sourcekitd/clangd from different toolchains
...
rdar://142909783
2025-01-24 22:32:05 -08:00
Alex Hoppen
64f2aef446
Fix build warnings
...
Quite a few of these were reminders to clean things up once we no longer need to support testing using compilers and sourcekitd from older toolchains.
2025-01-23 21:11:08 -08:00
Matthew Bastien
561aad218b
simplify DocumentableSymbol search
2025-01-17 15:40:43 -05:00
Matthew Bastien
d0a10dee87
clean up unnecessary commas
2025-01-17 15:40:43 -05:00
Matthew Bastien
6675d275fe
address review comments
2025-01-17 11:11:56 -05:00
Matthew Bastien
17ad9b4f4e
simplify DocumentableSymbolFinder
2025-01-17 11:11:55 -05:00
Matthew Bastien
74cb30e928
use BuildSystemManager.moduleName(for:in:) instead of BuildTarget.displayName
2025-01-17 11:11:55 -05:00
Matthew Bastien
b48b197dad
use default QoS for the DocCServer
2025-01-17 11:11:55 -05:00
Matthew Bastien
f1ffeaf9b3
add documentation for DocCServer.convert
2025-01-17 11:11:55 -05:00
Matthew Bastien
4d0d277dec
prefer async over completion handlers
2025-01-17 11:11:55 -05:00
Matthew Bastien
5c3136694f
use built-in LSP ResponseError with code RequestFailed for errors
2025-01-17 11:11:55 -05:00
Matthew Bastien
0a95899dd1
make position optional
2025-01-17 11:11:55 -05:00
Matthew Bastien
f03ae0bb88
rename request to textDocument/doccDocumentation
2025-01-17 11:11:55 -05:00
Matthew Bastien
2ba6fa086a
fix documentation comments for enum case statements
2025-01-17 11:11:54 -05:00
Matthew Bastien
4606232ccc
fix build errors
2025-01-17 11:11:54 -05:00
Matthew Bastien
6ed5cbef14
minor code quality improvements
2025-01-17 11:11:54 -05:00
Matthew Bastien
fb2c293447
support documentation block comments
2025-01-17 11:11:54 -05:00
Matthew Bastien
d6be00c81c
use overridingDocumentationComments to grab the latest comments directly from the snapshot
2025-01-17 11:11:54 -05:00
Matthew Bastien
d4b63a2af5
add textDocument/convertDocumentation request to SourceKit-LSP
2025-01-17 11:11:54 -05:00
Alex Hoppen
31b1909ce1
Allow injection of build systems into SourceKitLSP
...
This allows us to clean up the creation of `TestBuildSystem` a little bit because the tests can create `TestBuildSystem` instead of retrieving it from the `BuildSystemManager`.
rdar://142906050
2025-01-15 15:57:21 -08:00
Matthew Bastien
b4cf0da663
address review comments
2024-12-05 14:13:23 -05:00
Matthew Bastien
8fd30908e7
handle *.md and *.tutorial files for Swift DocC
2024-12-05 11:18:49 -05:00