<feed xmlns='http://www.w3.org/2005/Atom'>
<title>slang.git/tests/language-server/completion-in-initexpr.slang, branch master</title>
<subtitle>Making it easier to work with shaders</subtitle>
<id>https://git.yummers.dev/slang.git/atom?h=master</id>
<link rel='self' href='https://git.yummers.dev/slang.git/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.yummers.dev/slang.git/'/>
<updated>2025-09-10T05:14:05+00:00</updated>
<entry>
<title>Fix language server auto-complete regression in debug build. (#8416)</title>
<updated>2025-09-10T05:14:05+00:00</updated>
<author>
<name>Yong He</name>
<email>yonghe@outlook.com</email>
</author>
<published>2025-09-10T05:14:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.yummers.dev/slang.git/commit/?id=43dffcde78227113a0e62b02857eaf4ed6ea6e7e'/>
<id>urn:sha1:43dffcde78227113a0e62b02857eaf4ed6ea6e7e</id>
<content type='text'>
Fixes this regression:

```slang
struct MyType
{
    // Regression Condition 1: there must be more than one member in the lookup scope.
    float v;
    int getSum() { return 0; }
}

void m(MyType t)
{
    // Regression condition 2: the completion must be in an init expression.
    // Regression condition 3: none of the candidate members can coerce to the expected type.
    // Regression behavior: no completion candidates are shown, because
    // SemanticsVisitor::resolveOverloadedLookup throws an error when there are 0 applicable candidates
    // after type coercion filtering.
    Texture2D x = t.;  // completion request after . here
}
```

The root cause is that we shouldn't be applying candidate filtering on
the candidate list when in completion checking mode.

Closes #8417.</content>
</entry>
</feed>
