Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
1 change: 0 additions & 1 deletion src/Bicep.Core.IntegrationTests/SourceArchiveTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
using Bicep.Core.Utils;
using Bicep.IO.Abstraction;
using Bicep.IO.Utils;
using Bicep.LanguageServer.Handlers;
using Bicep.Testing.Assertions;
using Bicep.Testing.IO;
using Bicep.Testing.Mocks;
Expand Down
2 changes: 1 addition & 1 deletion src/Bicep.Core.UnitTests/BicepTestConstants.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
using Bicep.IO.Abstraction;
using Bicep.IO.FileSystem;
using Bicep.IO.InMemory;
using Bicep.LanguageServer.Telemetry;
using Bicep.LanguageServer.Features.Custom.Telemetry;
using Bicep.Testing;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.WindowsAzure.ResourceStack.Common.Extensions;
Expand Down
6 changes: 3 additions & 3 deletions src/Bicep.Core.UnitTests/IServiceCollectionExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@
using Bicep.Decompiler;
using Bicep.IO.Abstraction;
using Bicep.IO.FileSystem;
using Bicep.LanguageServer.CompilationManager;
using Bicep.LanguageServer.Deploy;
using Bicep.LanguageServer.Providers;
using Bicep.LanguageServer.Compilation;
using Bicep.LanguageServer.Features.Custom.Deployments.Services;
using Bicep.LanguageServer.Features.Custom.InsertResource;
using Microsoft.Extensions.DependencyInjection;
using Moq;
using LocalFileSystem = System.IO.Abstractions.FileSystem;
Expand Down
2 changes: 1 addition & 1 deletion src/Bicep.Core.UnitTests/Syntax/SyntaxModifierTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using Bicep.Core.Syntax.Rewriters;
using Bicep.Core.UnitTests.Assertions;
using Bicep.Core.UnitTests.Utils;
using Bicep.LanguageServer.Completions;
using Bicep.LanguageServer.Features.Language.Completion;
using FluentAssertions;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Microsoft.WindowsAzure.ResourceStack.Common.Extensions;
Expand Down
3 changes: 2 additions & 1 deletion src/Bicep.LangServer.IntegrationTests/CodeLensTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
using Bicep.Core.Utils;
using Bicep.IO.Abstraction;
using Bicep.LangServer.IntegrationTests.Helpers;
using Bicep.LanguageServer.Handlers;
using Bicep.LanguageServer.Features.Language.CodeLens;
using Bicep.LanguageServer.Features.Language.DocumentLink;
using Bicep.Testing.Dummies;
using Bicep.Testing;
using FluentAssertions;
Expand Down
3 changes: 1 addition & 2 deletions src/Bicep.LangServer.IntegrationTests/CompletionTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,8 @@
using Bicep.LangServer.IntegrationTests.Completions;
using Bicep.LangServer.IntegrationTests.Helpers;
using Bicep.LanguageServer;
using Bicep.LanguageServer.Completions;
using Bicep.LanguageServer.Extensions;
using Bicep.LanguageServer.Providers;
using Bicep.LanguageServer.Features.Language.Completion;
using Bicep.LanguageServer.Settings;
using Bicep.LanguageServer.Utils;
using FluentAssertions;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Licensed under the MIT License.

using System.Text.RegularExpressions;
using Bicep.LanguageServer.Snippets;
using Bicep.LanguageServer.Features.Language.Completion.Snippets;
using FluentAssertions;

