Skip to content

Commit de93818

Browse files
committed
Refactoring: responsibilities to resolver and not provider
1 parent 21507c8 commit de93818

File tree

11 files changed

+710
-373
lines changed

11 files changed

+710
-373
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
// Copyright (c) .NET Foundation. All rights reserved.
2+
// Licensed under the MIT license. See License.txt in the project root for license information.
3+
4+
using System;
5+
using System.Collections.Generic;
6+
using System.Text.Json.Serialization;
7+
using Microsoft.VisualStudio.LanguageServer.Protocol;
8+
9+
namespace Microsoft.AspNetCore.Razor.LanguageServer.CodeActions.Models;
10+
11+
internal sealed class ExtractToComponentCodeActionParams
12+
{
13+
[JsonPropertyName("uri")]
14+
public required Uri Uri { get; set; }
15+
16+
[JsonPropertyName("selectStart")]
17+
public required Position SelectStart { get; set; }
18+
19+
[JsonPropertyName("selectEnd")]
20+
public required Position SelectEnd { get; set; }
21+
22+
[JsonPropertyName("absoluteIndex")]
23+
public required int AbsoluteIndex { get; set; }
24+
25+
[JsonPropertyName("namespace")]
26+
public required string Namespace { get; set; }
27+
}

src/Razor/src/Microsoft.AspNetCore.Razor.LanguageServer/CodeActions/Models/ExtractToNewComponentCodeActionParams.cs

Lines changed: 0 additions & 32 deletions
This file was deleted.

0 commit comments

Comments
 (0)