Header menu logo F# Compiler Guide

FSharpWorkspaceFiles Type

Interface for managing files in an F# workspace.

Instance members

Instance member Description

this.Close

Full Usage: this.Close

Parameters:

Indicates that a file has been closed. Any changes that were not saved to disk are undone and any further reading of the file's contents will be from the filesystem.

file : Uri

this.Edit

Full Usage: this.Edit

Parameters:
    file : Uri
    content : string

Indicates that a file has been changed and now has the given content. If it wasn't previously open it is considered open now.

file : Uri
content : string

this.Open

Full Usage: this.Open

Returns: Uri * string -> unit

Indicates that a file has been opened and has the given content. Any updates to the file should be done through `Files.Edit`.

Returns: Uri * string -> unit

Type something to start searching.