From d37c62e28eabaa710f7fc2663b9ff7f9daac450e Mon Sep 17 00:00:00 2001 From: nojaf Date: Wed, 28 Jun 2023 11:40:24 +0200 Subject: [PATCH] Update namespaces --- src/server/FantomasOnlineMain/FormatCode.fs | 2 +- src/server/FantomasOnlineV6/FormatCode.fs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/server/FantomasOnlineMain/FormatCode.fs b/src/server/FantomasOnlineMain/FormatCode.fs index 8196c216..feb908af 100644 --- a/src/server/FantomasOnlineMain/FormatCode.fs +++ b/src/server/FantomasOnlineMain/FormatCode.fs @@ -1,6 +1,6 @@ module FantomasOnlineMain.FormatCode -open FSharp.Compiler.Text +open Fantomas.FCS.Text open Fantomas.Core open FantomasOnline.Shared open FantomasOnline.Server.Shared.Http diff --git a/src/server/FantomasOnlineV6/FormatCode.fs b/src/server/FantomasOnlineV6/FormatCode.fs index dd0e5b02..7eb048ed 100644 --- a/src/server/FantomasOnlineV6/FormatCode.fs +++ b/src/server/FantomasOnlineV6/FormatCode.fs @@ -1,6 +1,7 @@ module FantomasOnlineV6.FormatCode open FantomasTools.Client +open Fantomas.FCS open Fantomas.FCS.Parse open Fantomas.Core open FantomasOnline.Shared @@ -41,8 +42,7 @@ let private validate (fileName: string) code = async { let isSignature = fileName.EndsWith(".fsi") - let _tree, diagnostics = - parseFile isSignature (FSharp.Compiler.Text.SourceText.ofString code) [] + let _tree, diagnostics = parseFile isSignature (Text.SourceText.ofString code) [] return diagnostics