Skip to content
This repository was archived by the owner on Oct 31, 2021. It is now read-only.

Commit 110e73d

Browse files
add FSharp.Editing.Server project
1 parent baff136 commit 110e73d

File tree

7 files changed

+206
-11
lines changed

7 files changed

+206
-11
lines changed

FSharpVSPowerTools.sln

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ Project("{F2A71F9B-5D33-465A-A702-920D77279786}") = "FSharp.Editing.VisualStudio
6262
EndProject
6363
Project("{F2A71F9B-5D33-465A-A702-920D77279786}") = "FSharp.Editing.Messages", "src\FSharp.Editing.Messages\FSharp.Editing.Messages.fsproj", "{90B29F03-2CD0-4265-B06D-851DC045D62B}"
6464
EndProject
65+
Project("{F2A71F9B-5D33-465A-A702-920D77279786}") = "FSharp.Editing.Server", "src\FSharp.Editing.Server\FSharp.Editing.Server.fsproj", "{E086BE6B-6187-4288-9EE4-DC98D8A16742}"
66+
EndProject
6567
Global
6668
GlobalSection(SolutionConfigurationPlatforms) = preSolution
6769
Debug|Any CPU = Debug|Any CPU
@@ -100,6 +102,10 @@ Global
100102
{90B29F03-2CD0-4265-B06D-851DC045D62B}.Debug|Any CPU.Build.0 = Debug|Any CPU
101103
{90B29F03-2CD0-4265-B06D-851DC045D62B}.Release|Any CPU.ActiveCfg = Release|Any CPU
102104
{90B29F03-2CD0-4265-B06D-851DC045D62B}.Release|Any CPU.Build.0 = Release|Any CPU
105+
{E086BE6B-6187-4288-9EE4-DC98D8A16742}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
106+
{E086BE6B-6187-4288-9EE4-DC98D8A16742}.Debug|Any CPU.Build.0 = Debug|Any CPU
107+
{E086BE6B-6187-4288-9EE4-DC98D8A16742}.Release|Any CPU.ActiveCfg = Release|Any CPU
108+
{E086BE6B-6187-4288-9EE4-DC98D8A16742}.Release|Any CPU.Build.0 = Release|Any CPU
103109
EndGlobalSection
104110
GlobalSection(SolutionProperties) = preSolution
105111
HideSolutionNode = FALSE

src/FSharp.Editing.Messages/FSharp.Editing.Messages.fsproj

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
<Tailcalls>false</Tailcalls>
2222
<OutputPath>bin\Debug\</OutputPath>
2323
<DefineConstants>DEBUG;TRACE</DefineConstants>
24-
<WarningLevel>3</WarningLevel>
24+
<WarningLevel>5</WarningLevel>
2525
<DocumentationFile>bin\Debug\FSharp.Editing.Messages.XML</DocumentationFile>
2626
</PropertyGroup>
2727
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
@@ -30,8 +30,11 @@
3030
<Tailcalls>true</Tailcalls>
3131
<OutputPath>bin\Release\</OutputPath>
3232
<DefineConstants>TRACE</DefineConstants>
33-
<WarningLevel>3</WarningLevel>
33+
<WarningLevel>5</WarningLevel>
3434
<DocumentationFile>bin\Release\FSharp.Editing.Messages.XML</DocumentationFile>
35+
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
36+
<WarningsAsErrors />
37+
<OtherFlags>--warnon:1182</OtherFlags>
3538
</PropertyGroup>
3639
<PropertyGroup>
3740
<MinimumVisualStudioVersion Condition="'$(MinimumVisualStudioVersion)' == ''">11</MinimumVisualStudioVersion>
@@ -60,6 +63,13 @@
6063
<Reference Include="System.Core" />
6164
<Reference Include="System.Numerics" />
6265
</ItemGroup>
66+
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
67+
Other similar extension points exist, see Microsoft.Common.targets.
68+
<Target Name="BeforeBuild">
69+
</Target>
70+
<Target Name="AfterBuild">
71+
</Target>
72+
-->
6373
<Choose>
6474
<When Condition="$(TargetFrameworkIdentifier) == '.NETFramework' And ($(TargetFrameworkVersion) == 'v2.0' Or $(TargetFrameworkVersion) == 'v3.0' Or $(TargetFrameworkVersion) == 'v3.5')">
6575
<ItemGroup>
@@ -125,11 +135,4 @@
125135
</ItemGroup>
126136
</When>
127137
</Choose>
128-
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
129-
Other similar extension points exist, see Microsoft.Common.targets.
130-
<Target Name="BeforeBuild">
131-
</Target>
132-
<Target Name="AfterBuild">
133-
</Target>
134-
-->
135138
</Project>

src/FSharp.Editing.Messages/Messages.fs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
namespace FSharp.Editing.Messages
22

3-
type [<Measure>] requestId
4-
type RequestId = int64<requestId>
3+
type RequestId = Guid
54
type FilePath = string
65
type DocumentContent = string
76

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
namespace FSharp.Editing.Server.AssemblyInfo
2+
3+
open System.Reflection
4+
open System.Runtime.CompilerServices
5+
open System.Runtime.InteropServices
6+
7+
// General Information about an assembly is controlled through the following
8+
// set of attributes. Change these attribute values to modify the information
9+
// associated with an assembly.
10+
[<assembly: AssemblyTitle("FSharp.Editing.Server")>]
11+
[<assembly: AssemblyDescription("")>]
12+
[<assembly: AssemblyConfiguration("")>]
13+
[<assembly: AssemblyCompany("")>]
14+
[<assembly: AssemblyProduct("FSharp.Editing.Server")>]
15+
[<assembly: AssemblyCopyright("Copyright © 2016")>]
16+
[<assembly: AssemblyTrademark("")>]
17+
[<assembly: AssemblyCulture("")>]
18+
19+
// Setting ComVisible to false makes the types in this assembly not visible
20+
// to COM components. If you need to access a type in this assembly from
21+
// COM, set the ComVisible attribute to true on that type.
22+
[<assembly: ComVisible(false)>]
23+
24+
// The following GUID is for the ID of the typelib if this project is exposed to COM
25+
[<assembly: Guid("e086be6b-6187-4288-9ee4-dc98d8a16742")>]
26+
27+
// Version information for an assembly consists of the following four values:
28+
//
29+
// Major Version
30+
// Minor Version
31+
// Build Number
32+
// Revision
33+
//
34+
// You can specify all the values or you can default the Build and Revision Numbers
35+
// by using the '*' as shown below:
36+
// [<assembly: AssemblyVersion("1.0.*")>]
37+
[<assembly: AssemblyVersion("1.0.0.0")>]
38+
[<assembly: AssemblyFileVersion("1.0.0.0")>]
39+
40+
do
41+
()
Lines changed: 141 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,141 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
4+
<PropertyGroup>
5+
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
6+
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
7+
<SchemaVersion>2.0</SchemaVersion>
8+
<ProjectGuid>e086be6b-6187-4288-9ee4-dc98d8a16742</ProjectGuid>
9+
<OutputType>Library</OutputType>
10+
<RootNamespace>FSharp.Editing.Server</RootNamespace>
11+
<AssemblyName>FSharp.Editing.Server</AssemblyName>
12+
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
13+
<TargetFSharpCoreVersion>4.4.0.0</TargetFSharpCoreVersion>
14+
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
15+
<Name>FSharp.Editing.Server</Name>
16+
</PropertyGroup>
17+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
18+
<DebugSymbols>true</DebugSymbols>
19+
<DebugType>full</DebugType>
20+
<Optimize>false</Optimize>
21+
<Tailcalls>false</Tailcalls>
22+
<OutputPath>bin\Debug\</OutputPath>
23+
<DefineConstants>DEBUG;TRACE</DefineConstants>
24+
<WarningLevel>5</WarningLevel>
25+
<DocumentationFile>
26+
</DocumentationFile>
27+
<OtherFlags>--warnon:1182</OtherFlags>
28+
</PropertyGroup>
29+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
30+
<DebugType>pdbonly</DebugType>
31+
<Optimize>true</Optimize>
32+
<Tailcalls>true</Tailcalls>
33+
<OutputPath>bin\Release\</OutputPath>
34+
<DefineConstants>TRACE</DefineConstants>
35+
<WarningLevel>5</WarningLevel>
36+
<DocumentationFile>
37+
</DocumentationFile>
38+
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
39+
<WarningsAsErrors />
40+
<OtherFlags>--warnon:1182</OtherFlags>
41+
</PropertyGroup>
42+
<PropertyGroup>
43+
<MinimumVisualStudioVersion Condition="'$(MinimumVisualStudioVersion)' == ''">11</MinimumVisualStudioVersion>
44+
</PropertyGroup>
45+
<Choose>
46+
<When Condition="'$(VisualStudioVersion)' == '11.0'">
47+
<PropertyGroup Condition="Exists('$(MSBuildExtensionsPath32)\..\Microsoft SDKs\F#\3.0\Framework\v4.0\Microsoft.FSharp.Targets')">
48+
<FSharpTargetsPath>$(MSBuildExtensionsPath32)\..\Microsoft SDKs\F#\3.0\Framework\v4.0\Microsoft.FSharp.Targets</FSharpTargetsPath>
49+
</PropertyGroup>
50+
</When>
51+
<Otherwise>
52+
<PropertyGroup Condition="Exists('$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\FSharp\Microsoft.FSharp.Targets')">
53+
<FSharpTargetsPath>$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\FSharp\Microsoft.FSharp.Targets</FSharpTargetsPath>
54+
</PropertyGroup>
55+
</Otherwise>
56+
</Choose>
57+
<Import Project="$(FSharpTargetsPath)" />
58+
<ItemGroup>
59+
<Compile Include="AssemblyInfo.fs" />
60+
<Compile Include="Library1.fs" />
61+
<None Include="paket.references" />
62+
</ItemGroup>
63+
<ItemGroup>
64+
<Reference Include="mscorlib" />
65+
<Reference Include="System" />
66+
<Reference Include="System.Core" />
67+
<Reference Include="System.Numerics" />
68+
</ItemGroup>
69+
<Choose>
70+
<When Condition="$(TargetFrameworkIdentifier) == '.NETFramework' And ($(TargetFrameworkVersion) == 'v2.0' Or $(TargetFrameworkVersion) == 'v3.0' Or $(TargetFrameworkVersion) == 'v3.5')">
71+
<ItemGroup>
72+
<Reference Include="FSharp.Core">
73+
<HintPath>..\..\packages\FSharp.Core\lib\net20\FSharp.Core.dll</HintPath>
74+
<Private>True</Private>
75+
<Paket>True</Paket>
76+
</Reference>
77+
</ItemGroup>
78+
</When>
79+
<When Condition="$(TargetFrameworkIdentifier) == '.NETFramework' And ($(TargetFrameworkVersion) == 'v4.0' Or $(TargetFrameworkVersion) == 'v4.5' Or $(TargetFrameworkVersion) == 'v4.5.1' Or $(TargetFrameworkVersion) == 'v4.5.2' Or $(TargetFrameworkVersion) == 'v4.5.3' Or $(TargetFrameworkVersion) == 'v4.6' Or $(TargetFrameworkVersion) == 'v4.6.1' Or $(TargetFrameworkVersion) == 'v4.6.2' Or $(TargetFrameworkVersion) == 'v4.6.3')">
80+
<ItemGroup>
81+
<Reference Include="FSharp.Core">
82+
<HintPath>..\..\packages\FSharp.Core\lib\net40\FSharp.Core.dll</HintPath>
83+
<Private>True</Private>
84+
<Paket>True</Paket>
85+
</Reference>
86+
</ItemGroup>
87+
</When>
88+
<When Condition="($(TargetFrameworkIdentifier) == 'MonoAndroid') Or ($(TargetFrameworkIdentifier) == 'MonoTouch') Or ($(TargetFrameworkIdentifier) == 'Xamarin.iOS')">
89+
<ItemGroup>
90+
<Reference Include="FSharp.Core">
91+
<HintPath>..\..\packages\FSharp.Core\lib\portable-net45+monoandroid10+monotouch10+xamarinios10\FSharp.Core.dll</HintPath>
92+
<Private>True</Private>
93+
<Paket>True</Paket>
94+
</Reference>
95+
</ItemGroup>
96+
</When>
97+
<When Condition="($(TargetFrameworkIdentifier) == '.NETCore') Or ($(TargetFrameworkIdentifier) == '.NETStandard' And ($(TargetFrameworkVersion) == 'v1.1' Or $(TargetFrameworkVersion) == 'v1.2' Or $(TargetFrameworkVersion) == 'v1.3' Or $(TargetFrameworkVersion) == 'v1.4' Or $(TargetFrameworkVersion) == 'v1.5' Or $(TargetFrameworkVersion) == 'v1.6')) Or ($(TargetFrameworkIdentifier) == '.NETCoreApp' And $(TargetFrameworkVersion) == 'v1.0') Or ($(TargetFrameworkIdentifier) == 'Xamarin.Mac') Or ($(TargetFrameworkProfile) == 'Profile7') Or ($(TargetFrameworkProfile) == 'Profile44')">
98+
<ItemGroup>
99+
<Reference Include="FSharp.Core">
100+
<HintPath>..\..\packages\FSharp.Core\lib\portable-net45+netcore45\FSharp.Core.dll</HintPath>
101+
<Private>True</Private>
102+
<Paket>True</Paket>
103+
</Reference>
104+
</ItemGroup>
105+
</When>
106+
<When Condition="($(TargetFrameworkIdentifier) == '.NETStandard' And $(TargetFrameworkVersion) == 'v1.0') Or ($(TargetFrameworkIdentifier) == 'WindowsPhone' And ($(TargetFrameworkVersion) == 'v8.0' Or $(TargetFrameworkVersion) == 'v8.1')) Or ($(TargetFrameworkProfile) == 'Profile31') Or ($(TargetFrameworkProfile) == 'Profile49') Or ($(TargetFrameworkProfile) == 'Profile78')">
107+
<ItemGroup>
108+
<Reference Include="FSharp.Core">
109+
<HintPath>..\..\packages\FSharp.Core\lib\portable-net45+netcore45+wp8\FSharp.Core.dll</HintPath>
110+
<Private>True</Private>
111+
<Paket>True</Paket>
112+
</Reference>
113+
</ItemGroup>
114+
</When>
115+
<When Condition="($(TargetFrameworkIdentifier) == 'WindowsPhoneApp') Or ($(TargetFrameworkProfile) == 'Profile32') Or ($(TargetFrameworkProfile) == 'Profile84') Or ($(TargetFrameworkProfile) == 'Profile111') Or ($(TargetFrameworkProfile) == 'Profile151') Or ($(TargetFrameworkProfile) == 'Profile157') Or ($(TargetFrameworkProfile) == 'Profile259')">
116+
<ItemGroup>
117+
<Reference Include="FSharp.Core">
118+
<HintPath>..\..\packages\FSharp.Core\lib\portable-net45+netcore45+wpa81+wp8\FSharp.Core.dll</HintPath>
119+
<Private>True</Private>
120+
<Paket>True</Paket>
121+
</Reference>
122+
</ItemGroup>
123+
</When>
124+
<When Condition="($(TargetFrameworkIdentifier) == 'Silverlight' And $(TargetFrameworkVersion) == 'v5.0') Or ($(TargetFrameworkProfile) == 'Profile24') Or ($(TargetFrameworkProfile) == 'Profile47')">
125+
<ItemGroup>
126+
<Reference Include="FSharp.Core">
127+
<HintPath>..\..\packages\FSharp.Core\lib\portable-net45+sl5+netcore45\FSharp.Core.dll</HintPath>
128+
<Private>True</Private>
129+
<Paket>True</Paket>
130+
</Reference>
131+
</ItemGroup>
132+
</When>
133+
</Choose>
134+
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
135+
Other similar extension points exist, see Microsoft.Common.targets.
136+
<Target Name="BeforeBuild">
137+
</Target>
138+
<Target Name="AfterBuild">
139+
</Target>
140+
-->
141+
</Project>
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
namespace FSharp.Editing.Server
2+
3+
type Class1() =
4+
member this.X = "F#"
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
FSharp.Core

0 commit comments

Comments
 (0)