-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(eclipse): impl initialization options. (#2819)
- Loading branch information
Showing
11 changed files
with
577 additions
and
208 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
117 changes: 117 additions & 0 deletions
117
clients/eclipse/plugin/src/com/tabbyml/tabby4eclipse/lsp/protocol/ClientCapabilities.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,117 @@ | ||
package com.tabbyml.tabby4eclipse.lsp.protocol; | ||
|
||
public class ClientCapabilities { | ||
private TextDocumentClientCapabilities textDocument; | ||
private TabbyClientCapabilities tabby; | ||
|
||
public ClientCapabilities() { | ||
} | ||
|
||
public TextDocumentClientCapabilities getTextDocument() { | ||
return textDocument; | ||
} | ||
|
||
public void setTextDocument(TextDocumentClientCapabilities textDocument) { | ||
this.textDocument = textDocument; | ||
} | ||
|
||
public TabbyClientCapabilities getTabby() { | ||
return tabby; | ||
} | ||
|
||
public void setTabby(TabbyClientCapabilities tabby) { | ||
this.tabby = tabby; | ||
} | ||
|
||
public static class TextDocumentClientCapabilities { | ||
private boolean completion; | ||
private boolean inlineCompletion; | ||
|
||
public TextDocumentClientCapabilities() { | ||
this.completion = false; | ||
this.inlineCompletion = false; | ||
} | ||
|
||
public boolean getCompletion() { | ||
return completion; | ||
} | ||
|
||
public void setCompletion(boolean completion) { | ||
this.completion = completion; | ||
} | ||
|
||
public boolean getInlineCompletion() { | ||
return inlineCompletion; | ||
} | ||
|
||
public void setInlineCompletion(boolean inlineCompletion) { | ||
this.inlineCompletion = inlineCompletion; | ||
} | ||
} | ||
|
||
public static class TabbyClientCapabilities { | ||
private boolean agent; | ||
private boolean workspaceFileSystem; | ||
private boolean dataStore; | ||
private boolean languageSupport; | ||
private boolean gitProvider; | ||
private boolean editorOptions; | ||
|
||
public TabbyClientCapabilities() { | ||
this.agent = false; | ||
this.workspaceFileSystem = false; | ||
this.dataStore = false; | ||
this.languageSupport = false; | ||
this.gitProvider = false; | ||
this.editorOptions = false; | ||
} | ||
|
||
public boolean getAgent() { | ||
return agent; | ||
} | ||
|
||
public void setAgent(boolean agent) { | ||
this.agent = agent; | ||
} | ||
|
||
public boolean getWorkspaceFileSystem() { | ||
return workspaceFileSystem; | ||
} | ||
|
||
public void setWorkspaceFileSystem(boolean workspaceFileSystem) { | ||
this.workspaceFileSystem = workspaceFileSystem; | ||
} | ||
|
||
public boolean getDataStore() { | ||
return dataStore; | ||
} | ||
|
||
public void setDateStore(boolean dataStore) { | ||
this.dataStore = dataStore; | ||
} | ||
|
||
public boolean getLanguageSupport() { | ||
return languageSupport; | ||
} | ||
|
||
public void setLanguageSupport(boolean languageSupport) { | ||
this.languageSupport = languageSupport; | ||
} | ||
|
||
public boolean getGitProvider() { | ||
return gitProvider; | ||
} | ||
|
||
public void setGitProvider(boolean gitProvider) { | ||
this.gitProvider = gitProvider; | ||
} | ||
|
||
public boolean getEditorOptions() { | ||
return editorOptions; | ||
} | ||
|
||
public void setEditorOptions(boolean editorOptions) { | ||
this.editorOptions = editorOptions; | ||
} | ||
} | ||
} |
55 changes: 55 additions & 0 deletions
55
clients/eclipse/plugin/src/com/tabbyml/tabby4eclipse/lsp/protocol/ClientInfo.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
package com.tabbyml.tabby4eclipse.lsp.protocol; | ||
|
||
public class ClientInfo { | ||
private String name; | ||
private String version; | ||
private TabbyPluginInfo tabbyPlugin; | ||
|
||
public ClientInfo() { | ||
} | ||
|
||
public String getName() { | ||
return name; | ||
} | ||
|
||
public void setName(String name) { | ||
this.name = name; | ||
} | ||
|
||
public String getVersion() { | ||
return version; | ||
} | ||
|
||
public void setVersion(String version) { | ||
this.version = version; | ||
} | ||
|
||
public TabbyPluginInfo getTabbyPlugin() { | ||
return tabbyPlugin; | ||
} | ||
|
||
public void setTabbyPlugin(TabbyPluginInfo tabbyPlugin) { | ||
this.tabbyPlugin = tabbyPlugin; | ||
} | ||
|
||
public static class TabbyPluginInfo { | ||
private String name; | ||
private String version; | ||
|
||
public String getName() { | ||
return name; | ||
} | ||
|
||
public void setName(String name) { | ||
this.name = name; | ||
} | ||
|
||
public String getVersion() { | ||
return version; | ||
} | ||
|
||
public void setVersion(String version) { | ||
this.version = version; | ||
} | ||
} | ||
} |
112 changes: 112 additions & 0 deletions
112
clients/eclipse/plugin/src/com/tabbyml/tabby4eclipse/lsp/protocol/ClientProvidedConfig.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,112 @@ | ||
package com.tabbyml.tabby4eclipse.lsp.protocol; | ||
|
||
public class ClientProvidedConfig { | ||
private ServerConfig server; | ||
private InlineCompletionConfig inlineCompletion; | ||
private String keybindings; | ||
private AnonymousUsageTrackingConfig anonymousUsageTracking; | ||
|
||
public ClientProvidedConfig() { | ||
} | ||
|
||
public ServerConfig getServer() { | ||
return server; | ||
} | ||
|
||
public void setServer(ServerConfig server) { | ||
this.server = server; | ||
} | ||
|
||
public InlineCompletionConfig getInlineCompletion() { | ||
return inlineCompletion; | ||
} | ||
|
||
public void setInlineCompletion(InlineCompletionConfig inlineCompletion) { | ||
this.inlineCompletion = inlineCompletion; | ||
} | ||
|
||
public String getKeybindings() { | ||
return keybindings; | ||
} | ||
|
||
public void setKeybindings(String keybindings) { | ||
this.keybindings = keybindings; | ||
} | ||
|
||
public AnonymousUsageTrackingConfig getAnonymousUsageTracking() { | ||
return anonymousUsageTracking; | ||
} | ||
|
||
public void setAnonymousUsageTracking(AnonymousUsageTrackingConfig anonymousUsageTracking) { | ||
this.anonymousUsageTracking = anonymousUsageTracking; | ||
} | ||
|
||
public static class ServerConfig { | ||
private String endpoint; | ||
private String token; | ||
|
||
public ServerConfig(String endpoint, String token) { | ||
this.endpoint = endpoint; | ||
this.token = token; | ||
} | ||
|
||
public String getEndpoint() { | ||
return endpoint; | ||
} | ||
|
||
public void setEndpoint(String endpoint) { | ||
this.endpoint = endpoint; | ||
} | ||
|
||
public String getToken() { | ||
return token; | ||
} | ||
|
||
public void setToken(String token) { | ||
this.token = token; | ||
} | ||
} | ||
|
||
public static class InlineCompletionConfig { | ||
private String triggerMode; | ||
|
||
public InlineCompletionConfig(String triggerMode) { | ||
this.triggerMode = triggerMode; | ||
} | ||
|
||
public String getTriggerMode() { | ||
return triggerMode; | ||
} | ||
|
||
public void setTriggerMode(String triggerMode) { | ||
this.triggerMode = triggerMode; | ||
} | ||
|
||
public static class TriggerMode { | ||
public static final String AUTO = "auto"; | ||
public static final String MANUAL = "manual"; | ||
} | ||
} | ||
|
||
public static class Keybindings { | ||
public static final String DEFAULT = "default"; | ||
public static final String TABBY_STYLE = "tabby-style"; | ||
public static final String CUSTOMIZE = "customize"; | ||
} | ||
|
||
public static class AnonymousUsageTrackingConfig { | ||
private boolean disable; | ||
|
||
public AnonymousUsageTrackingConfig(boolean disable) { | ||
this.disable = disable; | ||
} | ||
|
||
public boolean getDisable() { | ||
return disable; | ||
} | ||
|
||
public void setDisable(boolean disable) { | ||
this.disable = disable; | ||
} | ||
} | ||
} |
Oops, something went wrong.