Click or drag to resize
WorkspaceDocument Class
A virtual document representing a TextDocument in VS Code.
Inheritance Hierarchy
SystemObject
  VSCode.EditorWorkspaceDocument

Namespace: VSCode.Editor
Assembly: VSCode (in VSCode.dll) Version: 1.0.0
Syntax
C#
public class WorkspaceDocument

The WorkspaceDocument type exposes the following members.

Constructors
  NameDescription
Public methodWorkspaceDocument
Creates a new WorkspaceDocument instance using the provided language, text, uri, and version.
Top
Properties
  NameDescription
Public propertyLanguageId
The VS Code language ID assigned to the document.
Public propertyState
A state container that can be used to store objects within the context of the document.
Public propertyText
The text of the document for the current Version.
Public propertyUri
The VS Code URI for the document.
Public propertyVersion
The current version of the document. This may differ from the version present in VS Code if the last change notification has not been sent or processed.
Top
Extension Methods
  NameDescription
Public Extension MethodToJObject
Converts this instance to a JObject.
(Defined by ObjectExtensions.)
Top
See Also