Code view:

A painting is a person's account of this edit as text, recorded independently of the node mapping - a rendering often has several equally defensible answers where the mapping has one. Deletions and insertions carry no position on the opposite side in a painting, so that panel draws no caret for them.

Before

1// @module: commonjs
2// @Filename: vs/foo_0.ts
3var x = "filename";
4import foo = require(x); // invalid
5

After

1// @target: es2015
2// @module: commonjs
3// @Filename: vs/foo_0.ts
4var x = "filename";
5import foo = require(x); // invalid
6

Before

program
comment "// @module: commonjs"
comment "// @Filename: vs/foo_0.ts"
variable_declaration
var "var"
variable_declarator
identifier "x"
= "="
string
" "\""
string_fragment "filename"
" "\""
; ";"
ERROR
import "import"
identifier "foo"
= "="
require "require"
( "("
identifier "x"
) ")"
empty_statement
; ";"
comment "// invalid"

After

program
comment "// @target: es2015"
comment "// @module: commonjs"
comment "// @Filename: vs/foo_0.ts"
variable_declaration
var "var"
variable_declarator
identifier "x"
= "="
string
" "\""
string_fragment "filename"
" "\""
; ";"
ERROR
import "import"
identifier "foo"
= "="
require "require"
( "("
identifier "x"
) ")"
empty_statement
; ";"
comment "// invalid"