# languages: Fix string override to match just \`string_fragment\` part of \`template_string\` \(\#33997\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 6b456ede49d8d95acc4d257bdaaf5ca6190b50db

Requested commit: 6b456ede49d8d95acc4d257bdaaf5ca6190b50db

Commit: 6b456ede49d8d95acc4d257bdaaf5ca6190b50db

Tree: ad6ce9a400700306aae370893960b58b8625ca5c

Author: Smit Barmase

Committer: GitHub

## Message

````
languages: Fix string override to match just `string_fragment` part of `template_string` (#33997)

Closes #33703

`template_string` consists of `template_substitution` and
`string_fragment` chunks. `template_substitution` should not be
considered a string.

```ts
const variable = `this is a string_fragment but ${this.is.template_substitution}`;
```

Release Notes:

- Fixed auto-complete not showing on typing `.` character in template
literal string in JavaScript and TypeScript files.
````

## Parents

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

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