@@ -21,13 +21,13 @@ export class CustomViewsFeature extends LanguageClientConsumer {
21
21
this . contentProvider ) ) ;
22
22
}
23
23
24
- public dispose ( ) {
24
+ public dispose ( ) : void {
25
25
for ( const command of this . commands ) {
26
26
command . dispose ( ) ;
27
27
}
28
28
}
29
29
30
- public override setLanguageClient ( languageClient : LanguageClient ) {
30
+ public override setLanguageClient ( languageClient : LanguageClient ) : void {
31
31
32
32
languageClient . onRequest (
33
33
NewCustomViewRequestType ,
@@ -81,7 +81,7 @@ class PowerShellContentProvider implements vscode.TextDocumentContentProvider {
81
81
return this . viewIndex [ uri . toString ( ) ] . getContent ( ) ;
82
82
}
83
83
84
- public createView ( id : string , title : string , viewType : CustomViewType ) {
84
+ public createView ( id : string , title : string , viewType : CustomViewType ) : void {
85
85
let view ;
86
86
switch ( viewType ) {
87
87
case CustomViewType . HtmlContent :
@@ -91,12 +91,12 @@ class PowerShellContentProvider implements vscode.TextDocumentContentProvider {
91
91
this . viewIndex [ this . getUri ( view . id ) ] = view ;
92
92
}
93
93
94
- public showView ( id : string , viewColumn : vscode . ViewColumn ) {
94
+ public showView ( id : string , viewColumn : vscode . ViewColumn ) : void {
95
95
const uriString = this . getUri ( id ) ;
96
96
( this . viewIndex [ uriString ] as HtmlContentView ) . showContent ( viewColumn ) ;
97
97
}
98
98
99
- public closeView ( id : string ) {
99
+ public closeView ( id : string ) : void {
100
100
const uriString = this . getUri ( id ) ;
101
101
102
102
vscode . workspace . textDocuments . some ( ( doc ) => {
@@ -110,23 +110,23 @@ class PowerShellContentProvider implements vscode.TextDocumentContentProvider {
110
110
} ) ;
111
111
}
112
112
113
- public setHtmlContentView ( id : string , content : IHtmlContent ) {
113
+ public setHtmlContentView ( id : string , content : IHtmlContent ) : void {
114
114
const uriString = this . getUri ( id ) ;
115
115
const view : CustomView = this . viewIndex [ uriString ] ;
116
116
117
117
( view as HtmlContentView ) . setContent ( content ) ;
118
118
this . didChangeEvent . fire ( vscode . Uri . parse ( uriString ) ) ;
119
119
}
120
120
121
- public appendHtmlOutputView ( id : string , content : string ) {
121
+ public appendHtmlOutputView ( id : string , content : string ) : void {
122
122
const uriString = this . getUri ( id ) ;
123
123
const view : CustomView = this . viewIndex [ uriString ] ;
124
124
125
125
( view as HtmlContentView ) . appendContent ( content ) ;
126
126
this . didChangeEvent . fire ( vscode . Uri . parse ( uriString ) ) ;
127
127
}
128
128
129
- private getUri ( id : string ) {
129
+ private getUri ( id : string ) : string {
130
130
return `powershell://views/${ id } ` ;
131
131
}
132
132
}
@@ -158,11 +158,11 @@ class HtmlContentView extends CustomView {
158
158
super ( id , title , CustomViewType . HtmlContent ) ;
159
159
}
160
160
161
- public setContent ( htmlContent : IHtmlContent ) {
161
+ public setContent ( htmlContent : IHtmlContent ) : void {
162
162
this . htmlContent = htmlContent ;
163
163
}
164
164
165
- public appendContent ( content : string ) {
165
+ public appendContent ( content : string ) : void {
166
166
this . htmlContent . bodyContent += content ;
167
167
}
168
168
0 commit comments