Struct umm::vscode::Presentation

source ·
pub struct Presentation {
    reveal: Option<String>,
    reveal_problems: Option<String>,
    focus: Option<bool>,
    echo: Option<bool>,
    show_reuse_message: Option<bool>,
    panel: Option<String>,
    clear: Option<bool>,
    close: Option<bool>,
    group: Option<bool>,
}
Expand description

Struct for VSCode task’s presentation.

Fields§

§reveal: Option<String>

Controls whether the Integrated Terminal panel is brought to front. Valid values are:

  • always - The panel is always brought to front. This is the default.
  • never - The user must explicitly bring the terminal panel to the front using the View > Terminal command (kb(workbench.action.terminal.toggleTerminal)).
  • silent - The terminal panel is brought to front only if the output is not scanned for errors and warnings.
§reveal_problems: Option<String>

Controls whether the Problems panel is revealed when running this task or not. Takes precedence over option reveal. Default is never.

  • always - Always reveals the Problems panel when this task is executed.
  • onProblem - Only reveals the Problems panel if a problem is found.
  • never - Never reveals the Problems panel when this task is executed.
§focus: Option<bool>

Controls whether the terminal is taking input focus or not. Default is false.

§echo: Option<bool>

Controls whether the executed command is echoed in the terminal. Default is true.

§show_reuse_message: Option<bool>

Controls whether to show the “Terminal will be reused by tasks, press any key to close it” message.

§panel: Option<String>

Controls whether the terminal instance is shared between task runs. Possible values are:

  • shared - The terminal is shared and the output of other task runs are added to the same terminal.
  • dedicated - The terminal is dedicated to a specific task. If that task is executed again, the terminal is reused. However, the output of a different task is presented in a different terminal.
  • new - Every execution of that task is using a new clean terminal.
§clear: Option<bool>

Controls whether the terminal is cleared before this task is run. Default is false.

§close: Option<bool>

Controls whether the terminal the task runs in is closed when the task exits.

§group: Option<bool>

Controls whether the task is executed in a specific terminal group using split panes. Tasks in the same group (specified by a string value) will use split terminals to present instead of a new terminal panel.

Implementations§

source§

impl Presentation

source

pub fn builder() -> PresentationBuilder<((), (), (), (), (), (), (), (), ())>

Create a builder for building Presentation. On the builder, call .reveal(...)(optional), .reveal_problems(...)(optional), .focus(...)(optional), .echo(...)(optional), .show_reuse_message(...)(optional), .panel(...)(optional), .clear(...)(optional), .close(...)(optional), .group(...)(optional) to set the values of the fields. Finally, call .build() to create the instance of Presentation.

Trait Implementations§

source§

impl<'de> Deserialize<'de> for Presentation

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Serialize for Presentation

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
§

fn try_into<'async_trait>( self ) -> Pin<Box<dyn Future<Output = Result<U, <U as TryFrom<T>>::Error>> + 'async_trait>>
where T: 'async_trait,

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,