Skip to content
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/semanticTokens/range failed. #10541

Closed
shakibm83 opened this issue Jun 26, 2024 · 3 comments
Closed

Request textDocument/semanticTokens/range failed. #10541

shakibm83 opened this issue Jun 26, 2024 · 3 comments
Assignees
Labels

Comments

@shakibm83
Copy link

hello everyone.
when I add this line to my code I get an error:
<InputFile class="hidden" id="englishFile" OnChange="EnglishFileChanged" />

and my error is :
Request textDocument/semanticTokens/range failed.
[Error - 12:26:47 PM] [LanguageServerHost] System.ArgumentException: Range={ Start={ Line=74, Character=37 }, End={ Line=187, Character=0 } }. text.Length=4268. text.Lines.Count=164 ---> System.ArgumentOutOfRangeException: The requested line number 187 must be less than the number of lines 164. (Parameter 'Line') at Microsoft.CodeAnalysis.Text.TextLineCollection.GetPosition(LinePosition position) in /_/src/Compilers/Core/Portable/Text/TextLineCollection.cs:line 67 at Microsoft.CodeAnalysis.Text.TextLineCollection.GetTextSpan(LinePositionSpan span) in /_/src/Compilers/Core/Portable/Text/TextLineCollection.cs:line 78 at Microsoft.CodeAnalysis.LanguageServer.ProtocolConversions.RangeToTextSpan(Range range, SourceText text) in /_/src/LanguageServer/Protocol/Extensions/ProtocolConversions.cs:line 330 --- End of inner exception stack trace --- at Microsoft.CodeAnalysis.LanguageServer.ProtocolConversions.RangeToTextSpan(Range range, SourceText text) in /_/src/LanguageServer/Protocol/Extensions/ProtocolConversions.cs:line 335 at Microsoft.CodeAnalysis.LanguageServer.Handler.InlayHint.InlayHintHandler.HandleRequestAsync(InlayHintParams request, RequestContext context, CancellationToken cancellationToken) in /_/src/LanguageServer/Protocol/Handler/InlayHint/InlayHintHandler.cs: line 45 at Microsoft.CommonLanguageServerProtocol.Framework.QueueItem3.StartRequestAsync(TRequestContext context, IMethodHandler handler, CancellationToken cancellationToken) in /_/src/LanguageServer/Microsoft.CommonLanguageServerProtocol.Framework/QueueItem.cs:line 136 Error making textDocument/inlayHint request: Range={ Start={ Line=74, Character=37 }, End={ Line=187, Character=0 } }. text.Length=4268. text.Lines.Count=164 [Error - 12:26:47 PM] [LanguageServerHost] System.ArgumentOutOfRangeException: The requested line number 174 must be less than the number of lines 164. (Parameter 'Line') at Microsoft.CodeAnalysis.Text.TextLineCollection.GetPosition(LinePosition position) in /_/src/Compilers/Core/Portable/Text/TextLineCollection.cs:line 67 at Microsoft.CodeAnalysis.LanguageServer.Extensions.GetPositionFromLinePositionAsync(TextDocument document, LinePosition linePosition, CancellationToken cancellationToken) in /_/src/LanguageServer/Protocol/Extensions/Extensions.cs:line 163 at Microsoft.CodeAnalysis.LanguageServer.Handler.FindAllReferencesHandler.HandleRequestAsync(ReferenceParams referenceParams, RequestContext context, CancellationToken cancellationToken) in /_/src/LanguageServer/Protocol/Handler/References/FindAllReferencesHandler.cs:line 61 at Microsoft.CommonLanguageServerProtocol.Framework.QueueItem3.StartRequestAsync(TRequestContext context, IMethodHandler handler, CancellationToken cancellationToken) in /_/src/LanguageServer/Microsoft.CommonLanguageServerProtocol.Framework/QueueItem.cs:line 136 [Error - 12:26:47 PM] [LanguageServerHost] System.ArgumentOutOfRangeException: The requested line number 182 must be less than the number of lines 164. (Parameter 'Line') at Microsoft.CodeAnalysis.Text.TextLineCollection.GetPosition(LinePosition position) in /_/src/Compilers/Core/Portable/Text/TextLineCollection.cs:line 67 at Microsoft.CodeAnalysis.LanguageServer.Extensions.GetPositionFromLinePositionAsync(TextDocument document, LinePosition linePosition, CancellationToken cancellationToken) in /_/src/LanguageServer/Protocol/Extensions/Extensions.cs:line 163 at Microsoft.CodeAnalysis.LanguageServer.Handler.FindAllReferencesHandler.HandleRequestAsync(ReferenceParams referenceParams, RequestContext context, CancellationToken cancellationToken) in /_/src/LanguageServer/Protocol/Handler/References/FindAllReferencesHandler.cs:line 61 at Microsoft.CommonLanguageServerProtocol.Framework.QueueItem3.StartRequestAsync(TRequestContext context, IMethodHandler handler, CancellationToken cancellationToken) in /_/src/LanguageServer/Microsoft.CommonLanguageServerProtocol.Framework/QueueItem.cs:line 136 [Error - 12:26:47 PM] Request textDocument/references failed. Message: The requested line number 182 must be less than the number of lines 164. (Parameter 'Line') Code: -32000 [object Object] [Error - 12:26:47 PM] Request textDocument/references failed. Message: The requested line number 174 must be less than the number of lines 164. (Parameter 'Line') Code: -32000 [object Object] [Error - 12:26:48 PM] [LanguageServerHost] System.ArgumentException: Range={ Start={ Line=173, Character=7 }, End={ Line=174, Character=0 } }. text.Length=4268. text.Lines.Count=164 ---> System.ArgumentOutOfRangeException: The requested line number 173 must be less than the number of lines 164. (Parameter 'Line') at Microsoft.CodeAnalysis.Text.TextLineCollection.GetPosition(LinePosition position) in /_/src/Compilers/Core/Portable/Text/TextLineCollection.cs:line 67 at Microsoft.CodeAnalysis.Text.TextLineCollection.GetTextSpan(LinePositionSpan span) in /_/src/Compilers/Core/Portable/Text/TextLineCollection.cs:line 78 at Microsoft.CodeAnalysis.LanguageServer.ProtocolConversions.RangeToTextSpan(Range range, SourceText text) in /_/src/LanguageServer/Protocol/Extensions/ProtocolConversions.cs:line 330 --- End of inner exception stack trace --- at Microsoft.CodeAnalysis.LanguageServer.ProtocolConversions.RangeToTextSpan(Range range, SourceText text) in /_/src/LanguageServer/Protocol/Extensions/ProtocolConversions.cs:line 335 at Microsoft.CodeAnalysis.LanguageServer.Handler.CodeActions.CodeActionHelpers.GetActionSetsAsync(TextDocument document, CodeActionOptionsProvider fallbackOptions, ICodeFixService codeFixService, ICodeRefactoringService codeRefactoringService, Range selection, CancellationToken cancellationToken) in /_/src/LanguageServer/Protocol/Handler/CodeActions/CodeActionHelpers.cs:line 393 at Microsoft.CodeAnalysis.LanguageServer.Handler.CodeActions.CodeActionHelpers.GetVSCodeActionsAsync(CodeActionParams request, TextDocument document, CodeActionOptionsProvider fallbackOptions, ICodeFixService codeFixService, ICodeRefactoringService codeRefactoringService, Boolean hasVsLspCapability, CancellationToken cancellationToken) in /_/src/LanguageServer/Protocol/Handler/CodeActions/CodeActionHelpers.cs:line 40 at Microsoft.CodeAnalysis.LanguageServer.Handler.CodeActionsHandler.HandleRequestAsync(CodeActionParams request, RequestContext context, CancellationToken cancellationToken) in /_/src/LanguageServer/Protocol/Handler/CodeActions/CodeActionsHandler.cs:line 59 at Microsoft.CommonLanguageServerProtocol.Framework.QueueItem3.StartRequestAsync(TRequestContext context, IMethodHandler handler, CancellationToken cancellationToken) in /_/src/LanguageServer/Microsoft.CommonLanguageServerProtocol.Framework/QueueItem.cs:line 136 Error making textDocument/codeAction request: Range={ Start={ Line=173, Character=7 }, End={ Line=174, Character=0 } }. text.Length=4268. text.Lines.Count=164 [Error - 12:26:48 PM] [LanguageServerHost] System.ArgumentException: Range={ Start={ Line=74, Character=37 }, End={ Line=187, Character=0 } }. text.Length=4268. text.Lines.Count=164 ---> System.ArgumentOutOfRangeException: The requested line number 187 must be less than the number of lines 164. (Parameter 'Line') at Microsoft.CodeAnalysis.Text.TextLineCollection.GetPosition(LinePosition position) in /_/src/Compilers/Core/Portable/Text/TextLineCollection.cs:line 67 at Microsoft.CodeAnalysis.Text.TextLineCollection.GetTextSpan(LinePositionSpan span) in /_/src/Compilers/Core/Portable/Text/TextLineCollection.cs:line 78 at Microsoft.CodeAnalysis.LanguageServer.ProtocolConversions.RangeToTextSpan(Range range, SourceText text) in /_/src/LanguageServer/Protocol/Extensions/ProtocolConversions.cs:line 330 --- End of inner exception stack trace --- at Microsoft.CodeAnalysis.LanguageServer.ProtocolConversions.RangeToTextSpan(Range range, SourceText text) in /_/src/LanguageServer/Protocol/Extensions/ProtocolConversions.cs:line 335 at Microsoft.CodeAnalysis.LanguageServer.Handler.InlayHint.InlayHintHandler.HandleRequestAsync(InlayHintParams request, RequestContext context, CancellationToken cancellationToken) in /_/src/LanguageServer/Protocol/Handler/InlayHint/InlayHintHandler.cs:line 45 at Microsoft.CommonLanguageServerProtocol.Framework.QueueItem3.StartRequestAsync(TRequestContext context, IMethodHandler handler, CancellationToken cancellationToken) in /_/src/LanguageServer/Microsoft.CommonLanguageServerProtocol.Framework/QueueItem.cs:line 136 Error making textDocument/inlayHint request: Range={ Start={ Line=74, Character=37 }, End={ Line=187, Character=0 } }. text.Length=4268. text.Lines.Count=164 [Error - 12:32:42 PM] [LanguageServerHost] System.ArgumentException: Range={ Start={ Line=74, Character=37 }, End={ Line=187, Character=0 } }. text.Length=4432. text.Lines.Count=164 ---> System.ArgumentOutOfRangeException: The requested line number 187 must be less than the number of lines 164. (Parameter 'Line') at Microsoft.CodeAnalysis.Text.TextLineCollection.GetPosition(LinePosition position) in /_/src/Compilers/Core/Portable/Text/TextLineCollection.cs:line 67 at Microsoft.CodeAnalysis.Text.TextLineCollection.GetTextSpan(LinePositionSpan span) in /_/src/Compilers/Core/Portable/Text/TextLineCollection.cs:line 78 at Microsoft.CodeAnalysis.LanguageServer.ProtocolConversions.RangeToTextSpan(Range range, SourceText text) in /_/src/LanguageServer/Protocol/Extensions/ProtocolConversions.cs:line 330 --- End of inner exception stack trace --- at Microsoft.CodeAnalysis.LanguageServer.ProtocolConversions.RangeToTextSpan(Range range, SourceText text) in /_/src/LanguageServer/Protocol/Extensions/ProtocolConversions.cs:line 335 at Microsoft.CodeAnalysis.LanguageServer.Handler.InlayHint.InlayHintHandler.HandleRequestAsync(InlayHintParams request, RequestContext context, CancellationToken cancellationToken) in /_/src/LanguageServer/Protocol/Handler/InlayHint/InlayHintHandler.cs:line 45 at Microsoft.CommonLanguageServerProtocol.Framework.QueueItem3.StartRequestAsync(TRequestContext context, IMethodHandler handler, CancellationToken cancellationToken) Error making textDocument/inlayHint request: Range={ Start={ Line=74, Character=37 }, End={ Line=187, Character=0 } }. text.Length=4432. text.Lines.Count=164 [Error - 12:32:57 PM] [LanguageServerHost] System.ArgumentException: Range={ Start={ Line=74, Character=37 }, End={ Line=187, Character=0 } }. text.Length=4432. text.Lines.Count=164 ---> System.ArgumentOutOfRangeException: The requested line number 187 must be less than the number of lines 164. (Parameter 'Line') at Microsoft.CodeAnalysis.Text.TextLineCollection.GetPosition(LinePosition position) in /_/src/Compilers/Core/Portable/Text/TextLineCollection.cs:line 67 at Microsoft.CodeAnalysis.Text.TextLineCollection.GetTextSpan(LinePositionSpan span) in /_/src/Compilers/Core/Portable/Text/TextLineCollection.cs:line 78 at Microsoft.CodeAnalysis.LanguageServer.ProtocolConversions.RangeToTextSpan(Range range, SourceText text) in /_/src/LanguageServer/Protocol/Extensions/ProtocolConversions.cs:line 330 --- End of inner exception stack trace --- at Microsoft.CodeAnalysis.LanguageServer.ProtocolConversions.RangeToTextSpan(Range range, SourceText text) in /_/src/LanguageServer/Protocol/Extensions/ProtocolConversions.cs:line 335 at Microsoft.CodeAnalysis.LanguageServer.Handler.InlayHint.InlayHintHandler.HandleRequestAsync(InlayHintParams request, RequestContext context, CancellationToken cancellationToken) in /_/src/LanguageServer/Protocol/Handler/InlayHint/InlayHintHandler.cs:line 45 at Microsoft.CommonLanguageServerProtocol.Framework.QueueItem3.StartRequestAsync(TRequestContext context, IMethodHandler handler, CancellationToken cancellationToken) Error making textDocument/inlayHint request: Range={ Start={ Line=74, Character=37 }, End={ Line=187, Character=0 } }. text.Length=4432. text.Lines.Count=164
my error

