We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d9898cc commit 6255d54Copy full SHA for 6255d54
src/Compiler/Interactive/fsi.fs
@@ -1342,6 +1342,20 @@ let scriptingDirectory =
1342
1343
createDirectory (Path.Combine(Path.GetTempPath(), $"{DateTime.Now:s}-{Guid.NewGuid():n}".Replace(':', '-')))
1344
1345
+let deleteScripts () =
1346
+ try
1347
+#if !DEBUG
1348
+ if scriptingDirectory.IsValueCreated then
1349
+ if Directory.Exists(scriptingDirectory.Value) then
1350
+ Directory.Delete(scriptingDirectory.Value, true)
1351
+#else
1352
+ ()
1353
+#endif
1354
+ with _ ->
1355
1356
+
1357
+do AppDomain.CurrentDomain.ProcessExit |> Event.add (fun _ -> deleteScripts ())
1358
1359
1360
1361
let dynamicCcuName = "FSI-ASSEMBLY"
0 commit comments