Skip to content

Commit

Permalink
Run code formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
Bicep Automation committed Feb 5, 2024
1 parent 068b243 commit a8de84f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/Bicep.Core.IntegrationTests/CompileTimeImportTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1204,7 +1204,7 @@ public void Importing_the_same_symbol_from_json_template_under_two_separate_name
[TestMethod]
public void Exporting_a_variable_that_references_a_parameter_should_raise_diagnostic()
{
var result = CompilationHelper.Compile( """
var result = CompilationHelper.Compile("""
param foo string
var bar = 'x${foo}x'
var baz = bar
Expand All @@ -1222,7 +1222,7 @@ param foo string
[TestMethod]
public void Exporting_a_variable_that_references_a_resource_should_raise_diagnostic()
{
var result = CompilationHelper.Compile( """
var result = CompilationHelper.Compile("""
resource foo 'Microsoft.Network/virtualNetworks@2020-06-01' = {
location: 'westus'
name: 'myVNet'
Expand Down
1 change: 0 additions & 1 deletion src/Bicep.Core/Semantics/Decorator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
using Bicep.Core.Syntax;
using Bicep.Core.TypeSystem;
using Bicep.Core.TypeSystem.Types;
using Bicep.Core.Workspaces;

namespace Bicep.Core.Semantics
{
Expand Down
3 changes: 1 addition & 2 deletions src/Bicep.Core/SourceCode/SourceArchive.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
using System.Diagnostics;
using System.Formats.Tar;
using System.IO.Compression;
using System.Linq;
using System.Text;
using System.Text.Json;
using System.Text.Json.Serialization;
Expand Down Expand Up @@ -164,7 +163,7 @@ public static Stream PackSourcesIntoStream(Uri entrypointFileUri, string? cacheR
// Filter out any links where the source or target is not in our list of files to package
var sourceFileUris = sourceFiles.Select(sf => sf.FileUri).ToArray();
documentLinks = documentLinks?
.Where(kvp => sourceFileUris.Contains( kvp.Key))
.Where(kvp => sourceFileUris.Contains(kvp.Key))
.Select(uriAndLink => (uriAndLink.Key, uriAndLink.Value.Where(link => sourceFileUris.Contains(link.Target)).ToArray()))
.ToDictionary();

Expand Down
4 changes: 2 additions & 2 deletions src/Bicep.LangServer/Telemetry/BicepTelemetryEvent.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

using OmniSharp.Extensions.JsonRpc.Server;
using OmniSharp.Extensions.LanguageServer.Protocol.Models;

namespace Bicep.LanguageServer.Telemetry
Expand Down Expand Up @@ -274,7 +273,8 @@ public static BicepTelemetryEvent ModuleRegistryPathCompletion(string moduleRegi
}
);

public enum ExternalSourceRequestType {
public enum ExternalSourceRequestType
{
CompiledJson, // main.json
BicepEntrypoint,
Local, // A file included with the compilation group
Expand Down

0 comments on commit a8de84f

Please sign in to comment.