File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 22
33namespace Phpactor \LanguageServer \Handler \TextDocument ;
44
5+ use Amp \CancellationToken ;
56use Amp \Promise ;
67use Phpactor \LanguageServerProtocol \DocumentFormattingParams ;
7- use Phpactor \LanguageServerProtocol \FormattingOptions ;
88use Phpactor \LanguageServerProtocol \ServerCapabilities ;
99use Phpactor \LanguageServerProtocol \TextEdit ;
1010use Phpactor \LanguageServer \Core \Formatting \Formatter ;
@@ -33,7 +33,7 @@ public function methods(): array
3333 /**
3434 * @return Promise<array<int,TextEdit[]>|null>
3535 */
36- public function formatting (DocumentFormattingParams $ params , FormattingOptions $ options ): Promise
36+ public function formatting (DocumentFormattingParams $ params , CancellationToken $ canellation ): Promise
3737 {
3838 return call (function () use ($ params ) {
3939 $ token = WorkDoneToken::generate ();
You can’t perform that action at this time.
0 commit comments