Skip to content

Support folding ranges in cohosting#10447

Merged
davidwengier merged 16 commits intodotnet:mainfrom
davidwengier:CohostFoldingRange
Jun 25, 2024
Merged

Support folding ranges in cohosting#10447
davidwengier merged 16 commits intodotnet:mainfrom
davidwengier:CohostFoldingRange

Conversation

@davidwengier
Copy link
Member

Part of #9519

This was all written a while ago, but was waiting for a Roslyn VS insertion before it could be merged. That has now happened, so all of this productive code writen on pure Australian soil can be reviewed.

@ryzngard
Copy link
Contributor

ryzngard commented Jun 4, 2024

pure Australian soil

The most American thing we can do is import this code via plane instead of using the internet.

@davidwengier
Copy link
Member Author

Ping @dotnet/razor-tooling for reviews if you please :)

# Conflicts:
#	src/Razor/src/Microsoft.AspNetCore.Razor.LanguageServer/Folding/FoldingRangeEndpoint.cs
#	src/Razor/src/Microsoft.AspNetCore.Razor.LanguageServer/RazorLanguageServer.cs

internal interface IFoldingRangeService
{
ImmutableArray<FoldingRange> GetFoldingRanges(RazorCodeDocument codeDocument, ImmutableArray<FoldingRange> csharpRanges, ImmutableArray<FoldingRange> htmlRanges, CancellationToken cancellationToken);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Super-nit: seems like an excessively long line :) (now that I"m used to VSCode yelling at me for that...)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have a 34" widescreen monitor 😛


internal interface IRemoteFoldingRangeService
{
ValueTask<ImmutableArray<RemoteFoldingRange>> GetFoldingRangesAsync(RazorPinnedSolutionInfoWrapper solutionInfo, DocumentId documentId, ImmutableArray<RemoteFoldingRange> htmlRanges, CancellationToken cancellationToken);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same super-nit about long line

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants