File tree Expand file tree Collapse file tree 2 files changed +17
-2
lines changed Expand file tree Collapse file tree 2 files changed +17
-2
lines changed Original file line number Diff line number Diff line change @@ -15,9 +15,9 @@ export class WindowProgressFeature implements StaticFeature {
1515 constructor ( private _client : BaseLanguageClient ) { }
1616
1717 public fillClientCapabilities ( capabilities : ClientCapabilities ) : void {
18- capabilities . experimental = capabilities . experimental || { } ;
18+ capabilities . experimental = capabilities . window || { } ;
1919 let windowProgressCapabilities = capabilities as Proposed . WindowProgressClientCapabilities ;
20- windowProgressCapabilities . experimental . progress = true ;
20+ windowProgressCapabilities . window . progress = true ;
2121 }
2222
2323 public initialize ( ) : void {
Original file line number Diff line number Diff line change @@ -650,6 +650,16 @@ export interface TextDocumentClientCapabilities {
650650 } ;
651651}
652652
653+ /**
654+ * Window specific client capabilities.
655+ */
656+ export interface WindowClientCapabilities {
657+ /**
658+ * Whether client supports handling progress notifications.
659+ */
660+ progress ?: boolean ;
661+ }
662+
653663/**
654664 * Defines the capabilities provided by the client.
655665 */
@@ -664,6 +674,11 @@ export interface _ClientCapabilities {
664674 */
665675 textDocument ?: TextDocumentClientCapabilities ;
666676
677+ /**
678+ * Window specific client capabilities.
679+ */
680+ window ?: WindowClientCapabilities ;
681+
667682 /**
668683 * Experimental client capabilities.
669684 */
You can’t perform that action at this time.
0 commit comments