Kotlin SyntaxSyntax highlighting for Kotlin Actual screenshot of the project's web playground using One Dark Pro. The playground and extension share the Kotlin parser and token classifications; VS Code colors depend on your selected theme. Features
InstallationRequires VS Code 1.117.0 or newer. Installation and highlighting have been tested on 1.117.0. From MarketplaceSearch for From a VSIXDownload Getting started
If highlighting conflicts with another Kotlin extension, temporarily disable the other highlighting provider in the workspace to compare results. Scope and limitationsSupports incomplete and malformed code with parser error recovery. Symbol resolution, type checking and cross-file semantic analysis are not implemented. Parsing failures or a disabled semantic-highlighting setting can prevent coloring; this extension does not include a TextMate fallback. TroubleshootingRun Kotlin Syntax: Show Logs to open the dedicated log channel, or select Kotlin Syntax in Output after activation. Use Developer: Set Log Level... to enable Debug for this channel when request timing is needed. Debug metadata includes request IDs, versions, lengths and script mode; source snapshots and document paths are not deliberately logged. Exception stacks are retained for diagnosis. Requests time out after 30 seconds. A failed Worker is terminated and later requests can start a fresh one. After three consecutive failures, parsing pauses and a single warning offers logs or restart. Run Kotlin Syntax: Restart Parser to clear caches and resume; this also refreshes highlighting. Successful responses reset the failure count. Invalid Kotlin syntax is normal input and does not trigger this mechanism. LicenseLicensed under Apache-2.0. FeedbackReport problems through GitHub Issues. Include your extension version, VS Code version, active theme and a small Kotlin example that reproduces the issue. See the changelog for release notes and the source repository for the parser and playground. |