Skip to content

Commit 508e3ac

Browse files
Added latest spec changes, showDocument and onTypeRename (#431)
* Added latest spec changes, showDocument and onTypeRename
1 parent 3da76be commit 508e3ac

37 files changed

+384
-34
lines changed

.azure-pipelines.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,9 @@ jobs:
7575
- template: support/install-dotnet.yml@rsg
7676
parameters:
7777
DotNetSdk:
78-
- '2.x'
79-
- '3.x'
78+
- '2.1.x'
79+
- '3.1.x'
80+
- '5.0.x'
8081

8182
- task: DotNetCoreCLI@2
8283
displayName: 'dotnet tool restore'

.build/.build.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>netcoreapp3.1</TargetFramework>
5+
<TargetFramework>net5.0</TargetFramework>
66
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
77
<RootNamespace></RootNamespace>
88
<IsPackable>False</IsPackable>

.build/Solution.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,9 @@ public static RocketSurgeonGitHubActionsConfiguration Middleware(RocketSurgeonGi
6767
new SetupDotNetStep("Use .NET Core 3.1 SDK") {
6868
DotNetVersion = "3.1.x"
6969
},
70+
new SetupDotNetStep("Use .NET Core 5.0 SDK") {
71+
DotNetVersion = "5.0.x"
72+
},
7073
}
7174
);
7275

.github/workflows/ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@ jobs:
5252
uses: actions/[email protected]
5353
with:
5454
dotnet-version: '3.1.x'
55+
- name: 🔨 Use .NET Core 5.0 SDK
56+
uses: actions/[email protected]
57+
with:
58+
dotnet-version: '5.0.x'
5559
- name: 🎁 dotnet tool restore
5660
run: |
5761
dotnet tool restore

.vscode/settings.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
{
22
"coverage-gutters.lcovname": "*.info",
33
"coverage-gutters.showGutterCoverage": true,
4+
"omnisharp.enableLspDriver": true,
45
"cSpell.words": [
56
"Unregisterations",
67
"Unregistration",
78
"Unregistrations",
89
"deresult",
910
"reciever"
1011
]
11-
}
12+
}

Directory.Build.targets

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@
22
<Project>
33
<ItemGroup>
44
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="All" />
5-
<PackageReference Include="Rocket.Surgery.MSBuild.CI" Version="1.0.0" PrivateAssets="All" />
6-
<PackageReference Include="Rocket.Surgery.MSBuild.Metadata" Version="1.0.0" PrivateAssets="All" />
7-
<PackageReference Include="Rocket.Surgery.MSBuild.SourceLink" Version="1.0.0" PrivateAssets="All" />
5+
<PackageReference Include="Rocket.Surgery.MSBuild.CI" Version="1.1.0" PrivateAssets="All" />
6+
<PackageReference Include="Rocket.Surgery.MSBuild.Metadata" Version="1.1.0" PrivateAssets="All" />
7+
<PackageReference Include="Rocket.Surgery.MSBuild.SourceLink" Version="1.1.0" PrivateAssets="All" />
88
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.0" PrivateAssets="All" />
99
</ItemGroup>
1010
<ItemGroup>
11-
<PackageReference Update="GitVersion.Tool" Version="5.5.0" />
11+
<PackageReference Update="GitVersion.Tool" Version="5.5.1" />
1212
<PackageReference Update="JetBrains.ReSharper.CommandLineTools" Version="2020.2.4" />
1313
<PackageReference Update="ReportGenerator" Version="4.8.0" />
14-
<PackageReference Update="Rocket.Surgery.Nuke" Version="0.14.0-beta.10" />
14+
<PackageReference Update="Rocket.Surgery.Nuke" Version="0.14.2" />
1515
</ItemGroup>
1616
<ItemGroup>
1717
<PackageReference Update="Microsoft.Extensions.Logging" Version="2.0.0" />

LSP.sln

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "test", "test", "{2F323ED5-E
1414
EndProjectSection
1515
EndProject
1616
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".config", ".config", "{AE4D7807-6F78-428C-A0D9-914BA583A104}"
17-
ProjectSection(SolutionItems) = preProject
17+
ProjectSection(SolutionItems) = prePrlaoject
1818
.appveyor.yml = .appveyor.yml
1919
.editorconfig = .editorconfig
2020
.gitattributes = .gitattributes

language-server-protocol.sha.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
-- This is the last commit we caught up with https://github.com/Microsoft/language-server-protocol/commits/gh-pages
2-
lastSha: 558f1e114a3dc53da7c3686a657ebef070275d63
2+
lastSha: 0e116448e3b3f4ce0b983768c045dba0a41b6a72
33

4-
https://github.com/Microsoft/language-server-protocol/compare/558f1e114a3dc53da7c3686a657ebef070275d63..gh-pages
4+
https://github.com/Microsoft/language-server-protocol/compare/0e116448e3b3f4ce0b983768c045dba0a41b6a72..gh-pages

sample/SampleServer/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ private static async Task MainAsync(string[] args)
3030

3131
Log.Logger.Information("This only goes file...");
3232

33-
IObserver<WorkDoneProgressReport> workDone = null;
33+
IObserver<WorkDoneProgressReport> workDone = null!;
3434

3535
var server = await LanguageServer.From(
3636
options =>

sample/SampleServer/SemanticTokensHandler.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,15 @@ public SemanticTokensHandler(ILogger<SemanticTokensHandler> logger) : base(
3030
) =>
3131
_logger = logger;
3232

33-
public override async Task<SemanticTokens> Handle(
33+
public override async Task<SemanticTokens?> Handle(
3434
SemanticTokensParams request, CancellationToken cancellationToken
3535
)
3636
{
3737
var result = await base.Handle(request, cancellationToken);
3838
return result;
3939
}
4040

41-
public override async Task<SemanticTokens> Handle(
41+
public override async Task<SemanticTokens?> Handle(
4242
SemanticTokensRangeParams request, CancellationToken cancellationToken
4343
)
4444
{
@@ -66,7 +66,7 @@ CancellationToken cancellationToken
6666
var content = await File.ReadAllTextAsync(DocumentUri.GetFileSystemPath(identifier), cancellationToken);
6767
await Task.Yield();
6868

69-
foreach (var (line, text) in content.Split('\n').Select((text, line) => ( line, text )))
69+
foreach (var (line, text) in content.Split('\n').Select((text, line) => (line, text)))
7070
{
7171
var parts = text.TrimEnd().Split(';', ' ', '.', '"', '(', ')');
7272
var index = 0;

0 commit comments

Comments
 (0)