Vs Code 将代码标记为 Laravel 中不是错误的错误。我怎样才能阻止它显示那些 errors/any 错误?

Vs Code is marking codes as errors that aren't errors in Laravel. How can I stop it from showing those errors/any errors?

我尝试添加 toastr 时显示错误

    <script>
        @if(Session::has('message'))

            var type = "{{ Session::get('alert-type','info') }}"

            switch(type){
            case 'info':
                toastr.info(" {{ Session::get('message') }} ");
            break;

            case 'success':
                toastr.success(" {{ Session::get('message') }} ");
            break;

            case 'warning':
                toastr.warning(" {{ Session::get('message') }} ");
            break;

            case 'error':
                toastr.error(" {{ Session::get('message') }} ");
            break;
            }
        @endif
    </script>
  

此处显示资产下的错误

<div class="flex-shrink-0 mr-20">
   <div class="bg-img h-50 w-50" style="background-image: url({{asset('backend/images/gallery/creative/img-1.jpg') }})"></div>
 </div>

我确定这些代码没有任何错误,但 Vs Code 一直显示错误。会不会因为扩展而发生?

此问题在安装一些 blade、js 扩展后得到解决。