Kiro icon indicating copy to clipboard operation
Kiro copied to clipboard

Vue (Official) extension fails: vscode.extensions.getExtension('vscode.typescript-language-features') returns undefined

Open ThisIsLamer opened this issue 6 months ago • 2 comments

Before opening, please confirm:

Operating System

Windows 11 25H2

Kiro Version

0.12.200 2406958adc70afa75e5473a3ec1f0cd3da68ec6d

Bug Description

The Vue (Official) extension (vue.volar v3.2.9 from Open VSX) fails to fully activate because vscode.extensions.getExtension('vscode.typescript-language-features') returns undefined during extension activation.

The Vue extension uses this API to patch the built-in TypeScript extension and inject @vue/typescript-plugin for Vue SFC support. Without this patching, TypeScript features (hover on variables, type checking in templates, auto-completion of props) do not work in .vue files.

Actual Behavior

The call returns undefined, causing:

  • TypeError: Cannot read properties of undefined (reading 'isActive') crash at extension activation
  • Vue Language Server starts (HTML features work), but TypeScript integration is completely missing

Extension Host log shows Vue extension activates in a different extension host process than the built-in TypeScript extension:

pid 12704: ExtensionService#_doActivateExtension Vue.volar, activationEvent: 'onLanguage' pid 12152: ExtensionService#_doActivateExtension vscode.typescript-language-features, activationEvent: 'onLanguage:jsonc'

Since they are in separate processes, vscode.extensions.getExtension('vscode.typescript-language-features') returns undefined from within the Vue extension's host.

Environment

  • Vue extension: vue.volar v3.2.9 (universal, Open VSX)
  • Project: Vue 3.5 + TypeScript 5.9 + Vite 7

Impact

This is a blocking issue for Vue/TypeScript developers — the extension provides only basic HTML features without TypeScript integration.

Steps to Reproduce

  1. Install Vue (Official) extension (Vue.volar) from Open VSX marketplace
  2. Open a Vue 3 + TypeScript project
  3. Open any .vue file
  4. Check Extension Host output log

Expected Behavior

vscode.extensions.getExtension('vscode.typescript-language-features') should return the built-in TypeScript extension reference (as it does in VS Code), allowing cross-extension patching to work.

Conversation ID

No response

Additional Context

Extension Host

2026-05-17 12:17:43.344 [error] Error: TypeScript Server Error (5.9.3) at n.create (c:\Users\lamer\AppData\Local\Programs\Kiro\resources\app\extensions\typescript-language-features\dist\extension.js:1:343396) at y.dispatchResponse (c:\Users\lamer\AppData\Local\Programs\Kiro\resources\app\extensions\typescript-language-features\dist\extension.js:1:109007) at y.dispatchMessage (c:\Users\lamer\AppData\Local\Programs\Kiro\resources\app\extensions\typescript-language-features\dist\extension.js:1:107448) at ChildProcess. (c:\Users\lamer\AppData\Local\Programs\Kiro\resources\app\extensions\typescript-language-features\dist\extension.js:1:106733) at ChildProcess.emit (node:events:519:28) at emit (node:internal/child_process:949:14) at process.processTicksAndRejections (node:internal/process/task_queues:91:21) typescript.tsserverRequest {"value":"vscode.typescript-language-features","_lower":"vscode.typescript-language-features"}

VUE LS

2026-05-17 12:16:07.170 [info] [Trace - 12:16:07 PM] Received response 'initialize - (0)' in 324ms. 2026-05-17 12:16:07.171 [info] [Trace - 12:16:07 PM] Sending notification 'initialized'. 2026-05-17 12:16:07.173 [info] [Trace - 12:16:07 PM] Sending notification 'textDocument/didOpen'. 2026-05-17 12:16:07.173 [info] [Trace - 12:16:07 PM] Sending request 'textDocument/diagnostic - (1)'. 2026-05-17 12:16:07.173 [info] [Trace - 12:16:07 PM] Sending request 'textDocument/documentSymbol - (2)'. 2026-05-17 12:16:07.174 [info] [Trace - 12:16:07 PM] Sending request 'textDocument/codeAction - (3)'. 2026-05-17 12:16:07.174 [info] [Trace - 12:16:07 PM] Received request 'client/registerCapability - (0)'. 2026-05-17 12:16:07.174 [info] [Trace - 12:16:07 PM] Sending response 'client/registerCapability - (0)'. Processing request took 0ms 2026-05-17 12:16:07.174 [info] [Trace - 12:16:07 PM] Received request 'workspace/configuration - (1)'. 2026-05-17 12:16:07.174 [info] [Trace - 12:16:07 PM] Sending response 'workspace/configuration - (1)'. Processing request took 1ms 2026-05-17 12:16:07.175 [info] [Trace - 12:16:07 PM] Received notification 'tsserver/request'. 2026-05-17 12:16:07.177 [info] [Trace - 12:16:07 PM] Sending request 'textDocument/documentColor - (4)'. 2026-05-17 12:16:07.185 [info] [Trace - 12:16:07 PM] Sending request 'textDocument/documentLink - (5)'. 2026-05-17 12:16:07.186 [info] [Trace - 12:16:07 PM] Sending request 'textDocument/inlayHint - (6)'. 2026-05-17 12:16:07.193 [info] [Trace - 12:16:07 PM] Sending notification 'tsserver/response'. 2026-05-17 12:16:07.251 [info] [Trace - 12:16:07 PM] Received request 'workspace/configuration - (2)'. 2026-05-17 12:16:07.251 [info] [Trace - 12:16:07 PM] Sending response 'workspace/configuration - (2)'. Processing request took 0ms 2026-05-17 12:16:07.251 [info] [Trace - 12:16:07 PM] Received response 'textDocument/codeAction - (3)' in 78ms. 2026-05-17 12:16:07.252 [info] [Trace - 12:16:07 PM] Received response 'textDocument/documentColor - (4)' in 75ms. 2026-05-17 12:16:07.252 [info] [Trace - 12:16:07 PM] Received response 'textDocument/documentSymbol - (2)' in 79ms. 2026-05-17 12:16:07.253 [info] [Trace - 12:16:07 PM] Received response 'textDocument/documentLink - (5)' in 68ms. 2026-05-17 12:16:07.253 [info] [Trace - 12:16:07 PM] Received response 'textDocument/diagnostic - (1)' in 81ms. 2026-05-17 12:16:07.254 [info] [Trace - 12:16:07 PM] Received request 'workspace/configuration - (3)'. 2026-05-17 12:16:07.254 [info] [Trace - 12:16:07 PM] Sending response 'workspace/configuration - (3)'. Processing request took 0ms 2026-05-17 12:16:07.254 [info] [Trace - 12:16:07 PM] Received request 'workspace/configuration - (4)'. 2026-05-17 12:16:07.254 [info] [Trace - 12:16:07 PM] Sending response 'workspace/configuration - (4)'. Processing request took 0ms 2026-05-17 12:16:07.255 [info] [Trace - 12:16:07 PM] Received response 'textDocument/inlayHint - (6)' in 69ms. 2026-05-17 12:16:07.381 [info] [Trace - 12:16:07 PM] Sending request 'textDocument/foldingRange - (7)'. 2026-05-17 12:16:07.386 [info] [Trace - 12:16:07 PM] Received response 'textDocument/foldingRange - (7)' in 6ms. 2026-05-17 12:16:07.476 [info] [Trace - 12:16:07 PM] Sending request 'textDocument/documentSymbol - (8)'. 2026-05-17 12:16:07.478 [info] [Trace - 12:16:07 PM] Received response 'textDocument/documentSymbol - (8)' in 2ms. 2026-05-17 12:16:09.898 [info] [Trace - 12:16:09 PM] Sending request 'textDocument/foldingRange - (9)'. 2026-05-17 12:16:09.898 [info] [Trace - 12:16:09 PM] Sending request 'textDocument/foldingRange - (10)'. 2026-05-17 12:16:09.900 [info] [Trace - 12:16:09 PM] Received response 'textDocument/foldingRange - (9)' in 3ms. 2026-05-17 12:16:09.902 [info] [Trace - 12:16:09 PM] Received response 'textDocument/foldingRange - (10)' in 4ms. 2026-05-17 12:16:09.937 [info] [Trace - 12:16:09 PM] Sending request 'textDocument/documentHighlight - (11)'. 2026-05-17 12:16:09.940 [info] [Trace - 12:16:09 PM] Received notification 'tsserver/request'. 2026-05-17 12:16:09.941 [info] [Trace - 12:16:09 PM] Sending notification 'tsserver/response'. 2026-05-17 12:16:09.941 [info] [Trace - 12:16:09 PM] Received response 'textDocument/documentHighlight - (11)' in 4ms. 2026-05-17 12:16:09.986 [info] [Trace - 12:16:09 PM] Sending request 'textDocument/foldingRange - (12)'. 2026-05-17 12:16:09.988 [info] [Trace - 12:16:09 PM] Received response 'textDocument/foldingRange - (12)' in 2ms. 2026-05-17 12:16:10.138 [info] [Trace - 12:16:10 PM] Sending request 'textDocument/codeAction - (13)'. 2026-05-17 12:16:10.140 [info] [Trace - 12:16:10 PM] Received response 'textDocument/codeAction - (13)' in 2ms. 2026-05-17 12:16:10.426 [info] [Trace - 12:16:10 PM] Sending request 'textDocument/hover - (14)'. 2026-05-17 12:16:10.427 [info] [Trace - 12:16:10 PM] Received response 'textDocument/hover - (14)' in 1ms. 2026-05-17 12:17:43.238 [info] [Trace - 12:17:43 PM] Sending request 'textDocument/foldingRange - (15)'. 2026-05-17 12:17:43.240 [info] [Trace - 12:17:43 PM] Received response 'textDocument/foldingRange - (15)' in 1ms. 2026-05-17 12:17:43.343 [info] [Trace - 12:17:43 PM] Sending request 'textDocument/foldingRange - (16)'. 2026-05-17 12:17:43.345 [info] [Trace - 12:17:43 PM] Received response 'textDocument/foldingRange - (16)' in 2ms. 2026-05-17 12:20:36.136 [info] [Trace - 12:20:36 PM] Sending notification '$/setTrace'. 2026-05-17 12:20:36.136 [info] [Trace - 12:20:36 PM] Sending notification 'workspace/didChangeConfiguration'. 2026-05-17 12:20:36.137 [info] [Trace - 12:20:36 PM] Received request 'workspace/configuration - (5)'. 2026-05-17 12:20:36.137 [info] [Trace - 12:20:36 PM] Sending response 'workspace/configuration - (5)'. Processing request took 0ms 2026-05-17 12:20:36.388 [info] [Trace - 12:20:36 PM] Received request 'workspace/inlayHint/refresh - (6)'. 2026-05-17 12:20:36.388 [info] [Trace - 12:20:36 PM] Sending response 'workspace/inlayHint/refresh - (6)'. Processing request took 1ms 2026-05-17 12:20:36.388 [info] [Trace - 12:20:36 PM] Received request 'workspace/semanticTokens/refresh - (7)'. 2026-05-17 12:20:36.388 [info] [Trace - 12:20:36 PM] Sending response 'workspace/semanticTokens/refresh - (7)'. Processing request took 0ms 2026-05-17 12:20:36.389 [info] [Trace - 12:20:36 PM] Received request 'workspace/diagnostic/refresh - (8)'. 2026-05-17 12:20:36.389 [info] [Trace - 12:20:36 PM] Sending response 'workspace/diagnostic/refresh - (8)'. Processing request took 0ms 2026-05-17 12:20:36.389 [info] [Trace - 12:20:36 PM] Sending request 'textDocument/diagnostic - (17)'. 2026-05-17 12:20:36.405 [info] [Trace - 12:20:36 PM] Received response 'textDocument/diagnostic - (17)' in 17ms. 2026-05-17 12:20:36.462 [info] [Trace - 12:20:36 PM] Sending request 'textDocument/inlayHint - (18)'. 2026-05-17 12:20:36.463 [info] [Trace - 12:20:36 PM] Received request 'workspace/configuration - (9)'. 2026-05-17 12:20:36.463 [info] [Trace - 12:20:36 PM] Sending response 'workspace/configuration - (9)'. Processing request took 0ms 2026-05-17 12:20:36.463 [info] [Trace - 12:20:36 PM] Received request 'workspace/configuration - (10)'. 2026-05-17 12:20:36.463 [info] [Trace - 12:20:36 PM] Sending response 'workspace/configuration - (10)'. Processing request took 0ms 2026-05-17 12:20:36.464 [info] [Trace - 12:20:36 PM] Received request 'workspace/configuration - (11)'. 2026-05-17 12:20:36.464 [info] [Trace - 12:20:36 PM] Sending response 'workspace/configuration - (11)'. Processing request took 0ms 2026-05-17 12:20:36.464 [info] [Trace - 12:20:36 PM] Received response 'textDocument/inlayHint - (18)' in 2ms. 2026-05-17 12:20:37.462 [info] [Trace - 12:20:37 PM] Sending notification '$/setTrace'. 2026-05-17 12:20:37.462 [info] [Trace - 12:20:37 PM] Sending notification 'workspace/didChangeConfiguration'. 2026-05-17 12:20:37.462 [info] [Trace - 12:20:37 PM] Received request 'workspace/configuration - (12)'. 2026-05-17 12:20:37.462 [info] [Trace - 12:20:37 PM] Sending response 'workspace/configuration - (12)'. Processing request took 1ms 2026-05-17 12:20:37.723 [info] [Trace - 12:20:37 PM] Received request 'workspace/inlayHint/refresh - (13)'. 2026-05-17 12:20:37.723 [info] [Trace - 12:20:37 PM] Sending response 'workspace/inlayHint/refresh - (13)'. Processing request took 0ms 2026-05-17 12:20:37.723 [info] [Trace - 12:20:37 PM] Received request 'workspace/semanticTokens/refresh - (14)'. 2026-05-17 12:20:37.723 [info] [Trace - 12:20:37 PM] Sending response 'workspace/semanticTokens/refresh - (14)'. Processing request took 0ms 2026-05-17 12:20:37.724 [info] [Trace - 12:20:37 PM] Received request 'workspace/diagnostic/refresh - (15)'. 2026-05-17 12:20:37.724 [info] [Trace - 12:20:37 PM] Sending response 'workspace/diagnostic/refresh - (15)'. Processing request took 0ms 2026-05-17 12:20:37.724 [info] [Trace - 12:20:37 PM] Sending request 'textDocument/diagnostic - (19)'. 2026-05-17 12:20:37.740 [info] [Trace - 12:20:37 PM] Received response 'textDocument/diagnostic - (19)' in 16ms. 2026-05-17 12:26:51.651 [info] [Trace - 12:26:51 PM] Sending request 'textDocument/foldingRange - (20)'. 2026-05-17 12:26:51.654 [info] [Trace - 12:26:51 PM] Received response 'textDocument/foldingRange - (20)' in 3ms. 2026-05-17 12:26:51.742 [info] [Trace - 12:26:51 PM] Sending request 'textDocument/foldingRange - (21)'. 2026-05-17 12:26:51.744 [info] [Trace - 12:26:51 PM] Received response 'textDocument/foldingRange - (21)' in 1ms.

ThisIsLamer avatar May 17 '26 09:05 ThisIsLamer

🤖 Potential Duplicate Detected

This issue appears to be similar to:

What happens next?

  • ⏰ This issue will be automatically closed in 3 days
  • 🏷️ If this is not a duplicate, you can prevent automatic closure by adding a comment or reacting with 👎 to this message.
  • 💬 Comment on the original issue if you have additional information

Why is this marked as duplicate? Both issues report Vue extension functionality problems in .vue files - the new issue describes Vue extension failing to activate properly due to TypeScript extension integration issues, while #8323 reports Go to Definition not working in .vue files, which is likely a symptom of the same underlying Vue extension activation failure

github-actions[bot] avatar May 17 '26 09:05 github-actions[bot]

This issue has been automatically closed as it appears to be a duplicate of #8323.

If you believe this is incorrect, please comment on this issue and a maintainer will review it.

github-actions[bot] avatar May 21 '26 00:05 github-actions[bot]