unified protocol message names around new spring index to spring/index
This commit is contained in:
@@ -15,7 +15,7 @@ import org.eclipse.lsp4j.services.LanguageClient;
|
||||
|
||||
public interface SpringModelLanguageClient extends LanguageClient {
|
||||
|
||||
@JsonNotification("spring/model/updated")
|
||||
void modelUpdated();
|
||||
@JsonNotification("spring/index/updated")
|
||||
void indexUpdated();
|
||||
|
||||
}
|
||||
|
||||
@@ -16,7 +16,7 @@ import java.util.concurrent.CompletableFuture;
|
||||
import org.eclipse.lsp4j.jsonrpc.services.JsonRequest;
|
||||
import org.eclipse.lsp4j.jsonrpc.services.JsonSegment;
|
||||
|
||||
@JsonSegment("spring")
|
||||
@JsonSegment("spring/index")
|
||||
public interface SpringModelService {
|
||||
|
||||
@JsonRequest
|
||||
|
||||
@@ -63,7 +63,7 @@ export class ApiManager {
|
||||
|
||||
client.onNotification(SpringModelUpdatedNotification.type, () => this.onSpringModelUpdateEmitter.fire());
|
||||
|
||||
const beansRequestType = new RequestType<BeansParams, Bean[], void>('spring/beans');
|
||||
const beansRequestType = new RequestType<BeansParams, Bean[], void>('spring/index/beans');
|
||||
const beans = (params: BeansParams) => {
|
||||
return client.sendRequest(beansRequestType, params);
|
||||
}
|
||||
|
||||
@@ -39,5 +39,5 @@ export namespace LiveProcessMemoryMetricsUpdatedNotification {
|
||||
}
|
||||
|
||||
export namespace SpringModelUpdatedNotification {
|
||||
export const type = new NotificationType<void>('spring/model/updated');
|
||||
export const type = new NotificationType<void>('spring/index/updated');
|
||||
}
|
||||
Reference in New Issue
Block a user