Skip to content

textDocument/semanticTokens/full/delta #4072

Closed
@soulomoon

Description

@soulomoon

To suppport textDocument/semanticTokens/full/delta,
Several things need to be taken care of.

  • Use the cache in the shake usesWithStale or create new dedicated cache for semantic tokens
    • we need a dedicated cache, since stale corresponding to the last successful computation, and what we need is the last successful response. (since range in successful computation might be edited by possitional mappings to generate a successful response)
      • new entry in ShakeExtras, semanticTokens :: STM.Map NormalizedUri SemanticTokens
  • Assign a new id to each response of semantic tokens.
    • new entry in ShakeExtras, semanticTokensId :: TVar Int

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions