forked from fsprojects/zarchive-fsharpbinding
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/slluis/fsharpbinding
- Loading branch information
Showing
19 changed files
with
168 additions
and
130 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
namespace FSharp.MonoDevelop | ||
|
||
open System | ||
open System.IO | ||
open MonoDevelop.Core | ||
open MonoDevelop.Ide.Gui.Components | ||
open MonoDevelop.Projects | ||
|
||
type FSharpProjectFileNodeExtension() = | ||
inherit NodeBuilderExtension() | ||
|
||
override x.CanBuildNode(dataType:Type) = | ||
// Extend any file belonging to a F# project | ||
typedefof<ProjectFile>.IsAssignableFrom (dataType) | ||
|
||
override x.CompareObjects(thisNode:ITreeNavigator, otherNode:ITreeNavigator) : int = | ||
if otherNode.DataItem :? ProjectFile then | ||
let file1 = thisNode.DataItem :?> ProjectFile | ||
let file2 = otherNode.DataItem :?> ProjectFile | ||
if (file1.Project <> null) && (file1.Project = file2.Project) && (file1.Project :? DotNetProject) && ((file1.Project :?> DotNetProject).LanguageName = "F#") then | ||
file1.Project.Files.IndexOf(file1).CompareTo(file2.Project.Files.IndexOf(file2)) | ||
else | ||
NodeBuilder.DefaultSort | ||
else | ||
NodeBuilder.DefaultSort | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
namespace FSharp.MonoDevelop | ||
|
||
open System | ||
open System.IO | ||
open MonoDevelop.Core | ||
open MonoDevelop.Ide | ||
open MonoDevelop.Projects | ||
open Mono.Addins | ||
|
||
type FSharpProjectServiceExtension() = | ||
inherit ProjectServiceExtension() | ||
|
||
override x.SupportsItem(item:IBuildTarget) = | ||
// Extend any F# project | ||
(item :? DotNetProject) && (item :?> DotNetProject).LanguageName = "F#" | ||
|
||
override x.PopulateSupportFileList(project:Project, list:FileCopySet, configuration:ConfigurationSelector) = | ||
base.PopulateSupportFileList (project, list, configuration) | ||
let outDir = (project.GetConfiguration (configuration) :?> ProjectConfiguration).OutputDirectory | ||
let added = list.Add(new FilePath (AddinManager.CurrentAddin.GetFilePath("FSharp.Core.dll")), true) | ||
() | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.