Skip to content

StaticKeywordRecommender doesn't give a stable answer between usings in script #32214

@jcouv

Description

@jcouv

This test fails with absent: true and absent: false. The reason is that CSharpSyntaxContext.IsGlobalStatementContext changes after one character is typed.

        [Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)]
        public async Task TestNotBetweenUsings()
        {
            var source = @"using Goo;
$$
using Bar;";

            await VerifyWorkerAsync(source, absent: true, Options.Script);
        }

Relates to (but precedes) #32187

Metadata

Metadata

Assignees

Labels

Area-IDEBughelp wantedThe issue is "up for grabs" - add a comment if you are interested in working on it

Type

No type

Projects

Status

Completed

Relationships

None yet

Development

No branches or pull requests

Issue actions