Skip to content

[WebToolsE2E][Blue] Typing "@fo" in Index.cshtml will encounter the error: Request completionItem/resolve failed. Message: End: (5,3) matches or exceeds SourceText boundary 107. Code: -32000 #8486

@v-reinawang

Description

@v-reinawang

REGRESSION INFO: Works well in public Pre-release C# 2.87.26

INSTALL STEPS

  1. Repro OS: Ubuntu 24.04 ARM64
  2. Install latest VSCode (latest released version 1.102.3)
  3. Install SDK 10.0 Preview 6
  4. Install C# main version: 2.88.28

REPRO STEPS

  1. Create a razor project:
    dotnet new razor -o razor01
  2. Open this project with VS Code and open Pages/_ViewImports.cshtml file, type the following code.
    @inject DateTime Foo
  3. Open Pages/Index.cshtml file, type @fo

NOTE:

  1. This issue also repro on Mac platform.
  2. This issue not repro on Windows platform.
  3. This issue not repro on mvc project.

ACTUAL
Request completionItem/resolve failed.
Message: End: (5,3) matches or exceeds SourceText boundary 107.
Code: -32000
Image

EXPECTED
There should be no errors.

Metadata

Metadata

Assignees

Labels

RazorprereleaseFixed in a prerelease version of C# extension.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions