openTextDocument property
({Future Function(Uri uri) $1, Future Function(String fileName) $2, Future Function([IInline65? options]) $3})
get
openTextDocument
Overload accessor: $1, $2, $3
Implementation
({
/// Opens a document. Will return early if this document is already open. Otherwise
/// the document is loaded and the {@link workspace.onDidOpenTextDocumentdidOpen}-event fires.
///
/// The document is denoted by an {@link Uri}. Depending on the {@link Uri.schemescheme} the
/// following rules apply:
/// * `file`-scheme: Open a file on disk (`openTextDocument(Uri.file(path))`). Will be rejected if the file
/// does not exist or cannot be loaded.
/// * `untitled`-scheme: Open a blank untitled file with associated path (`openTextDocument(Uri.file(path).with({ scheme: 'untitled' }))`).
/// The language will be derived from the file name.
/// * For all other schemes contributed {@link TextDocumentContentProvidertext document content providers} and
/// {@link FileSystemProviderfile system providers} are consulted.
///
/// *Note* that the lifecycle of the returned document is owned by the editor and not by the extension. That means an
/// {@linkcode workspace.onDidCloseTextDocumentonDidClose}-event can occur at any time after opening it.
/// A short-hand for `openTextDocument(Uri.file(fileName))`.
/// Opens an untitled text document. The editor will prompt the user for a file
/// path when the document is to be saved. The `options` parameter allows to
/// specify the *language* and/or the *content* of the document.
_i2.Future<_i2.dynamic> Function(_i3.Uri uri) $1,
/// Opens a document. Will return early if this document is already open. Otherwise
/// the document is loaded and the {@link workspace.onDidOpenTextDocumentdidOpen}-event fires.
///
/// The document is denoted by an {@link Uri}. Depending on the {@link Uri.schemescheme} the
/// following rules apply:
/// * `file`-scheme: Open a file on disk (`openTextDocument(Uri.file(path))`). Will be rejected if the file
/// does not exist or cannot be loaded.
/// * `untitled`-scheme: Open a blank untitled file with associated path (`openTextDocument(Uri.file(path).with({ scheme: 'untitled' }))`).
/// The language will be derived from the file name.
/// * For all other schemes contributed {@link TextDocumentContentProvidertext document content providers} and
/// {@link FileSystemProviderfile system providers} are consulted.
///
/// *Note* that the lifecycle of the returned document is owned by the editor and not by the extension. That means an
/// {@linkcode workspace.onDidCloseTextDocumentonDidClose}-event can occur at any time after opening it.
/// A short-hand for `openTextDocument(Uri.file(fileName))`.
/// Opens an untitled text document. The editor will prompt the user for a file
/// path when the document is to be saved. The `options` parameter allows to
/// specify the *language* and/or the *content* of the document.
_i2.Future<_i2.dynamic> Function(_i2.String fileName) $2,
/// Opens a document. Will return early if this document is already open. Otherwise
/// the document is loaded and the {@link workspace.onDidOpenTextDocumentdidOpen}-event fires.
///
/// The document is denoted by an {@link Uri}. Depending on the {@link Uri.schemescheme} the
/// following rules apply:
/// * `file`-scheme: Open a file on disk (`openTextDocument(Uri.file(path))`). Will be rejected if the file
/// does not exist or cannot be loaded.
/// * `untitled`-scheme: Open a blank untitled file with associated path (`openTextDocument(Uri.file(path).with({ scheme: 'untitled' }))`).
/// The language will be derived from the file name.
/// * For all other schemes contributed {@link TextDocumentContentProvidertext document content providers} and
/// {@link FileSystemProviderfile system providers} are consulted.
///
/// *Note* that the lifecycle of the returned document is owned by the editor and not by the extension. That means an
/// {@linkcode workspace.onDidCloseTextDocumentonDidClose}-event can occur at any time after opening it.
/// A short-hand for `openTextDocument(Uri.file(fileName))`.
/// Opens an untitled text document. The editor will prompt the user for a file
/// path when the document is to be saved. The `options` parameter allows to
/// specify the *language* and/or the *content* of the document.
_i2.Future<_i2.dynamic> Function([_i6.IInline65? options]) $3,
}) get openTextDocument => (
$1: _openTextDocument$1,
$2: _openTextDocument$2,
$3: _openTextDocument$3,
);