Skip to content

Type completion with tooltips #1352

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 20 commits into from
Sep 9, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
add versionutils
  • Loading branch information
TylerLeonhardt committed Sep 9, 2020
commit d5ac3796e29c023cbc24e3f50a8722c625af3906
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
using Microsoft.PowerShell.EditorServices.Test.Shared.References;
using Microsoft.PowerShell.EditorServices.Test.Shared.SymbolDetails;
using Microsoft.PowerShell.EditorServices.Test.Shared.Symbols;
using Microsoft.PowerShell.EditorServices.Utility;
using Xunit;
using Xunit.Abstractions;

Expand All @@ -35,7 +36,7 @@ public class LanguageServiceTests : IDisposable
private readonly PowerShellContextService powerShellContext;
private static readonly string s_baseSharedScriptPath =
Path.Combine(
Path.GetDirectoryName(RuntimeInformation.IsOSPlatform(OSPlatform.Windows)
Path.GetDirectoryName(VersionUtils.IsWindows
// On non-Windows platforms, CodeBase has file:// in it.
// On Windows, Location points to a temp directory.
? typeof(LanguageServiceTests).Assembly.CodeBase
Expand Down Expand Up @@ -99,7 +100,7 @@ await this.GetCompletionResults(
public async Task LanguageServiceCompletesTypeName()
{
Skip.If(
TestsFixture.IsWindowsPowerShell,
!VersionUtils.IsNetCore,
"Windows PowerShell return no results from CommandCompletion in the test harness. Since it works in PS7 and works manually when I run the extension, I'm skipping this test");

CompletionResults completionResults =
Expand All @@ -126,7 +127,7 @@ await this.GetCompletionResults(
public async Task LanguageServiceCompletesNamespace()
{
Skip.If(
TestsFixture.IsWindowsPowerShell,
!VersionUtils.IsNetCore,
"Windows PowerShell return no results from CommandCompletion in the test harness. Since it works in PS7 and works manually when I run the extension, I'm skipping this test");

CompletionResults completionResults =
Expand Down