Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
Yatao Li committed Jul 13, 2019
1 parent f12d41b commit 3473d9b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
6 changes: 5 additions & 1 deletion client/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
'use strict';

import * as path from 'path'
import * as fs from 'fs'
import { FsiProcess } from './process'
import { workspace, ExtensionContext, commands, StatusBarItem, TerminalResult } from 'coc.nvim';
import { LanguageClient, LanguageClientOptions, ServerOptions, TransportKind } from 'coc.nvim';
Expand Down Expand Up @@ -115,7 +116,10 @@ export async function activate(context: ExtensionContext) {

// The server is packaged as a standalone command
let serverMain = context.asAbsolutePath(binName());


// Make sure the server is executable
fs.chmodSync(serverMain, "+x")

let serverOptions: ServerOptions = {
command: serverMain,
args: [],
Expand Down
8 changes: 4 additions & 4 deletions src/ProjectCracker/ProjectCracker.fs
Original file line number Diff line number Diff line change
Expand Up @@ -226,10 +226,10 @@ let private project(fsproj: FileInfo): ProjectInstance =
let sdk = latestSdk.Value.Path
let globalProperties = Map.ofList [
// https://daveaglick.com/posts/running-a-design-time-build-with-msbuild-apis
( "SolutionDir", fsprojAbsDirectory )
( "MSBuildExtensionsPath", sdk )
( "MSBuildSDKsPath", Path.Combine(sdk, "Sdks") )
( "RoslynTargetsPath", Path.Combine(sdk, "Roslyn"))
"SolutionDir", fsprojAbsDirectory
"MSBuildExtensionsPath", sdk
"MSBuildSDKsPath", Path.Combine(sdk, "Sdks")
"RoslynTargetsPath", Path.Combine(sdk, "Roslyn")
]

Environment.SetEnvironmentVariable(
Expand Down

0 comments on commit 3473d9b

Please sign in to comment.