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 "Launch.h"
6#include "Launch.g.cpp"
7#include "EnumEntry.h"
8
9#include <LibraryResources.h>
10
11using namespace winrt::Windows::UI::Xaml;
12using namespace winrt::Windows::UI::Xaml::Navigation;
13using namespace winrt::Windows::Foundation;
14using namespace winrt::Microsoft::Terminal::Settings::Model;
…lines 15–35 unchanged (21 lines)
36 Automation::AutomationProperties::SetName(CenterOnLaunchToggle(), RS_(L"Globals_CenterOnLaunch/Text"));
37 Automation::AutomationProperties::SetHelpText(CenterOnLaunchToggle(), RS_(L"Globals_CenterOnLaunch/[using:Windows.UI.Xaml.Controls]ToolTipService/ToolTip"));
38 }
39
40 void Launch::OnNavigatedTo(const NavigationEventArgs& e)
41 {
42 _ViewModel = e.Parameter().as<Editor::LaunchViewModel>();
43 }
44}
45

After

1// Copyright (c) Microsoft Corporation.
2// Licensed under the MIT license.
3
4#include "pch.h"
5#include "Launch.h"
6#include "Launch.g.cpp"
7#include "EnumEntry.h"
8#include "LaunchViewModel.h"
9
10#include <LibraryResources.h>
11
12using namespace winrt::Windows::UI::Xaml;
13using namespace winrt::Windows::UI::Xaml::Navigation;
14using namespace winrt::Windows::Foundation;
…lines 15–37 unchanged (23 lines)
38 Automation::AutomationProperties::SetHelpText(CenterOnLaunchToggle(), RS_(L"Globals_CenterOnLaunch/[using:Windows.UI.Xaml.Controls]ToolTipService/ToolTip"));
39 }
40
41 void Launch::OnNavigatedTo(const NavigationEventArgs& e)
42 {
43 _ViewModel = e.Parameter().as<Editor::LaunchViewModel>();
44 auto innerViewModel{ winrt::get_self<Editor::implementation::LaunchViewModel>(_ViewModel) };
45 /* coroutine dispatch */ innerViewModel->PrepareStartOnUserLoginSettings();
46 }
47}
48

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 "Launch.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "Launch.g.cpp"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "EnumEntry.h"
" "\""
preproc_include
#include "#include"
system_lib_string "<LibraryResources.h>"
using_declaration
using "using"
namespace "namespace"
qualified_identifier
namespace_identifier "winrt"
:: "::"
qualified_identifier
namespace_identifier "Windows"
:: "::"
qualified_identifier
namespace_identifier "UI"
:: "::"
identifier "Xaml"
; ";"
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 "Windows"
:: "::"
identifier "Foundation"
; ";"
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 (+246 nodes collapsed)
function_definition
primitive_type "void"
function_declarator
qualified_identifier
namespace_identifier "Launch"
:: "::"
identifier "OnNavigatedTo"
parameter_list
( "("
parameter_declaration
type_qualifier
const "const"
type_identifier "NavigationEventArgs"
reference_declarator
& "&"
identifier "e"
) ")"
compound_statement
{ "{"
expression_statement (+29 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 "Launch.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "Launch.g.cpp"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "EnumEntry.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "LaunchViewModel.h"
" "\""
preproc_include
#include "#include"
system_lib_string "<LibraryResources.h>"
using_declaration
using "using"
namespace "namespace"
qualified_identifier
namespace_identifier "winrt"
:: "::"
qualified_identifier
namespace_identifier "Windows"
:: "::"
qualified_identifier
namespace_identifier "UI"
:: "::"
identifier "Xaml"
; ";"
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 "Windows"
:: "::"
identifier "Foundation"
; ";"
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 (+246 nodes collapsed)
function_definition
primitive_type "void"
function_declarator
qualified_identifier
namespace_identifier "Launch"
:: "::"
identifier "OnNavigatedTo"
parameter_list
( "("
parameter_declaration
type_qualifier
const "const"
type_identifier "NavigationEventArgs"
reference_declarator
& "&"
identifier "e"
) ")"
compound_statement
{ "{"
expression_statement (+29 nodes collapsed)
declaration
placeholder_type_specifier
auto "auto"
init_declarator
identifier "innerViewModel"
initializer_list
{ "{"
call_expression
qualified_identifier
namespace_identifier "winrt"
:: "::"
template_function
identifier "get_self"
template_argument_list
< "<"
type_descriptor
qualified_identifier
namespace_identifier "Editor"
:: "::"
qualified_identifier
namespace_identifier "implementation"
:: "::"
type_identifier "LaunchViewModel"
> ">"
argument_list
( "("
identifier "_ViewModel"
) ")"
} "}"
; ";"
comment "/* coroutine dispatch */"
expression_statement
call_expression
field_expression
identifier "innerViewModel"
-> "->"
field_identifier "PrepareStartOnUserLoginSettings"
argument_list
( "("
) ")"
; ";"
} "}"
} "}"