@danielscatigno-ncpc
Copy link

danielscatigno-ncpc commented Jul 8, 2024

I'm always having this kind error, using pre release version here 2.37.26

Here's my log
Using dotnet configured on PATH
Dotnet path: C:\Program Files\dotnet\dotnet.exe
Activating C# + C# Dev Kit...
waiting for named pipe information from server...
[stdout] {"pipeName":"\\.\pipe\e6db2825"}
received named pipe information from server
attempting to connect client to server...
client has connected to server
[Info - 10:47:15 AM] [Program] Language server initialized
[Info - 10:47:19 AM] [WorkspaceProjectFactoryService] Project C:\Projetos\StoreGen\StoreGen.Service\StoreGen.Service.csproj loaded by C# Dev Kit
[Info - 10:47:19 AM] [WorkspaceProjectFactoryService] Project C:\Projetos\StoreGen\StoreGen.UI\StoreGen.UI.csproj loaded by C# Dev Kit
[Info - 10:47:19 AM] [WorkspaceProjectFactoryService] Project C:\Projetos\StoreGen\StoreGen.Shared\StoreGen.Shared.csproj loaded by C# Dev Kit
[Info - 10:47:19 AM] [WorkspaceProjectFactoryService] Project C:\Projetos\StoreGen\StoreGen.ViewModels\StoreGen.ViewModels.csproj loaded by C# Dev Kit
[Info - 10:47:19 AM] [WorkspaceProjectFactoryService] Project C:\Projetos\StoreGen\StoreGen.UI.Client\StoreGen.UI.Client.csproj loaded by C# Dev Kit
[Info - 10:47:19 AM] [WorkspaceProjectFactoryService] Project C:\Projetos\StoreGen\StoreGen.Infra\StoreGen.Infra.csproj loaded by C# Dev Kit
[Info - 10:47:19 AM] [WorkspaceProjectFactoryService] Project C:\Projetos\StoreGen\StoreGen.Resources\StoreGen.Resources.csproj loaded by C# Dev Kit
[Info - 10:47:20 AM] [WorkspaceProjectFactoryService] Project C:\Projetos\StoreGen\StoreGen.Test\StoreGen.Test.csproj loaded by C# Dev Kit
[Error - 10:48:42 AM] [LanguageServerHost] System.ArgumentOutOfRangeException: The requested line number 265 must be less than the number of lines 244. (Parameter 'Line')
at Microsoft.CodeAnalysis.Text.TextLineCollection.GetPosition(LinePosition position) in //src/Compilers/Core/Portable/Text/TextLineCollection.cs:line 67
at Microsoft.CodeAnalysis.Text.TextLineCollection.GetTextSpan(LinePositionSpan span) in /
/src/Compilers/Core/Portable/Text/TextLineCollection.cs:line 78
at Microsoft.CodeAnalysis.LanguageServer.Handler.SemanticTokens.SemanticTokensHelpers.ComputeSemanticTokensDataAsync(Document document, ImmutableArray1 spans, Boolean supportsVisualStudioExtensions, ClassificationOptions options, CancellationToken cancellationToken) in /_/src/LanguageServer/Protocol/Handler/SemanticTokens/SemanticTokensHelpers.cs:line 103 at Microsoft.CodeAnalysis.LanguageServer.Handler.SemanticTokens.SemanticTokensHelpers.HandleRequestHelperAsync(Document document, ImmutableArray1 spans, Boolean supportsVisualStudioExtensions, ClassificationOptions options, CancellationToken cancellationToken) in //src/LanguageServer/Protocol/Handler/SemanticTokens/SemanticTokensHelpers.cs:line 67
at Microsoft.CodeAnalysis.LanguageServer.Handler.SemanticTokens.SemanticTokensHelpers.HandleRequestHelperAsync(IGlobalOptionService globalOptions, SemanticTokensRefreshQueue semanticTokensRefreshQueue, Range[] ranges, RequestContext context, CancellationToken cancellationToken) in /
/src/LanguageServer/Protocol/Handler/SemanticTokens/SemanticTokensHelpers.cs:line 46
at Microsoft.CodeAnalysis.LanguageServer.Handler.SemanticTokens.SemanticTokensRangeHandler.HandleRequestAsync(SemanticTokensRangeParams request, RequestContext context, CancellationToken cancellationToken) in //src/LanguageServer/Protocol/Handler/SemanticTokens/SemanticTokensRangeHandler.cs:line 44
at Microsoft.CommonLanguageServerProtocol.Framework.QueueItem3.StartRequestAsync(TRequestContext context, IMethodHandler handler, CancellationToken cancellationToken) [Error - 10:48:42 AM] Request textDocument/semanticTokens/range failed. Message: The requested line number 265 must be less than the number of lines 244. (Parameter 'Line') Code: -32000 [object Object] [Error - 10:48:43 AM] [LanguageServerHost] System.ArgumentException: Range={ Start={ Line=141, Character=44 }, End={ Line=265, Character=4 } }. text.Length=6789. text.Lines.Count=244 ---> System.ArgumentOutOfRangeException: The requested line number 265 must be less than the number of lines 244. (Parameter 'Line') at Microsoft.CodeAnalysis.Text.TextLineCollection.GetPosition(LinePosition position) in /_/src/Compilers/Core/Portable/Text/TextLineCollection.cs:line 67 at Microsoft.CodeAnalysis.LanguageServer.ProtocolConversions.RangeToTextSpan(Range range, SourceText text) in /_/src/LanguageServer/Protocol/Extensions/ProtocolConversions.cs:line 330 --- End of inner exception stack trace --- at Microsoft.CodeAnalysis.LanguageServer.ProtocolConversions.RangeToTextSpan(Range range, SourceText text) in /_/src/LanguageServer/Protocol/Extensions/ProtocolConversions.cs:line 335 at Microsoft.CodeAnalysis.LanguageServer.Handler.InlayHint.InlayHintHandler.HandleRequestAsync(InlayHintParams request, RequestContext context, CancellationToken cancellationToken) in /_/src/LanguageServer/Protocol/Handler/InlayHint/InlayHintHandler.cs:line 45 at Microsoft.CommonLanguageServerProtocol.Framework.QueueItem3.StartRequestAsync(TRequestContext context, IMethodHandler handler, CancellationToken cancellationToken)
Error making textDocument/inlayHint request: Range={ Start={ Line=141, Character=44 }, End={ Line=265, Character=4 } }. text.Length=6789. text.Lines.Count=244
[Error - 10:49:41 AM] [LanguageServerHost] System.ArgumentOutOfRangeException: The requested line number 265 must be less than the number of lines 244. (Parameter 'Line')
at Microsoft.CodeAnalysis.Text.TextLineCollection.GetPosition(LinePosition position) in /
/src/Compilers/Core/Portable/Text/TextLineCollection.cs:line 67
at Microsoft.CodeAnalysis.Text.TextLineCollection.GetTextSpan(LinePositionSpan span) in //src/Compilers/Core/Portable/Text/TextLineCollection.cs:line 78
at Microsoft.CodeAnalysis.LanguageServer.Handler.SemanticTokens.SemanticTokensHelpers.ComputeSemanticTokensDataAsync(Document document, ImmutableArray1 spans, Boolean supportsVisualStudioExtensions, ClassificationOptions options, CancellationToken cancellationToken) in /_/src/LanguageServer/Protocol/Handler/SemanticTokens/SemanticTokensHelpers.cs:line 103 at Microsoft.CodeAnalysis.LanguageServer.Handler.SemanticTokens.SemanticTokensHelpers.HandleRequestHelperAsync(Document document, ImmutableArray1 spans, Boolean supportsVisualStudioExtensions, ClassificationOptions options, CancellationToken cancellationToken) in /
/src/LanguageServer/Protocol/Handler/SemanticTokens/SemanticTokensHelpers.cs:line 67
at Microsoft.CodeAnalysis.LanguageServer.Handler.SemanticTokens.SemanticTokensHelpers.HandleRequestHelperAsync(IGlobalOptionService globalOptions, SemanticTokensRefreshQueue semanticTokensRefreshQueue, Range[] ranges, RequestContext context, CancellationToken cancellationToken) in //src/LanguageServer/Protocol/Handler/SemanticTokens/SemanticTokensHelpers.cs:line 46
at Microsoft.CodeAnalysis.LanguageServer.Handler.SemanticTokens.SemanticTokensRangeHandler.HandleRequestAsync(SemanticTokensRangeParams request, RequestContext context, CancellationToken cancellationToken) in /
/src/LanguageServer/Protocol/Handler/SemanticTokens/SemanticTokensRangeHandler.cs:line 44
at Microsoft.CommonLanguageServerProtocol.Framework.QueueItem3.StartRequestAsync(TRequestContext context, IMethodHandler handler, CancellationToken cancellationToken) [Error - 10:49:41 AM] Request textDocument/semanticTokens/range failed. Message: The requested line number 265 must be less than the number of lines 244. (Parameter 'Line') Code: -32000 [object Object] [Error - 10:49:42 AM] [LanguageServerHost] System.ArgumentException: Range={ Start={ Line=141, Character=44 }, End={ Line=265, Character=4 } }. text.Length=6790. text.Lines.Count=244 ---> System.ArgumentOutOfRangeException: The requested line number 265 must be less than the number of lines 244. (Parameter 'Line') at Microsoft.CodeAnalysis.Text.TextLineCollection.GetPosition(LinePosition position) in /_/src/Compilers/Core/Portable/Text/TextLineCollection.cs:line 67 at Microsoft.CodeAnalysis.LanguageServer.ProtocolConversions.RangeToTextSpan(Range range, SourceText text) in /_/src/LanguageServer/Protocol/Extensions/ProtocolConversions.cs:line 330 --- End of inner exception stack trace --- at Microsoft.CodeAnalysis.LanguageServer.ProtocolConversions.RangeToTextSpan(Range range, SourceText text) in /_/src/LanguageServer/Protocol/Extensions/ProtocolConversions.cs:line 335 at Microsoft.CodeAnalysis.LanguageServer.Handler.InlayHint.InlayHintHandler.HandleRequestAsync(InlayHintParams request, RequestContext context, CancellationToken cancellationToken) in /_/src/LanguageServer/Protocol/Handler/InlayHint/InlayHintHandler.cs:line 45 at Microsoft.CommonLanguageServerProtocol.Framework.QueueItem3.StartRequestAsync(TRequestContext context, IMethodHandler handler, CancellationToken cancellationToken)
Error making textDocument/inlayHint request: Range={ Start={ Line=141, Character=44 }, End={ Line=265, Character=4 } }. text.Length=6790. text.Lines.Count=244


