-
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
support for textDocument/prepareTypeHierarchy
- Loading branch information
1 parent
31ad303
commit c6ff09f
Showing
7 changed files
with
43 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
Sources/LanguageServerProtocol/LanguageFeatures/TypeHeirarchy.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import Foundation | ||
|
||
public struct TypeHierarchyPrepareParams: Codable, Hashable, Sendable { | ||
public let textDocument: TextDocumentIdentifier | ||
public let position: Position | ||
public let workDoneToken: ProgressToken? | ||
|
||
public init(textDocument: TextDocumentIdentifier, position: Position, workDoneToken: ProgressToken? = nil) { | ||
self.textDocument = textDocument | ||
self.position = position | ||
self.workDoneToken = workDoneToken | ||
} | ||
} | ||
|
||
public struct TypeHierarchyItem: Codable, Hashable, Sendable { | ||
public let name: String | ||
public let kind: SymbolKind | ||
public let tags: [SymbolTag]? | ||
public let detail: String? | ||
public let uri: DocumentUri | ||
public let range: LSPRange | ||
public let selectionRange: LSPRange | ||
public let data: LSPAny? | ||
} | ||
|
||
public typealias PrepareTypeHeirarchyResponse = [TypeHierarchyItem]? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters