# @code\_warntype all types are red in vsocde

**URL:** https://discourse.julialang.org/t/code-warntype-all-types-are-red-in-vsocde/90896
**Category:** New to Julia
**Created:** [November 27, 2022, 9:36am UTC](https://discourse.julialang.org/t/code-warntype-all-types-are-red-in-vsocde/90896 "2022-11-27T09:36:02Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![freeman](https://avatars.discourse-cdn.com/v4/letter/f/ec9cab/32.png) [@freeman](https://discourse.julialang.org/u/freeman)
#### Post date: [November 27, 2022, 9:36am UTC](https://discourse.julialang.org/t/code-warntype-all-types-are-red-in-vsocde/90896/1 "2022-11-27T09:36:02Z")

</div>

Not sure if I’m doing something wrong or if this is a bug with the vs code extension…  
In here [Performance Tips · The Julia Language](https://docs.julialang.org/en/v1/manual/performance-tips/#man-code-warntype)  
it says

> The most important characteristic of [`@code_warntype`](https://docs.julialang.org/en/v1/stdlib/InteractiveUtils/#InteractiveUtils.@code_warntype) is that non-concrete types are displayed in red

So I put this code in its own file

```julia
using InteractiveUtils

struct MyType
    x::Int64 
end
@code_warntype MyType(1)

```

I get this:

```julia
MethodInstance for MyType(::Int64)
  from MyType(x::Int64) in Main at /home/me/test.jl:4
Arguments
  #self#::Core.Const(MyType)
  x::Int64
Body::MyType
1 ─ %1 = %new(Main.MyType, x)::MyType
└── return %1

```

However, when running frome either the comannd line, or the native REPL, all types are blue. When running from the VS code repl, all types are red. In fact, it looks like in vs code all types are always red in `@code_warntype` no matter what I apply that macro to.
