Skip to content

Conversation

@prettyirrelevant
Copy link
Contributor

Problem

Time tracking is significantly under-reported for Python files. For example, 4+ hours of editing results in only ~20 minutes being recorded. Other languages work correctly.

Root Cause

Python has Pyright as the built-in/primary language server in Zed. When multiple LSPs are registered for the same language, Zed may not route all text document events to secondary language servers like wakatime-ls.

The current LSP capability declaration uses the minimal TextDocumentSyncKind::INCREMENTAL which doesn't explicitly request open/close and save notifications.

Related: zed-industries/zed#24100

Fix

  • Use TextDocumentSyncOptions instead of TextDocumentSyncKind to explicitly declare that wakatime-ls needs open_close, change, and save events
  • Remove empty string and duplicate entry from the languages list in extension.toml

@bestgopher bestgopher merged commit ca28a7b into wakatime:master Jan 4, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants