Skip to content

Commit

Permalink
updated to latest
Browse files Browse the repository at this point in the history
  • Loading branch information
enricosada committed Aug 30, 2017
1 parent 4e50b73 commit 60479d2
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
3 changes: 2 additions & 1 deletion src/FsAutoComplete.Core/paket.references
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ FSharp.Compiler.Service.ProjectCracker
FSharp.Compiler.Service
FSharpLint.Core
Sln
Dotnet.ProjInfoNewtonsoft.Json
Dotnet.ProjInfo
Newtonsoft.Json
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,23 @@ Environment.CurrentDirectory <- __SOURCE_DIRECTORY__
let outputJson = "workspacepeek.json"
File.Delete outputJson

runProcess __SOURCE_DIRECTORY__ "dotnet" "--info" |> ignore
let doIt () =
let sdkDir = DotnetCli.sdk1Dir ()

match runProcessCaptureOut __SOURCE_DIRECTORY__ "dotnet" "restore sample1/c1" with
| NonExitCodeResult data ->
use _sdk1 = DotnetCli.useSdk sdkDir

runProcess __SOURCE_DIRECTORY__ "dotnet" "--info" |> ignore

match runProcessCaptureOut __SOURCE_DIRECTORY__ "dotnet" "restore sample1/c1" with
| NonExitCodeResult data ->
data |> processResultLog "failed 'dotnet restore sample1/c1'" |> writeNormalizedOutput outputJson
| _ ->
| _ ->
let p = new FsAutoCompleteWrapper()

p.workspacepeek (Path.Combine(__SOURCE_DIRECTORY__, "sample1")) 1

p.send "quit\n"
p.finalOutput ()
|> writeNormalizedOutput outputJson

doIt ()

0 comments on commit 60479d2

Please sign in to comment.