Skip to content

Commit 792180d

Browse files
authored
Update omnisharp (#591)
* Update omnisharp * Fixes for omnisharp update * Update other dependencies
1 parent 607c9a5 commit 792180d

File tree

6 files changed

+17
-13
lines changed

6 files changed

+17
-13
lines changed

Changelog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
## [1.0.24] - 2023-10-10
8+
### Dependencies
9+
Update OmniSharp language server and App Inspector dependencies.
10+
711
## [1.0.23] - 2023-10-05
812
### Miscellaneous
913
Update deployment pipeline version

DevSkim-DotNet/Microsoft.DevSkim.CLI/Microsoft.DevSkim.CLI.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@
3737
<ItemGroup>
3838
<PackageReference Include="CommandLineParser" Version="2.9.1" />
3939
<PackageReference Include="LibGit2Sharp" Version="0.27.2" />
40-
<PackageReference Include="Microsoft.CST.ApplicationInspector.Logging" Version="1.9.12" />
40+
<PackageReference Include="Microsoft.CST.ApplicationInspector.Logging" Version="1.9.14" />
4141
<PackageReference Include="Microsoft.Extensions.CommandLineUtils" Version="1.1.1" />
42-
<PackageReference Include="Sarif.Sdk" Version="4.3.1" />
42+
<PackageReference Include="Sarif.Sdk" Version="4.3.4" />
4343
</ItemGroup>
4444

4545
</Project>

DevSkim-DotNet/Microsoft.DevSkim.LanguageProtoInterop/Microsoft.DevSkim.LanguageProtoInterop.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
</PropertyGroup>
88

99
<ItemGroup>
10-
<PackageReference Include="OmniSharp.Extensions.LanguageServer" Version="0.19.7" />
10+
<PackageReference Include="OmniSharp.Extensions.LanguageServer" Version="0.19.9" />
1111
</ItemGroup>
1212

1313
</Project>

DevSkim-DotNet/Microsoft.DevSkim.LanguageServer/Microsoft.DevSkim.LanguageServer.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<ItemGroup>
1515
<PackageReference Include="CommandLineParser" Version="2.9.1" />
1616
<PackageReference Include="Microsoft.Extensions.Logging" Version="7.0.0" />
17-
<PackageReference Include="OmniSharp.Extensions.LanguageServer" Version="0.19.7" />
17+
<PackageReference Include="OmniSharp.Extensions.LanguageServer" Version="0.19.9" />
1818
<PackageReference Include="Serilog.Extensions.Logging" Version="7.0.0" />
1919
<PackageReference Include="Serilog.Sinks.Debug" Version="2.0.0" />
2020
<PackageReference Include="Serilog.Sinks.File" Version="5.0.0" />

DevSkim-DotNet/Microsoft.DevSkim.LanguageServer/TextDocumentSyncHandler.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ internal class TextDocumentSyncHandler : TextDocumentSyncHandlerBase
2020
{
2121
private readonly ILogger<TextDocumentSyncHandler> _logger;
2222
private readonly ILanguageServerFacade _facade;
23-
private readonly DocumentSelector _documentSelector = DocumentSelector.ForLanguage(StaticScannerSettings.RuleProcessorOptions.Languages.GetNames());
23+
private readonly TextDocumentSelector _documentSelector = TextDocumentSelector.ForLanguage(StaticScannerSettings.RuleProcessorOptions.Languages.GetNames());
2424
private DevSkimRuleProcessor _processor => StaticScannerSettings.Processor;
2525

2626
public TextDocumentSyncHandler(ILogger<TextDocumentSyncHandler> logger, ILanguageServerFacade facade)
@@ -190,13 +190,6 @@ public override async Task<Unit> Handle(DidSaveTextDocumentParams request, Cance
190190
return Unit.Value;
191191
}
192192

193-
protected override TextDocumentSyncRegistrationOptions CreateRegistrationOptions(SynchronizationCapability capability, ClientCapabilities clientCapabilities) => new TextDocumentSyncRegistrationOptions()
194-
{
195-
DocumentSelector = _documentSelector,
196-
Change = Change,
197-
Save = new SaveOptions() { IncludeText = true }
198-
};
199-
200193
public override TextDocumentAttributes GetTextDocumentAttributes(DocumentUri uri)
201194
{
202195
if (StaticScannerSettings.RuleProcessorOptions.Languages.FromFileNameOut(uri.GetFileSystemPath(), out LanguageInfo Info))
@@ -205,5 +198,12 @@ public override TextDocumentAttributes GetTextDocumentAttributes(DocumentUri uri
205198
}
206199
return new TextDocumentAttributes(uri, "unknown");
207200
}
201+
202+
protected override TextDocumentSyncRegistrationOptions CreateRegistrationOptions(TextSynchronizationCapability capability, ClientCapabilities clientCapabilities) => new TextDocumentSyncRegistrationOptions()
203+
{
204+
DocumentSelector = _documentSelector,
205+
Change = Change,
206+
Save = new SaveOptions() { IncludeText = true }
207+
};
208208
}
209209
}

DevSkim-DotNet/Microsoft.DevSkim/Microsoft.DevSkim.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
</ItemGroup>
2525

2626
<ItemGroup>
27-
<PackageReference Include="Microsoft.CST.ApplicationInspector.RulesEngine" Version="1.9.13" />
27+
<PackageReference Include="Microsoft.CST.ApplicationInspector.RulesEngine" Version="1.9.14" />
2828
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
2929
</ItemGroup>
3030

0 commit comments

Comments
 (0)