namespace Bicep.LangServer.IntegrationTests.Completions
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,8 @@
using Bicep.Core.UnitTests.Mock;
using Bicep.Core.UnitTests.Utils;
using Bicep.LanguageServer;
using Bicep.LanguageServer.Deploy;
using Bicep.LanguageServer.Handlers;
using Bicep.LanguageServer.Providers;
using Bicep.LanguageServer.Features.Custom.Deployments;
using Bicep.LanguageServer.Features.Custom.Deployments.Services;
using FluentAssertions;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Microsoft.WindowsAzure.ResourceStack.Common.Json;
Expand Down Expand Up @@ -79,7 +78,7 @@ public async Task IncorrectUpdateOption_WithBicepparamFile_ReturnsError()
string.Empty,
true,
string.Empty,
LanguageServer.Deploy.ParametersFileUpdateOption.Create,
LanguageServer.Features.Custom.Deployments.Services.ParametersFileUpdateOption.Create,
new List<BicepUpdatedDeploymentParameter>(),
"https://management.azure.com/",
"https://management.core.windows.net/");
Expand Down Expand Up @@ -133,7 +132,7 @@ public async Task ProvidingUpdateParameterValues_WithBicepparamFile_ReturnsError
string.Empty,
true,
string.Empty,
LanguageServer.Deploy.ParametersFileUpdateOption.None,
LanguageServer.Features.Custom.Deployments.Services.ParametersFileUpdateOption.None,
new List<BicepUpdatedDeploymentParameter>{
new("foo", "bar", false, null)
},
Expand Down Expand Up @@ -188,7 +187,7 @@ public async Task NotProvidingParameterFileName_WithJsonParameterFile_ReturnsErr
string.Empty,
true,
null, //ParametersFileName
LanguageServer.Deploy.ParametersFileUpdateOption.None,
LanguageServer.Features.Custom.Deployments.Services.ParametersFileUpdateOption.None,
new List<BicepUpdatedDeploymentParameter>(),
"https://management.azure.com/",
"https://management.core.windows.net/");
Expand Down Expand Up @@ -240,7 +239,7 @@ public async Task StartDeploymentAsync_WithInvalidParameterFilePath_ReturnsDeplo
string.Empty,
true,
string.Empty,
LanguageServer.Deploy.ParametersFileUpdateOption.None,
LanguageServer.Features.Custom.Deployments.Services.ParametersFileUpdateOption.None,
new List<BicepUpdatedDeploymentParameter>(),
"https://management.azure.com/",
"https://management.core.windows.net/");
Expand Down Expand Up @@ -295,7 +294,7 @@ public async Task StartDeploymentAsync_WithInvalidParameterFileContents_ReturnsD
string.Empty,
true,
string.Empty,
LanguageServer.Deploy.ParametersFileUpdateOption.None,
LanguageServer.Features.Custom.Deployments.Services.ParametersFileUpdateOption.None,
new List<BicepUpdatedDeploymentParameter>(),
"https://management.azure.com/",
"https://management.core.windows.net/");
Expand Down Expand Up @@ -368,7 +367,7 @@ public async Task StartDeploymentAsync_WithNoParameterFile_Succeeds()
string.Empty,
true,
string.Empty,
LanguageServer.Deploy.ParametersFileUpdateOption.None,
LanguageServer.Features.Custom.Deployments.Services.ParametersFileUpdateOption.None,
new List<BicepUpdatedDeploymentParameter>(),
"https://management.azure.com/",
"https://management.core.windows.net/");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
using Bicep.LangServer.IntegrationTests.Assertions;
using Bicep.LangServer.IntegrationTests.Helpers;
using Bicep.LanguageServer.Extensions;
using Bicep.LanguageServer.Refactor;
using Bicep.LanguageServer.Features.Language.CodeAction;
using Bicep.LanguageServer.Utils;
using FluentAssertions;
using FluentAssertions.Execution;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
using Bicep.Core.UnitTests.Assertions;
using Bicep.Core.UnitTests.Utils;
using Bicep.LangServer.IntegrationTests.Helpers;
using Bicep.LanguageServer.Handlers;
using Bicep.LanguageServer.Features.Custom.Parameters;
using FluentAssertions;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Microsoft.WindowsAzure.ResourceStack.Common.Json;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
using Bicep.IO.FileSystem;
using Bicep.LangServer.IntegrationTests.Helpers;
using Bicep.LanguageServer;
using Bicep.LanguageServer.Features.Custom.ModuleRestore;
using Bicep.LanguageServer.Options;
using Bicep.LanguageServer.Registry;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Moq;
Expand Down
1 change: 0 additions & 1 deletion src/Bicep.LangServer.IntegrationTests/HoverTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
using Bicep.LangServer.IntegrationTests.Assertions;
using Bicep.LangServer.IntegrationTests.Extensions;
using Bicep.LangServer.IntegrationTests.Helpers;
using Bicep.LanguageServer.CompilationManager;
using FluentAssertions;
using FluentAssertions.Execution;
using Microsoft.VisualStudio.TestTools.UnitTesting;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
using Bicep.Core.UnitTests.Baselines;
using Bicep.Core.UnitTests.Utils;
using Bicep.LangServer.IntegrationTests.Assertions;
using Bicep.LanguageServer.Handlers;
using Bicep.LanguageServer.Features.Custom.ImportKubernetesManifest;
using FluentAssertions;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Newtonsoft.Json.Linq;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@
using Bicep.Core.UnitTests.Utils;
using Bicep.LangServer.IntegrationTests.Assertions;
using Bicep.LangServer.IntegrationTests.Helpers;
using Bicep.LanguageServer.Handlers;
using Bicep.LanguageServer.Providers;
using Bicep.LanguageServer.Features.Custom.InsertResource;
using Bicep.LanguageServer.Utils;
using FluentAssertions;
using Microsoft.VisualStudio.TestTools.UnitTesting;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
using Bicep.Core.UnitTests.Utils;
using Bicep.LangServer.IntegrationTests.Assertions;
using Bicep.LangServer.IntegrationTests.Helpers;
using Bicep.LanguageServer.Registry;
using Bicep.LanguageServer.Features.Custom.ModuleRestore;
using FluentAssertions;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.VisualStudio.TestTools.UnitTesting;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
using Bicep.Core.Utils;
using Bicep.IO.Abstraction;
using Bicep.IO.InMemory;
using Bicep.LanguageServer.CompilationManager;
using Bicep.LanguageServer.Registry;
using Bicep.LanguageServer.Compilation;
using Bicep.LanguageServer.Features.Custom.ModuleRestore;
using FluentAssertions;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Moq;
Expand Down
2 changes: 1 addition & 1 deletion src/Bicep.LangServer.IntegrationTests/TelemetryTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
using Bicep.Core.UnitTests.Utils;
using Bicep.LangServer.IntegrationTests.Helpers;
using Bicep.LanguageServer.Extensions;
using Bicep.LanguageServer.Telemetry;
using Bicep.LanguageServer.Features.Custom.Telemetry;
using FluentAssertions;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Newtonsoft.Json.Linq;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
using Bicep.Core.UnitTests.Assertions;
using Bicep.Core.UnitTests.Features;
using Bicep.Core.UnitTests.Utils;
using Bicep.LanguageServer.Refactor;
using Bicep.LanguageServer.Features.Language.CodeAction;
using FluentAssertions;
using FluentAssertions.Execution;
using Microsoft.VisualStudio.TestTools.UnitTesting;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,8 @@
using Bicep.Core.UnitTests.Features;
using Bicep.Core.UnitTests.Utils;
using Bicep.LanguageServer;
using Bicep.LanguageServer.CompilationManager;
using Bicep.LanguageServer.Providers;
using Bicep.LanguageServer.Registry;
using Bicep.LanguageServer.Compilation;
using Bicep.LanguageServer.Features.Custom.ModuleRestore;
using Microsoft.Extensions.DependencyInjection;
using Moq;
using OmniSharp.Extensions.LanguageServer.Protocol;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
using Bicep.IO.FileSystem;
using Bicep.IO.InMemory;
using Bicep.LanguageServer;
using Bicep.LanguageServer.Compilation;
using Bicep.LanguageServer.Extensions;
using Bicep.LanguageServer.Providers;
using Bicep.LanguageServer.Telemetry;
using Bicep.LanguageServer.Features.Custom.Telemetry;
using FluentAssertions;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Moq;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
using Bicep.Core.SourceGraph;
using Bicep.Core.UnitTests;
using Bicep.Core.UnitTests.Utils;
using Bicep.LanguageServer.Providers;
using Bicep.LanguageServer.Compilation;
using FluentAssertions;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.VisualStudio.TestTools.UnitTesting;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,10 @@
using Bicep.Core.UnitTests.Mock;
using Bicep.Core.UnitTests.Utils;
using Bicep.LangServer.UnitTests.Completions;
using Bicep.LanguageServer.Completions;
using Bicep.LanguageServer.Providers;
using Bicep.LanguageServer.Features.Custom.Telemetry;
using Bicep.LanguageServer.Features.Language.Completion;
using Bicep.LanguageServer.Features.Language.Completion.Snippets;
using Bicep.LanguageServer.Settings;
using Bicep.LanguageServer.Snippets;
using Bicep.LanguageServer.Telemetry;
using FluentAssertions;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.VisualStudio.TestTools.UnitTesting;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
using Bicep.IO.Abstraction;
using Bicep.IO.InMemory;
using Bicep.LanguageServer.Extensions;
using Bicep.LanguageServer.Handlers;
using Bicep.LanguageServer.Telemetry;
using Bicep.LanguageServer.Features.Custom.Telemetry;
using Bicep.LanguageServer.Features.Language.DocumentLink;
using Bicep.Testing;
using Bicep.Testing.Dummies;
using FluentAssertions;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

using Bicep.Core.UnitTests;
using Bicep.Core.UnitTests.Utils;
using Bicep.LanguageServer.Completions;
using Bicep.LanguageServer.Features.Language.Completion;
using FluentAssertions;
using Microsoft.VisualStudio.TestTools.UnitTesting;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

using Bicep.LanguageServer.Completions;
using Bicep.LanguageServer.Features.Language.Completion;
using FluentAssertions;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using OmniSharp.Extensions.LanguageServer.Protocol.Models;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,9 @@
using Bicep.Core.UnitTests.Utils;
using Bicep.IO.FileSystem;
using Bicep.LanguageServer;
using Bicep.LanguageServer.Completions;
using Bicep.LanguageServer.Providers;
using Bicep.LanguageServer.Features.Custom.Telemetry;
using Bicep.LanguageServer.Features.Language.Completion;
using Bicep.LanguageServer.Settings;
using Bicep.LanguageServer.Telemetry;
using FluentAssertions;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Moq;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
using System.Text;
using System.Threading.Tasks;
using Bicep.Core.Resources;
using Bicep.LanguageServer.Completions;
using Bicep.LanguageServer.Snippets;
using Bicep.LanguageServer.Features.Language.Completion;
using Bicep.LanguageServer.Features.Language.Completion.Snippets;
using FluentAssertions;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using OmniSharp.Extensions.LanguageServer.Protocol.Models;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
using Bicep.Core.UnitTests.Utils;
using Bicep.IO.FileSystem;
using Bicep.LanguageServer;
using Bicep.LanguageServer.Configuration;
using Bicep.LanguageServer.BicepConfig;
using Bicep.LanguageServer.Compilation;
using FluentAssertions;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Moq;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
using Bicep.Core.Configuration;
using Bicep.Core.UnitTests.Utils;
using Bicep.IO.FileSystem;
using Bicep.LanguageServer.Configuration;
using FluentAssertions;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using OmniSharp.Extensions.LanguageServer.Protocol;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

