Skip to content

Commit b4aead1

Browse files
committed
Remove Unnecessary Comments
1 parent 04da78f commit b4aead1

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

CodeEdit/Features/LSP/LanguageServer/Capabilities/LanguageServer+SemanticTokens.swift

-19
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import LanguageServerProtocol
1111
extension LanguageServer {
1212
func requestSemanticTokens(for documentURI: String) async throws -> SemanticTokensResponse {
1313
do {
14-
// No logging, called too often
1514
let params = SemanticTokensParams(textDocument: TextDocumentIdentifier(uri: documentURI))
1615
return try await lspInstance.semanticTokensFull(params)
1716
} catch {
@@ -20,29 +19,11 @@ extension LanguageServer {
2019
}
2120
}
2221

23-
// Unused
24-
// func requestSemanticTokens(
25-
// for documentURI: String,
26-
// forRange range: LSPRange
27-
// ) async throws -> SemanticTokensResponse {
28-
// do {
29-
// let params = SemanticTokensRangeParams(
30-
// textDocument: TextDocumentIdentifier(uri: documentURI),
31-
// range: range
32-
// )
33-
// return try await lspInstance.semanticTokensRange(params)
34-
// } catch {
35-
// logger.warning("requestSemanticTokens range: Error \(error)")
36-
// throw error
37-
// }
38-
// }
39-
4022
func requestSemanticTokens(
4123
for documentURI: String,
4224
previousResultId: String
4325
) async throws -> SemanticTokensDeltaResponse {
4426
do {
45-
// No logging, called too often
4627
let params = SemanticTokensDeltaParams(
4728
textDocument: TextDocumentIdentifier(uri: documentURI),
4829
previousResultId: previousResultId

0 commit comments

Comments
 (0)