Skip to content

Commit 1062bbe

Browse files
committed
Add flag for enabling transparent compiler support
1 parent ddb6b80 commit 1062bbe

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

release/package.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -545,6 +545,11 @@
545545
"description": "When selecting an external symbols in autocomplete, insert the full name to the editor rather than open its module/namespace. Also allow filtering suggestions by typing its full name. \n\n Requires \u0060FSharp.externalAutocomplete\u0060 enabled.",
546546
"type": "boolean"
547547
},
548+
"FSharp.fcs.transparentCompiler.enabled": {
549+
"default": false,
550+
"description": "EXPERIMENTAL: Enables the FSharp Cpmpiler Service's [transparent compiler](https://github.com/dotnet/fsharp/pull/15179) feature. Requires restart.",
551+
"type": "boolean"
552+
},
548553
"FSharp.fsac.attachDebugger": {
549554
"default": false,
550555
"description": "Appends the \u0027--attachdebugger\u0027 argument to fsac, this will allow you to attach a debugger.",
@@ -1791,4 +1796,4 @@
17911796
"url": "https://github.com/ionide/ionide-vscode-fsharp.git"
17921797
},
17931798
"version": "7.18.2"
1794-
}
1799+
}

src/Core/LanguageService.fs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -675,6 +675,9 @@ Consider:
675675
let enableProjectGraph =
676676
"FSharp.enableMSBuildProjectGraph" |> Configuration.get false
677677

678+
let useTransparentCompiler =
679+
"FSharp.fcs.transparentCompiler.enabled" |> Configuration.get false
680+
678681
let tryBool x =
679682
// Boolean.TryParse generates: TypeError: e.match is not a function if we don't call toString first
680683
match Boolean.TryParse(x.ToString()) with
@@ -915,6 +918,8 @@ Consider:
915918
if fsacSilencedLogs <> null && fsacSilencedLogs.Length > 0 then
916919
yield "--filter"
917920
yield! fsacSilencedLogs
921+
if useTransparentCompiler then
922+
yield "--use-fcs-transparent-compiler"
918923
match c.storageUri with
919924
| Some uri ->
920925
let storageDir = uri.fsPath

0 commit comments

Comments
 (0)