-
Notifications
You must be signed in to change notification settings - Fork 196
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Request textDocument/foldingRange failed" repeatedly pops up. #9131
Comments
Transferring over to Razor |
@james-white-x A new version of the C# extension was released a few hours ago that we think fixes this issue (2.0.376). Can you update and let us know if the issue reproduces? |
The new update has solved the issue. Thanks |
Thanks for checking @james-white-x, I'll go ahead and close this issue. |
I'm still getting this error using the new extension version. The full error is:
I'm getting this error in an empty |
Thanks @MrJackWilson. Do things work any better after closing open razor/cshtml documents, then using the Reload Window command, and trying again? I'm hopeful that #9134 will fix the remaining issues with the code folding error popup. |
I've disabled and reenabled the C# Dev Kit a few times now, it seems to be working, but I'll let you know if it stops again. |
Type: Bug
Issue Description
Constant error popping up saying Request textDocument/foldingRange failed. I am using vscode with Ubuntu 20.04 WSL setup.
Steps to Reproduce
dotnet new blazorwasm -o BlazorServerApp
"Request textDocument/semanticTokens/range failed."
<div class="nav-item px-3"> <NavLink class="nav-link" href="fetchdata"> <span class="oi oi-list-rich" aria-hidden="true"></span> Fetch data </NavLink> </div>
Expected Behavior
Not to constantly have extension errors popping up because it cannot understand the code.
Actual Behavior
"Request textDocument/foldingRange failed" repeatedly pops up.
Logs
C# log
C# LSP Trace Logs
Environment information
VSCode version: 1.81.1
C# Extension: 2.0.357
Using OmniSharp: false
Dotnet Information
.NET SDK: Version: 7.0.400 Commit: 73bf45718dRuntime Environment:
OS Name: ubuntu
OS Version: 20.04
OS Platform: Linux
RID: ubuntu.20.04-x64
Base Path: /usr/share/dotnet/sdk/7.0.400/
Host:
Version: 7.0.10
Architecture: x64
Commit: a6dbb800a4
.NET SDKs installed:
7.0.400 [/usr/share/dotnet/sdk]
.NET runtimes installed:
Microsoft.AspNetCore.App 7.0.10 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 7.0.10 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
Other architectures found:
None
Environment variables:
Not set
global.json file:
Not found
Learn more:
https://aka.ms/dotnet/info
Download .NET:
https://aka.ms/dotnet/download
Visual Studio Code Extensions
Extension version: 2.0.357
VS Code version: Code 1.81.1 (6c3e3dba23e8fadc360aed75ce363ba185c49794, 2023-08-09T22:22:42.175Z)
OS version: Windows_NT x64 10.0.19045
Modes:
Remote OS version: Linux x64 5.15.90.1-microsoft-standard-WSL2
System Info
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
A/B Experiments
The text was updated successfully, but these errors were encountered: