# Svelte syntax ignored in Agent mode

**URL:** <https://forum.cursor.com/t/svelte-syntax-ignored-in-agent-mode/157069>\
**Category:** Bug Reports\
**Tags:** language-servers, extensions, agents-window\
**Created:** [April 8, 2026, 6:24pm UTC](https://forum.cursor.com/t/svelte-syntax-ignored-in-agent-mode/157069 "2026-04-08T18:24:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![igor](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/igor/32/832_2.png) [@igor](https://forum.cursor.com/u/igor)\
**Post date:** [April 8, 2026, 6:24pm UTC](https://forum.cursor.com/t/svelte-syntax-ignored-in-agent-mode/157069/1 "2026-04-08T18:24:42Z")

</div>

### Where does the bug appear (feature/product)?

Cursor IDE

### Describe the Bug

`.svelte` files are treated like `plaintext` in Agent mode, so no syntax highlight or go to definitions are working. Even though in regular Editor mode everything works fine (have Svelte extensions, Prettier formatting works).

Similar issue with `.rb` files too by the way, but it’s only the go to definition that doesn’t work, syntax highlights seem to be fine.

Am I missing something or does Agent mode not understand the enhancements provided by the extensions yet?

Thanks!

### Steps to Reproduce

1. Have official Svelte for VSC extension installed.
2. Open Agent mode.
3. Open any `.svelte` file.

### Expected Behavior

Syntax to be highlighted, ability to to `import` components with `Cmd Click`.

### Operating System

MacOS

### Version Information

Version: 3.0.13  
VSCode Version: 1.105.1  
Commit: 48a15759f53cd5fc9b5c20936ad7d79847d914b0  
Date: 2026-04-07T03:05:17.114Z (1 day ago)  
Layout: glass  
Build Type: Stable  
Release Track: Default  
Electron: 39.8.1  
Chromium: 142.0.7444.265  
Node.js: 22.22.1  
V8: 14.2.231.22-electron.0  
OS: Darwin arm64 25.4.0

### Does this stop you from using Cursor

No - Cursor works, but with this issue

---

<div class="post-metadata">

**Author:** ![kevinn](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/kevinn/32/101206_2.png) [@kevinn](https://forum.cursor.com/u/kevinn)\
**Post date:** [April 9, 2026, 1:45am UTC](https://forum.cursor.com/t/svelte-syntax-ignored-in-agent-mode/157069/7 "2026-04-09T01:45:08Z")

</div>

Hi @igor, thanks for the report and thank you for trying out Agents View. Yes, this is currently a known limitation of Agents view. We prioritized getting Agents view in the hands of as many users as possible as quickly as possible over full feature parity with the IDE. Expect more changes and more features to roll out but for now if you need the Svelte formatting it may be best to use the regular IDE view.

If you just need Prettier, but you don’t need to see the formatting in Agents view, you could always configure Prettier to run as a pre-commit hook. Just a possibility.

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/system/32/99069_2.png) [@system](https://forum.cursor.com/u/system)\
**Post date:** [May 1, 2026, 1:45am UTC](https://forum.cursor.com/t/svelte-syntax-ignored-in-agent-mode/157069/8 "2026-05-01T01:45:11Z")

</div>

Closed on May 1, 2026, 1:45am UTC

This topic was automatically closed 22 days after the last reply. New replies are no longer allowed.
