pub enum ConfigurationTarget {
UserLocal = 1,
User = 2,
WorkSpace = 3,
WorkSpaceFolder = 4,
Default = 5,
Memory = 6,
Policy = 7,
}Expand description
An enum that defines the target level for a configuration update. This tells
the ConfigurationProvider which settings.json file or memory layer to
modify when a setting is changed.
The integer values are chosen for direct compatibility with VS Code’s internal API, ensuring seamless interoperability across IPC boundaries.
Variants§
UserLocal = 1
Target the user settings file for the local machine.
User = 2
Target the user settings, potentially synced across machines.
WorkSpace = 3
Target the workspace settings file (e.g., .vscode/settings.json).
WorkSpaceFolder = 4
Target a specific folder’s settings in a multi-root workspace.
Default = 5
Target the default values (typically a read-only operation).
Memory = 6
Target the in-memory configuration for the current session only.
Policy = 7
Target the policy-enforced configuration (read-only).
Trait Implementations§
Source§impl Clone for ConfigurationTarget
impl Clone for ConfigurationTarget
Source§fn clone(&self) -> ConfigurationTarget
fn clone(&self) -> ConfigurationTarget
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ConfigurationTarget
impl Debug for ConfigurationTarget
Source§impl<'de> Deserialize<'de> for ConfigurationTarget
impl<'de> Deserialize<'de> for ConfigurationTarget
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
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 Hash for ConfigurationTarget
impl Hash for ConfigurationTarget
Source§impl PartialEq for ConfigurationTarget
impl PartialEq for ConfigurationTarget
Source§impl Serialize for ConfigurationTarget
impl Serialize for ConfigurationTarget
impl Copy for ConfigurationTarget
impl Eq for ConfigurationTarget
impl StructuralPartialEq for ConfigurationTarget
Auto Trait Implementations§
impl Freeze for ConfigurationTarget
impl RefUnwindSafe for ConfigurationTarget
impl Send for ConfigurationTarget
impl Sync for ConfigurationTarget
impl Unpin for ConfigurationTarget
impl UnwindSafe for ConfigurationTarget
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<'de, D, R> CommandArg<'de, R> for Dwhere
D: Deserialize<'de>,
R: Runtime,
impl<'de, D, R> CommandArg<'de, R> for Dwhere
D: Deserialize<'de>,
R: Runtime,
§fn from_command(command: CommandItem<'de, R>) -> Result<D, InvokeError>
fn from_command(command: CommandItem<'de, R>) -> Result<D, InvokeError>
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.