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// Copyright (c) Microsoft Corporation.
2// Licensed under the MIT license.
3
4#include "pch.h"
5#include "Interaction.h"
6#include "Interaction.g.cpp"
7
8using namespace winrt::Windows::UI::Xaml::Navigation;
9using namespace winrt::Microsoft::Terminal::Settings::Model;
10
11namespace winrt::Microsoft::Terminal::Settings::Editor::implementation
12{
13 Interaction::Interaction()
14 {
15 InitializeComponent();
16 }
17
18 void Interaction::OnNavigatedTo(const NavigationEventArgs& e)
19 {
20 _ViewModel = e.Parameter().as<Editor::InteractionViewModel>();
21 }
22}
23

After

1// Copyright (c) Microsoft Corporation.
2// Licensed under the MIT license.
3
4#include "pch.h"
5#include "Interaction.h"
6#include "Interaction.g.cpp"
7
8#include "EnumEntry.h"
9
10using namespace winrt::Windows::UI::Xaml::Navigation;
11using namespace winrt::Microsoft::Terminal::Settings::Model;
12
13namespace winrt::Microsoft::Terminal::Settings::Editor::implementation
14{
15 Interaction::Interaction()
16 {
17 InitializeComponent();
18
19 INITIALIZE_BINDABLE_ENUM_SETTING(WarnAboutMultiLinePaste, WarnAboutMultiLinePaste, winrt::Microsoft::Terminal::Control::WarnAboutMultiLinePaste, L"Globals_WarnAboutMultiLinePaste", L"Content");
20 }
21
22 void Interaction::OnNavigatedTo(const NavigationEventArgs& e)
23 {
24 _ViewModel = e.Parameter().as<Editor::InteractionViewModel>();
25 }
26}
27

Before

translation_unit
comment "// Copyright (c) Microsoft Corporation.\r"
comment "// Licensed under the MIT license.\r"
preproc_include
#include "#include"
string_literal
" "\""
string_content "pch.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "Interaction.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "Interaction.g.cpp"
" "\""
using_declaration
using "using"
namespace "namespace"
qualified_identifier
namespace_identifier "winrt"
:: "::"
qualified_identifier
namespace_identifier "Windows"
:: "::"
qualified_identifier
namespace_identifier "UI"
:: "::"
qualified_identifier
namespace_identifier "Xaml"
:: "::"
identifier "Navigation"
; ";"
using_declaration
using "using"
namespace "namespace"
qualified_identifier
namespace_identifier "winrt"
:: "::"
qualified_identifier
namespace_identifier "Microsoft"
:: "::"
qualified_identifier
namespace_identifier "Terminal"
:: "::"
qualified_identifier
namespace_identifier "Settings"
:: "::"
identifier "Model"
; ";"
namespace_definition
namespace "namespace"
nested_namespace_specifier
namespace_identifier "winrt"
:: "::"
nested_namespace_specifier
namespace_identifier "Microsoft"
:: "::"
nested_namespace_specifier
namespace_identifier "Terminal"
:: "::"
nested_namespace_specifier
namespace_identifier "Settings"
:: "::"
nested_namespace_specifier
namespace_identifier "Editor"
:: "::"
namespace_identifier "implementation"
declaration_list
{ "{"
function_definition
function_declarator
qualified_identifier
namespace_identifier "Interaction"
:: "::"
identifier "Interaction"
parameter_list
( "("
) ")"
compound_statement
{ "{"
expression_statement
call_expression
identifier "InitializeComponent"
argument_list
( "("
) ")"
; ";"
} "}"
function_definition (+49 nodes collapsed)
} "}"

After

translation_unit
comment "// Copyright (c) Microsoft Corporation.\r"
comment "// Licensed under the MIT license.\r"
preproc_include
#include "#include"
string_literal
" "\""
string_content "pch.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "Interaction.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "Interaction.g.cpp"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "EnumEntry.h"
" "\""
using_declaration
using "using"
namespace "namespace"
qualified_identifier
namespace_identifier "winrt"
:: "::"
qualified_identifier
namespace_identifier "Windows"
:: "::"
qualified_identifier
namespace_identifier "UI"
:: "::"
qualified_identifier
namespace_identifier "Xaml"
:: "::"
identifier "Navigation"
; ";"
using_declaration
using "using"
namespace "namespace"
qualified_identifier
namespace_identifier "winrt"
:: "::"
qualified_identifier
namespace_identifier "Microsoft"
:: "::"
qualified_identifier
namespace_identifier "Terminal"
:: "::"
qualified_identifier
namespace_identifier "Settings"
:: "::"
identifier "Model"
; ";"
namespace_definition
namespace "namespace"
nested_namespace_specifier
namespace_identifier "winrt"
:: "::"
nested_namespace_specifier
namespace_identifier "Microsoft"
:: "::"
nested_namespace_specifier
namespace_identifier "Terminal"
:: "::"
nested_namespace_specifier
namespace_identifier "Settings"
:: "::"
nested_namespace_specifier
namespace_identifier "Editor"
:: "::"
namespace_identifier "implementation"
declaration_list
{ "{"
function_definition
function_declarator
qualified_identifier
namespace_identifier "Interaction"
:: "::"
identifier "Interaction"
parameter_list
( "("
) ")"
compound_statement
{ "{"
expression_statement
call_expression
identifier "InitializeComponent"
argument_list
( "("
) ")"
; ";"
expression_statement
call_expression
identifier "INITIALIZE_BINDABLE_ENUM_SETTING"
argument_list
( "("
identifier "WarnAboutMultiLinePaste"
, ","
identifier "WarnAboutMultiLinePaste"
, ","
qualified_identifier
namespace_identifier "winrt"
:: "::"
qualified_identifier
namespace_identifier "Microsoft"
:: "::"
qualified_identifier
namespace_identifier "Terminal"
:: "::"
qualified_identifier
namespace_identifier "Control"
:: "::"
identifier "WarnAboutMultiLinePaste"
, ","
string_literal
L" "L\""
string_content "Globals_WarnAboutMultiLinePaste"
" "\""
, ","
string_literal
L" "L\""
string_content "Content"
" "\""
) ")"
; ";"
} "}"
function_definition (+49 nodes collapsed)
} "}"