File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
server/src/main/kotlin/org/javacs/kt Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ import org.javacs.kt.position.offset
14
14
import org.javacs.kt.position.extractRange
15
15
import org.javacs.kt.position.position
16
16
import org.javacs.kt.references.findReferences
17
+ import org.javacs.kt.semantictokens.semanticTokens
17
18
import org.javacs.kt.signaturehelp.fetchSignatureHelpAt
18
19
import org.javacs.kt.symbols.documentSymbols
19
20
import org.javacs.kt.util.noResult
@@ -226,8 +227,14 @@ class KotlinTextDocumentService(
226
227
}
227
228
228
229
override fun semanticTokensFull (params : SemanticTokensParams ) = async.compute {
229
- // TODO
230
- SemanticTokens (listOf ())
230
+ LOG .info(" Full semantic tokens in {}" , describeURI(params.textDocument.uri))
231
+
232
+ reportTime {
233
+ val uri = parseURI(params.textDocument.uri)
234
+ val parsed = sp.parsedFile(uri)
235
+
236
+ SemanticTokens (semanticTokens(parsed))
237
+ }
231
238
}
232
239
233
240
override fun resolveCodeLens (unresolved : CodeLens ): CompletableFuture <CodeLens > {
You can’t perform that action at this time.
0 commit comments