Skip to content

Commit

Permalink
Merge pull request #1984 from PowerShell/andschwa/better-symbols
Browse files Browse the repository at this point in the history
Integrating class symbol support
  • Loading branch information
andyleejordan authored Feb 2, 2023
2 parents 3938982 + 6208b53 commit 2df6d51
Show file tree
Hide file tree
Showing 69 changed files with 2,466 additions and 2,849 deletions.
277 changes: 0 additions & 277 deletions src/PowerShellEditorServices/Extensions/Api/DocumentSymbolService.cs

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ internal EditorExtensionServiceProvider(IServiceProvider serviceProvider)
{
_serviceProvider = serviceProvider;
LanguageServer = new LanguageServerService(_serviceProvider.GetService<ILanguageServerFacade>());
//DocumentSymbols = new DocumentSymbolService(_serviceProvider.GetService<SymbolsService>());
ExtensionCommands = new ExtensionCommandService(_serviceProvider.GetService<ExtensionService>());
Workspace = new WorkspaceService(_serviceProvider.GetService<InternalServices.WorkspaceService>());
EditorContext = new EditorContextService(_serviceProvider.GetService<ILanguageServerFacade>());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@

<!-- TODO: Remove these entirely. -->
<ItemGroup>
<Compile Remove="Extensions\Api\DocumentSymbolService.cs" />
<Compile Remove="Services\Extension\Templating\**" />
<EmbeddedResource Remove="Services\Extension\Templating\**" />
<None Remove="Services\Extension\Templating\**" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
using Microsoft.PowerShell.EditorServices.Services;
using Microsoft.PowerShell.EditorServices.Services.Symbols;
using Microsoft.PowerShell.EditorServices.Services.TextDocument;
using Microsoft.PowerShell.EditorServices.Utility;
using Newtonsoft.Json.Linq;
using OmniSharp.Extensions.LanguageServer.Protocol.Models;
using OmniSharp.Extensions.LanguageServer.Protocol.Serialization;
Expand Down Expand Up @@ -47,7 +46,7 @@ public PesterCodeLensProvider(ConfigurationService configurationService)
private static CodeLens[] GetPesterLens(PesterSymbolReference pesterSymbol, ScriptFile scriptFile)
{
string word = pesterSymbol.Command == PesterCommandType.It ? "test" : "tests";
CodeLens[] codeLensResults = new CodeLens[]
return new CodeLens[]
{
new CodeLens()
{
Expand Down Expand Up @@ -92,8 +91,6 @@ private static CodeLens[] GetPesterLens(PesterSymbolReference pesterSymbol, Scri
}
}
};

return codeLensResults;
}

/// <summary>
Expand All @@ -120,7 +117,7 @@ public CodeLens[] ProvideCodeLenses(ScriptFile scriptFile, CancellationToken can
continue;
}

// Skip codelense for setup/teardown block
// Skip CodeLens for setup/teardown block
if (!PesterSymbolReference.IsPesterTestCommand(pesterSymbol.Command))
{
continue;
Expand Down
Loading

0 comments on commit 2df6d51

Please sign in to comment.