Package org.eclipse.lsp4j
Class InitializeParams
- java.lang.Object
-
- org.eclipse.lsp4j.InitializeParams
-
- All Implemented Interfaces:
WorkDoneProgressParams
public class InitializeParams extends java.lang.Object implements WorkDoneProgressParams
The initialize request is sent as the first request from the client to the server.
-
-
Constructor Summary
Constructors Constructor Description InitializeParams()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)ClientCapabilitiesgetCapabilities()The capabilities provided by the client (editor or tool)ClientInfogetClientInfo()Information about the clientjava.lang.ObjectgetInitializationOptions()User provided initialization options.java.lang.StringgetLocale()The locale the client is currently showing the user interface in.java.lang.IntegergetProcessId()The process Id of the parent process that started the server.java.lang.StringgetRootPath()Deprecated.UseworkspaceFoldersinstead.java.lang.StringgetRootUri()Deprecated.UseworkspaceFoldersinstead.java.lang.StringgetTrace()The initial trace setting.org.eclipse.lsp4j.jsonrpc.messages.Either<java.lang.String,java.lang.Integer>getWorkDoneToken()An optional token that a server can use to report work done progress.java.util.List<WorkspaceFolder>getWorkspaceFolders()The workspace folders configured in the client when the server starts.inthashCode()voidsetCapabilities(ClientCapabilities capabilities)The capabilities provided by the client (editor or tool)voidsetClientInfo(ClientInfo clientInfo)Information about the clientvoidsetInitializationOptions(java.lang.Object initializationOptions)User provided initialization options.voidsetLocale(java.lang.String locale)The locale the client is currently showing the user interface in.voidsetProcessId(java.lang.Integer processId)The process Id of the parent process that started the server.voidsetRootPath(java.lang.String rootPath)Deprecated.UseworkspaceFoldersinstead.voidsetRootUri(java.lang.String rootUri)Deprecated.UseworkspaceFoldersinstead.voidsetTrace(java.lang.String trace)The initial trace setting.voidsetWorkDoneToken(java.lang.Integer workDoneToken)voidsetWorkDoneToken(java.lang.String workDoneToken)voidsetWorkDoneToken(org.eclipse.lsp4j.jsonrpc.messages.Either<java.lang.String,java.lang.Integer> workDoneToken)An optional token that a server can use to report work done progress.voidsetWorkspaceFolders(java.util.List<WorkspaceFolder> workspaceFolders)The workspace folders configured in the client when the server starts.java.lang.StringtoString()
-
-
-
Method Detail
-
getWorkDoneToken
public org.eclipse.lsp4j.jsonrpc.messages.Either<java.lang.String,java.lang.Integer> getWorkDoneToken()
An optional token that a server can use to report work done progress.- Specified by:
getWorkDoneTokenin interfaceWorkDoneProgressParams
-
setWorkDoneToken
public void setWorkDoneToken(org.eclipse.lsp4j.jsonrpc.messages.Either<java.lang.String,java.lang.Integer> workDoneToken)
An optional token that a server can use to report work done progress.- Specified by:
setWorkDoneTokenin interfaceWorkDoneProgressParams
-
setWorkDoneToken
public void setWorkDoneToken(java.lang.String workDoneToken)
-
setWorkDoneToken
public void setWorkDoneToken(java.lang.Integer workDoneToken)
-
getProcessId
public java.lang.Integer getProcessId()
The process Id of the parent process that started the server.
-
setProcessId
public void setProcessId(java.lang.Integer processId)
The process Id of the parent process that started the server.
-
getRootPath
@Deprecated public java.lang.String getRootPath()
Deprecated.UseworkspaceFoldersinstead.The rootPath of the workspace. Is null if no folder is open.
-
setRootPath
@Deprecated public void setRootPath(java.lang.String rootPath)
Deprecated.UseworkspaceFoldersinstead.The rootPath of the workspace. Is null if no folder is open.
-
getRootUri
@Deprecated public java.lang.String getRootUri()
Deprecated.UseworkspaceFoldersinstead.The rootUri of the workspace. Is null if no folder is open. If bothrootPathand `rootUri` are set, `rootUri` wins.
-
setRootUri
@Deprecated public void setRootUri(java.lang.String rootUri)
Deprecated.UseworkspaceFoldersinstead.The rootUri of the workspace. Is null if no folder is open. If bothrootPathand `rootUri` are set, `rootUri` wins.
-
getInitializationOptions
public java.lang.Object getInitializationOptions()
User provided initialization options.
-
setInitializationOptions
public void setInitializationOptions(java.lang.Object initializationOptions)
User provided initialization options.
-
getCapabilities
public ClientCapabilities getCapabilities()
The capabilities provided by the client (editor or tool)
-
setCapabilities
public void setCapabilities(ClientCapabilities capabilities)
The capabilities provided by the client (editor or tool)
-
getClientInfo
public ClientInfo getClientInfo()
Information about the clientSince 3.15.0
-
setClientInfo
public void setClientInfo(ClientInfo clientInfo)
Information about the clientSince 3.15.0
-
getLocale
public java.lang.String getLocale()
The locale the client is currently showing the user interface in. This must not necessarily be the locale of the operating system.Uses IETF language tags as the value's syntax (See https://en.wikipedia.org/wiki/IETF_language_tag)
Since 3.16.0
-
setLocale
public void setLocale(java.lang.String locale)
The locale the client is currently showing the user interface in. This must not necessarily be the locale of the operating system.Uses IETF language tags as the value's syntax (See https://en.wikipedia.org/wiki/IETF_language_tag)
Since 3.16.0
-
getTrace
public java.lang.String getTrace()
The initial trace setting. For values, seeTraceValue. If omitted trace is disabled (TraceValue.Off).
-
setTrace
public void setTrace(java.lang.String trace)
The initial trace setting. For values, seeTraceValue. If omitted trace is disabled (TraceValue.Off).
-
getWorkspaceFolders
public java.util.List<WorkspaceFolder> getWorkspaceFolders()
The workspace folders configured in the client when the server starts. This property is only available if the client supports workspace folders. It can be `null` if the client supports workspace folders but none are configured.Since 3.6.0
-
setWorkspaceFolders
public void setWorkspaceFolders(java.util.List<WorkspaceFolder> workspaceFolders)
The workspace folders configured in the client when the server starts. This property is only available if the client supports workspace folders. It can be `null` if the client supports workspace folders but none are configured.Since 3.6.0
-
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
-
-