Skip to content

Commit 6501d80

Browse files
didChangeConfiguration message and general settings support
1 parent b477091 commit 6501d80

File tree

3 files changed

+5
-12
lines changed

3 files changed

+5
-12
lines changed

src/PowerShellEditorServices.Engine/Services/TextDocument/Handlers/TextDocumentHandler.cs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,9 @@ class TextDocumentHandler : ITextDocumentSyncHandler
1818
{
1919

2020
private readonly ILogger _logger;
21-
private readonly ILanguageServer _languageServer;
2221
private readonly AnalysisService _analysisService;
2322
private readonly WorkspaceService _workspaceService;
2423

25-
private Dictionary<string, Dictionary<string, MarkerCorrection>> codeActionsPerFile =
26-
new Dictionary<string, Dictionary<string, MarkerCorrection>>();
27-
28-
private static CancellationTokenSource s_existingRequestCancellation;
29-
3024
private readonly DocumentSelector _documentSelector = new DocumentSelector(
3125
new DocumentFilter()
3226
{
@@ -38,10 +32,9 @@ class TextDocumentHandler : ITextDocumentSyncHandler
3832

3933
public TextDocumentSyncKind Change => TextDocumentSyncKind.Incremental;
4034

41-
public TextDocumentHandler(ILoggerFactory factory, ILanguageServer languageServer, AnalysisService analysisService, WorkspaceService workspaceService)
35+
public TextDocumentHandler(ILoggerFactory factory, AnalysisService analysisService, WorkspaceService workspaceService)
4236
{
4337
_logger = factory.CreateLogger<TextDocumentHandler>();
44-
_languageServer = languageServer;
4538
_analysisService = analysisService;
4639
_workspaceService = workspaceService;
4740
}

src/PowerShellEditorServices.Engine/Services/Workspace/LanguageServerSettings.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,10 @@ public class CodeFormattingSettings
178178
/// </summary>>
179179
public CodeFormattingSettings()
180180
{
181+
<<<<<<< HEAD
182+
=======
183+
184+
>>>>>>> didChangeConfiguration message and general settings support
181185
}
182186

183187
/// <summary>

test/Pester/EditorServices.Integration.Tests.ps1

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -117,11 +117,7 @@ function Get-Foo {
117117
# ReportLogErrors -LogPath $psesServer.LogPath -FromIndex ([ref]$logIdx)
118118
}
119119

120-
<<<<<<< HEAD
121120
It "Can get Diagnostics after opening a text document" {
122-
=======
123-
It "Can get Diagnostics" {
124-
>>>>>>> Added Diagnostics
125121
$script = '$a = 4'
126122
$file = Set-Content -Path (Join-Path $TestDrive "$([System.IO.Path]::GetRandomFileName()).ps1") -Value $script -PassThru -Force
127123

0 commit comments

Comments
 (0)