Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit49b20b0

Browse files
committed
Fixesdotnet#235 --- When running FSI from VSIX, it does not respect UseAnyCpu setting
The developer path codeath ignored the UseAnyCpu setting, always selected fsi.exe
1 parent35e6a00 commit49b20b0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

‎vsintegration/src/vs/FsPkgs/FSharp.VS.FSI/sessions.fs‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,17 +152,18 @@ let catchAll (ie: IEvent<_,_>) : IEvent<_> =
152152
ie.Add(fun x->try w(x)with err-> ignore(System.Windows.Forms.MessageBox.Show(err.ToString()));());
153153
e
154154

155+
letfsiExeName()=if SessionsProperties.useAnyCpuVersionthen"fsianycpu.exe"else"fsi.exe"
155156
letdetermineFsiRelativePath()=
156157
letthisAssembly:System.Reflection.Assembly= typeof<Microsoft.FSharp.Compiler.Server.Shared.FSharpInteractiveServer>.Assembly
157158
letthisAssemblyDirectory= thisAssembly.Location|> Path.GetDirectoryName
158159
// Use the quick-development path if available
159-
Path.Combine(thisAssemblyDirectory,"fsi.exe")
160+
Path.Combine(thisAssemblyDirectory,fsiExeName())
160161

161162
letdetermineFsiPath()=
162163
// Use the quick-development path if available
163164
letfsiRelativePath= determineFsiRelativePath()
164165
letfsbin=match Internal.Utilities.FSharpEnvironment.BinFolderOfDefaultFSharpCompilerwith| Some(s)-> s| None->""
165-
letfsiRegistryPath= Path.Combine(fsbin,if SessionsProperties.useAnyCpuVersionthen"fsianycpu.exe"else"fsi.exe")
166+
letfsiRegistryPath= Path.Combine(fsbin,fsiExeName())
166167
// Choose relative path, if it exists (for developers), otherwise, the installed path.
167168
if File.Exists(fsiRelativePath)then
168169
fsiRelativePath

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp