-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(eclipse): support telemetry event. (#3220)
* feat(eclipse): support telemetry event. * fix: code format.
- Loading branch information
Showing
13 changed files
with
164 additions
and
22 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
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
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
62 changes: 62 additions & 0 deletions
62
clients/eclipse/plugin/src/com/tabbyml/tabby4eclipse/lsp/protocol/EventParams.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,62 @@ | ||
package com.tabbyml.tabby4eclipse.lsp.protocol; | ||
|
||
public class EventParams { | ||
private String type; | ||
private String selectKind; | ||
private CompletionEventId eventId; | ||
private String viewId; | ||
private Long elapsed; | ||
|
||
public EventParams() { | ||
} | ||
|
||
public String getType() { | ||
return type; | ||
} | ||
|
||
public void setType(String type) { | ||
this.type = type; | ||
} | ||
|
||
public String getSelectKind() { | ||
return selectKind; | ||
} | ||
|
||
public void setSelectKind(String selectKind) { | ||
this.selectKind = selectKind; | ||
} | ||
|
||
public CompletionEventId getCompletionEventId() { | ||
return eventId; | ||
} | ||
|
||
public void setCompletionEventId(CompletionEventId completionEventId) { | ||
this.eventId = completionEventId; | ||
} | ||
|
||
public String getViewId() { | ||
return viewId; | ||
} | ||
|
||
public void setViewId(String viewId) { | ||
this.viewId = viewId; | ||
} | ||
|
||
public Long getElapsed() { | ||
return elapsed; | ||
} | ||
|
||
public void setElapsed(Long elapsed) { | ||
this.elapsed = elapsed; | ||
} | ||
|
||
public static class Type { | ||
public static final String VIEW = "view"; | ||
public static final String SELECT = "select"; | ||
public static final String DISMISS = "dismiss"; | ||
} | ||
|
||
public static class SelectKind { | ||
public static final String LINE = "line"; | ||
} | ||
} |
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
10 changes: 10 additions & 0 deletions
10
clients/eclipse/plugin/src/com/tabbyml/tabby4eclipse/lsp/protocol/ITelemetryService.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,10 @@ | ||
package com.tabbyml.tabby4eclipse.lsp.protocol; | ||
|
||
import org.eclipse.lsp4j.jsonrpc.services.JsonNotification; | ||
import org.eclipse.lsp4j.jsonrpc.services.JsonSegment; | ||
|
||
@JsonSegment("tabby/telemetry") | ||
public interface ITelemetryService { | ||
@JsonNotification | ||
void event(EventParams params); | ||
} |
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