@@ -676,7 +676,7 @@ define(function (require, exports, module) {
676676 }
677677 const fullPath = changedFile . fullPath ;
678678 if ( changedFile && _shouldShowCustomServerBar ( fullPath ) ) {
679- _showCustomServerBar ( ) ;
679+ _showCustomServerBar ( fullPath ) ;
680680 }
681681 const shouldUseInbuiltPreview = utils . isMarkdownFile ( fullPath ) || utils . isSVG ( fullPath ) ;
682682 if ( urlPinned || ( LivePreviewSettings . isUsingCustomServer ( ) &&
@@ -722,7 +722,7 @@ define(function (require, exports, module) {
722722 if ( ! editor || ! _shouldShowCustomServerBar ( editor . document . file . fullPath ) ) {
723723 return ;
724724 }
725- _showCustomServerBar ( ) ;
725+ _showCustomServerBar ( editor . document . file . fullPath ) ;
726726 }
727727
728728 function _shouldShowCustomServerBar ( fullPath ) {
@@ -734,14 +734,17 @@ define(function (require, exports, module) {
734734 return utils . isServerRenderedFile ( fullPath ) ;
735735 }
736736
737- function _showCustomServerBar ( ) {
737+ function _showCustomServerBar ( fullFilePath ) {
738738 if ( customServerModalBar ) {
739+ $ ( ".custom-banner-setup-server-text-message" ) . html (
740+ StringUtils . format ( Strings . LIVE_DEV_SETTINGS_BANNER , path . extname ( fullFilePath ) )
741+ ) ;
739742 return ;
740743 }
741744 // Show the search bar
742745 const searchBarHTML = `<div style="display: flex;justify-content: end;align-items: baseline;">
743- <div style="margin-right: 5px;">
744- ${ Strings . LIVE_DEV_SETTINGS_BANNER }
746+ <div style="margin-right: 5px;" class="custom-banner-setup-server-text-message" >
747+ ${ StringUtils . format ( Strings . LIVE_DEV_SETTINGS_BANNER , path . extname ( fullFilePath ) ) }
745748 </div>
746749 <button class="btn btn-mini live-preview-settings" style="margin-right: 5px;">
747750 ${ Strings . LIVE_DEV_SETTINGS }
0 commit comments