using Bicep.LanguageServer.Configuration;
using Bicep.LanguageServer.Utils;
using FluentAssertions;
using Microsoft.VisualStudio.TestTools.UnitTesting;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
using Bicep.Core.Json;
using Bicep.Core.UnitTests.Mock;
using Bicep.LanguageServer;
using Bicep.LanguageServer.Deploy;
using Bicep.LanguageServer.Features.Custom.Deployments.Services;
using FluentAssertions;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Moq;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
using System.Diagnostics.CodeAnalysis;
using Bicep.Core.UnitTests.Assertions;
using Bicep.Core.UnitTests.Utils;
using Bicep.LanguageServer.Deploy;
using Bicep.LanguageServer.Handlers;
using Bicep.LanguageServer.Features.Custom.Deployments;
using Bicep.LanguageServer.Features.Custom.Deployments.Services;
using FluentAssertions;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Newtonsoft.Json.Linq;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
using Bicep.Core.UnitTests.Mock;
using Bicep.Core.UnitTests.Utils;
using Bicep.LanguageServer;
using Bicep.LanguageServer.CompilationManager;
using Bicep.LanguageServer.Handlers;
using Bicep.LanguageServer.Compilation;
using Bicep.LanguageServer.Features.Custom.Build;
using FluentAssertions;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.VisualStudio.TestTools.UnitTesting;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@
using Bicep.Core.UnitTests.Utils;
using Bicep.LangServer.IntegrationTests.Helpers;
using Bicep.LanguageServer;
using Bicep.LanguageServer.Handlers;
using Bicep.LanguageServer.ClientCapabilities;
using Bicep.LanguageServer.Compilation;
using Bicep.LanguageServer.Features.Language.CodeAction;
using Bicep.LanguageServer.Options;
using Bicep.LanguageServer.Providers;
using Bicep.LanguageServer.Utils;
using FluentAssertions;
using Grpc.Net.Client.Balancer;
Expand Down
Loading
Loading