@@ -21,13 +21,13 @@ export class CustomViewsFeature extends LanguageClientConsumer {
2121 this . contentProvider ) ) ;
2222 }
2323
24- public dispose ( ) {
24+ public dispose ( ) : void {
2525 for ( const command of this . commands ) {
2626 command . dispose ( ) ;
2727 }
2828 }
2929
30- public override setLanguageClient ( languageClient : LanguageClient ) {
30+ public override setLanguageClient ( languageClient : LanguageClient ) : void {
3131
3232 languageClient . onRequest (
3333 NewCustomViewRequestType ,
@@ -81,7 +81,7 @@ class PowerShellContentProvider implements vscode.TextDocumentContentProvider {
8181 return this . viewIndex [ uri . toString ( ) ] . getContent ( ) ;
8282 }
8383
84- public createView ( id : string , title : string , viewType : CustomViewType ) {
84+ public createView ( id : string , title : string , viewType : CustomViewType ) : void {
8585 let view ;
8686 switch ( viewType ) {
8787 case CustomViewType . HtmlContent :
@@ -91,12 +91,12 @@ class PowerShellContentProvider implements vscode.TextDocumentContentProvider {
9191 this . viewIndex [ this . getUri ( view . id ) ] = view ;
9292 }
9393
94- public showView ( id : string , viewColumn : vscode . ViewColumn ) {
94+ public showView ( id : string , viewColumn : vscode . ViewColumn ) : void {
9595 const uriString = this . getUri ( id ) ;
9696 ( this . viewIndex [ uriString ] as HtmlContentView ) . showContent ( viewColumn ) ;
9797 }
9898
99- public closeView ( id : string ) {
99+ public closeView ( id : string ) : void {
100100 const uriString = this . getUri ( id ) ;
101101
102102 vscode . workspace . textDocuments . some ( ( doc ) => {
@@ -110,23 +110,23 @@ class PowerShellContentProvider implements vscode.TextDocumentContentProvider {
110110 } ) ;
111111 }
112112
113- public setHtmlContentView ( id : string , content : IHtmlContent ) {
113+ public setHtmlContentView ( id : string , content : IHtmlContent ) : void {
114114 const uriString = this . getUri ( id ) ;
115115 const view : CustomView = this . viewIndex [ uriString ] ;
116116
117117 ( view as HtmlContentView ) . setContent ( content ) ;
118118 this . didChangeEvent . fire ( vscode . Uri . parse ( uriString ) ) ;
119119 }
120120
121- public appendHtmlOutputView ( id : string , content : string ) {
121+ public appendHtmlOutputView ( id : string , content : string ) : void {
122122 const uriString = this . getUri ( id ) ;
123123 const view : CustomView = this . viewIndex [ uriString ] ;
124124
125125 ( view as HtmlContentView ) . appendContent ( content ) ;
126126 this . didChangeEvent . fire ( vscode . Uri . parse ( uriString ) ) ;
127127 }
128128
129- private getUri ( id : string ) {
129+ private getUri ( id : string ) : string {
130130 return `powershell://views/${ id } ` ;
131131 }
132132}
@@ -158,11 +158,11 @@ class HtmlContentView extends CustomView {
158158 super ( id , title , CustomViewType . HtmlContent ) ;
159159 }
160160
161- public setContent ( htmlContent : IHtmlContent ) {
161+ public setContent ( htmlContent : IHtmlContent ) : void {
162162 this . htmlContent = htmlContent ;
163163 }
164164
165- public appendContent ( content : string ) {
165+ public appendContent ( content : string ) : void {
166166 this . htmlContent . bodyContent += content ;
167167 }
168168
0 commit comments