Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [lsp4j-dev] Progress feature

Hi Guillaume,

I would define WorkDoneProgressParams as an interface declaring getWorkDoneToken() and setWorkDoneToken(). Then all classes that inherit from it should implement the interface by declaring a workDoneToken field. Xtend will generate the getter and setter.

Regards
  Miro


On 15. Aug 2020, at 12:19, Guillaume Dufour <guillaume.duff@xxxxxxxxx> wrote:

Hello,

i start to code the progress feature but i see that all xtend is based on class and specification of lsp is only interface. And they add multiple inherence on many class to add WorkDoneProgressParams. But for example CompletionParams already inherit from TextDocumentPositionParams.

So how did you manage this case in the past ?
I create WorkDoneProgressParams as an interface ?
or I create both WorkDoneProgressParams class and an interface?

any input?

Regards
Guillaume
_______________________________________________
lsp4j-dev mailing list
lsp4j-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/lsp4j-dev

--
Dr. Miro Spönemann
Software engineer and consultant

TypeFox GmbH
Am Germaniahafen 1, 24143 Kiel

Tel.: +49 151 42679459

Sitz: Kiel, Registergericht: Amtsgericht Kiel, HRB 17385
Geschäftsführer: Sven Efftinge, Moritz Eysholdt, Dr. Jan Köhnlein


Back to the top