@namespace StoreGen.UI.Components
@inherits StoreGenBaseComponent
<div class="featurefilter-container">

   @if (Features != null && Features.Any())
   {
      <SfAccordion>
         <AccordionItems>

            @foreach (var f in Features.GroupBy(x => x.Name).Select(x => new
            {
               Name = x.Key,
               Values = x.ToList()
            }).ToList())
            {
               <AccordionItem>
                  <HeaderTemplate>
                     <div>@f.Name</div>
                  </HeaderTemplate>
                  <ContentTemplate>
                     @foreach (var value in f.Values)
                     {
                        <div>@value</div>
                     }
                  </ContentTemplate>
               </AccordionItem>

            }
         </AccordionItems>
      </SfAccordion>

   }

</div>

@danielscatigno-ncpc
Copy link

image
I'm not sure if it helps, but, the namespace is imported on the _imports.razor file

@phil-allen-msft phil-allen-msft removed this from the 17.12 P3 milestone Oct 1, 2024
ryzngard added a commit to dotnet/vscode-csharp that referenced this issue Oct 3, 2024
@ryzngard
Copy link
Contributor

ryzngard commented Oct 3, 2024

Resolved with dotnet/vscode-csharp#7624

Will be in next prerelease.

@ryzngard ryzngard closed this as completed Oct 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants