SourceControlResourceState class

An source control resource state represents the state of an underlying workspace resource within a certain {@link SourceControlResourceGroupsource control group}.

Available extensions
Annotations
  • @JS()
  • @staticInterop
  • @anonymous

Constructors

SourceControlResourceState({Uri? resourceUri, Command? command, SourceControlResourceDecorations? decorations, String? contextValue})
factory

Properties

command Command?

Available on SourceControlResourceState, provided by the SourceControlResourceState$Typings extension

The {@link Command} which should be run when the resource state is open in the Source Control viewlet.
no setter
contextValue String?

Available on SourceControlResourceState, provided by the SourceControlResourceState$Typings extension

Context value of the resource state. This can be used to contribute resource specific actions. For example, if a resource is given a context value as diffable. When contributing actions to scm/resourceState/context using menus extension point, you can specify context value for key scmResourceState in when expressions, like scmResourceState == diffable.
no setter
decorations SourceControlResourceDecorations?

Available on SourceControlResourceState, provided by the SourceControlResourceState$Typings extension

The {@link SourceControlResourceDecorationsdecorations} for this source control resource state.
no setter
hashCode int
The hash code for this object.
no setterinherited
resourceUri Uri

Available on SourceControlResourceState, provided by the SourceControlResourceState$Typings extension

The {@link Uri} of the underlying resource inside the workspace.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited