# Fix svelte injections / outline \(\#8194\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/576f8d3ef3c21be5cb8e505d37dd60ba14a08866)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 576f8d3ef3c21be5cb8e505d37dd60ba14a08866

Requested commit: 576f8d3ef3c21be5cb8e505d37dd60ba14a08866

Commit: 576f8d3ef3c21be5cb8e505d37dd60ba14a08866

Tree: 511921d7541dcfa86dac3a835367dbb63569fec7

Author: Robin Pfäffle

Committer: GitHub

## Message

```
Fix svelte injections / outline (#8194)

This PR fixes the buffer symbol search to show `js` and `ts` buffer
symbols when using svelte components with `ts`.

Does also seem to improve `ts` capabilities (probably because there has
been a conflict of `js` and `ts` before).

Unfortunately when changing the script tag from no lang attribute to
`ts` one needs to update the file (input anyting) to get correct buffer
symbol search.

Before:

![SCR-20240222-mthf-2](https://github.com/zed-industries/zed/assets/67913738/980cf4bf-15d5-478d-a217-ed8f2b1f197d)

After:

![SCR-20240222-mvjr](https://github.com/zed-industries/zed/assets/67913738/41069e75-77ef-40fe-92d1-c19912b34770)

Release Notes:

- Fixed svelte outlines for `TS`.
```

## Parents

- [42ac9880c6f1d854d2dfe8b668c2ffd5dd317537](https://git.cafe/gitcafe/zed/commit/42ac9880c6f1d854d2dfe8b668c2ffd5dd317537?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/576f8d3ef3c21be5cb8e505d37dd60ba14a08866?format=markdown)
