Skip to content

Commit b477091

Browse files
Added Diagnostics
1 parent e83daf4 commit b477091

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ class TextDocumentHandler : ITextDocumentSyncHandler
1818
{
1919

2020
private readonly ILogger _logger;
21+
private readonly ILanguageServer _languageServer;
2122
private readonly AnalysisService _analysisService;
2223
private readonly WorkspaceService _workspaceService;
2324

@@ -37,9 +38,10 @@ class TextDocumentHandler : ITextDocumentSyncHandler
3738

3839
public TextDocumentSyncKind Change => TextDocumentSyncKind.Incremental;
3940

40-
public TextDocumentHandler(ILoggerFactory factory, AnalysisService analysisService, WorkspaceService workspaceService)
41+
public TextDocumentHandler(ILoggerFactory factory, ILanguageServer languageServer, AnalysisService analysisService, WorkspaceService workspaceService)
4142
{
4243
_logger = factory.CreateLogger<TextDocumentHandler>();
44+
_languageServer = languageServer;
4345
_analysisService = analysisService;
4446
_workspaceService = workspaceService;
4547
}

test/Pester/EditorServices.Integration.Tests.ps1

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

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

0 commit comments

Comments
 (0)