File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ export class CustomVariableDiagnosticsProvider {
2525
2626 private timer : NodeJS . Timer | undefined ;
2727
28- private fileVaraibleReferenceCache = new DocumentCache < Map < string , VariableWithPosition [ ] > > ( ) ;
28+ private fileVariableReferenceCache = new DocumentCache < Map < string , VariableWithPosition [ ] > > ( ) ;
2929
3030 constructor ( ) {
3131 this . disposables . push (
@@ -132,8 +132,8 @@ export class CustomVariableDiagnosticsProvider {
132132 }
133133
134134 private findVariableReferences ( document : TextDocument ) : Map < string , VariableWithPosition [ ] > {
135- if ( this . fileVaraibleReferenceCache . has ( document ) ) {
136- return this . fileVaraibleReferenceCache . get ( document ) ! ;
135+ if ( this . fileVariableReferenceCache . has ( document ) ) {
136+ return this . fileVariableReferenceCache . get ( document ) ! ;
137137 }
138138
139139 const vars = new Map < string , VariableWithPosition [ ] > ( ) ;
@@ -157,7 +157,7 @@ export class CustomVariableDiagnosticsProvider {
157157 }
158158 } ) ;
159159
160- this . fileVaraibleReferenceCache . set ( document , vars ) ;
160+ this . fileVariableReferenceCache . set ( document , vars ) ;
161161
162162 return vars ;
163163 }
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ type ReceivedRequestStatus = {
1313 response : HttpResponse
1414} ;
1515
16- type RequestStaus = ReceivedRequestStatus | NonReceivedRequestStatus ;
16+ type RequestStatus = ReceivedRequestStatus | NonReceivedRequestStatus ;
1717
1818export enum RequestState {
1919 Closed ,
@@ -38,7 +38,7 @@ export class RequestStatusEntry {
3838 this . sizeEntry . dispose ( ) ;
3939 }
4040
41- public update ( status : RequestStaus ) {
41+ public update ( status : RequestStatus ) {
4242 this . sizeEntry . hide ( ) ;
4343
4444 switch ( status . state ) {
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ export abstract class BaseWebview {
2828 return this . _onDidCloseAllWebviewPanels . event ;
2929 }
3030
31- protected setPrviewActiveContext ( value : boolean ) {
31+ protected setPreviewActiveContext ( value : boolean ) {
3232 commands . executeCommand ( 'setContext' , this . previewActiveContextKey , value ) ;
3333 }
3434
Original file line number Diff line number Diff line change @@ -39,13 +39,13 @@ export class CodeSnippetWebview extends BaseWebview {
3939 } ) ;
4040
4141 panel . onDidDispose ( ( ) => {
42- this . setPrviewActiveContext ( false ) ;
42+ this . setPreviewActiveContext ( false ) ;
4343 this . panels . pop ( ) ;
4444 this . _onDidCloseAllWebviewPanels . fire ( ) ;
4545 } ) ;
4646
4747 panel . onDidChangeViewState ( ( { webviewPanel } ) => {
48- this . setPrviewActiveContext ( webviewPanel . active ) ;
48+ this . setPreviewActiveContext ( webviewPanel . active ) ;
4949 } ) ;
5050
5151 panel . iconPath = this . iconFilePath ;
@@ -58,7 +58,7 @@ export class CodeSnippetWebview extends BaseWebview {
5858
5959 panel . webview . html = this . getHtmlForWebview ( panel , convertResult , lang ) ;
6060
61- this . setPrviewActiveContext ( true ) ;
61+ this . setPreviewActiveContext ( true ) ;
6262 this . activeCodeSnippet = convertResult ;
6363
6464 panel . reveal ( ViewColumn . Two ) ;
Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ export class HttpResponseWebview extends BaseWebview {
6969
7070 panel . onDidDispose ( ( ) => {
7171 if ( panel === this . activePanel ) {
72- this . setPrviewActiveContext ( false ) ;
72+ this . setPreviewActiveContext ( false ) ;
7373 this . activePanel = undefined ;
7474 }
7575
@@ -87,7 +87,7 @@ export class HttpResponseWebview extends BaseWebview {
8787
8888 panel . onDidChangeViewState ( ( { webviewPanel } ) => {
8989 const active = this . panels . some ( p => p . active ) ;
90- this . setPrviewActiveContext ( active ) ;
90+ this . setPreviewActiveContext ( active ) ;
9191 this . activePanel = webviewPanel . active ? webviewPanel : undefined ;
9292 } ) ;
9393
@@ -99,7 +99,7 @@ export class HttpResponseWebview extends BaseWebview {
9999
100100 panel . webview . html = this . getHtmlForWebview ( panel , response ) ;
101101
102- this . setPrviewActiveContext ( this . settings . previewResponsePanelTakeFocus ) ;
102+ this . setPreviewActiveContext ( this . settings . previewResponsePanelTakeFocus ) ;
103103
104104 panel . reveal ( column , ! this . settings . previewResponsePanelTakeFocus ) ;
105105
You can’t perform that action at this time.
0 commit comments