File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ export class MimeUtility {
8484 return MimeUtility . parse ( contentTypeString ) . type === 'text/html' ;
8585 }
8686
87- public static isJavascript ( contentTypeString : string ) : boolean {
87+ public static isJavaScript ( contentTypeString : string ) : boolean {
8888 if ( ! contentTypeString ) {
8989 return false ;
9090 }
Original file line number Diff line number Diff line change @@ -462,7 +462,11 @@ export class VariableProcessor {
462462
463463 // Normal file variables
464464 fileVariables . forEach ( ( val , key ) => {
465- variableDefinitions . set ( key , [ VariableType . File ] ) ;
465+ if ( variableDefinitions . has ( key ) ) {
466+ variableDefinitions . get ( key ) . push ( VariableType . File ) ;
467+ } else {
468+ variableDefinitions . set ( key , [ VariableType . File ] ) ;
469+ }
466470 } ) ;
467471
468472 // Environment variables
@@ -474,7 +478,6 @@ export class VariableProcessor {
474478 }
475479 } ) ;
476480
477-
478481 return variableDefinitions ;
479482 }
480483
Original file line number Diff line number Diff line change @@ -293,7 +293,7 @@ ${HttpResponseWebview.formatHeaders(response.headers)}`;
293293 private static getHighlightLanguageAlias ( contentType : string ) : string {
294294 if ( MimeUtility . isJSON ( contentType ) ) {
295295 return 'json' ;
296- } else if ( MimeUtility . isJavascript ( contentType ) ) {
296+ } else if ( MimeUtility . isJavaScript ( contentType ) ) {
297297 return 'javascript' ;
298298 } else if ( MimeUtility . isXml ( contentType ) ) {
299299 return 'xml' ;
You can’t perform that action at this time.
0 commit comments