Package org.eclipse.lsp4j
Class ConfigurationItem
- java.lang.Object
-
- org.eclipse.lsp4j.ConfigurationItem
-
public class ConfigurationItem extends java.lang.ObjectA ConfigurationItem consist of the configuration section to ask for and an additional scope URI. The configuration section asked for is defined by the server and doesn’t necessarily need to correspond to the configuration store used by the client. So a server might ask for a configurationcpp.formatterOptionsbut the client stores the configuration in an XML store layout differently. It is up to the client to do the necessary conversion. If a scope URI is provided the client should return the setting scoped to the provided resource. If the client for example uses EditorConfig to manage its settings the configuration should be returned for the passed resource URI. If the client can't provide a configuration setting for a given scope then null needs to be present in the returned array.Since 3.6.0
-
-
Constructor Summary
Constructors Constructor Description ConfigurationItem()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.lang.StringgetScopeUri()The scope to get the configuration section for.java.lang.StringgetSection()The configuration section asked for.inthashCode()voidsetScopeUri(java.lang.String scopeUri)The scope to get the configuration section for.voidsetSection(java.lang.String section)The configuration section asked for.java.lang.StringtoString()
-
-
-
Method Detail
-
getScopeUri
public java.lang.String getScopeUri()
The scope to get the configuration section for.
-
setScopeUri
public void setScopeUri(java.lang.String scopeUri)
The scope to get the configuration section for.
-
getSection
public java.lang.String getSection()
The configuration section asked for.
-
setSection
public void setSection(java.lang.String section)
The configuration section asked for.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-