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 "precomp.h"
5#include "telemetry.hpp"
6
7TRACELOGGING_DEFINE_PROVIDER(g_hConhostV2EventTraceProvider,
8 "Microsoft.Windows.Console.Host",
9 // {fe1ff234-1f09-50a8-d38d-c44fab43e818}
10 (0xfe1ff234, 0x1f09, 0x50a8, 0xd3, 0x8d, 0xc4, 0x4f, 0xab, 0x43, 0xe8, 0x18),
11 TraceLoggingOptionMicrosoftTelemetry());
12
13// This code remains to serve as template if we ever need telemetry for conhost again.
14// The git history for this file may prove useful.
15#if 0
16Telemetry::Telemetry()
17{
…lines 18–28 unchanged (11 lines)

After

1// Copyright (c) Microsoft Corporation.
2// Licensed under the MIT license.
3
4#include "precomp.h"
5#include "telemetry.hpp"
6
7// This code remains to serve as template if we ever need telemetry for conhost again.
8// The git history for this file may prove useful.
9#if 0
10Telemetry::Telemetry()
11{
12 TraceLoggingRegister(g_hConhostV2EventTraceProvider);
…lines 13–22 unchanged (10 lines)

Before

translation_unit
comment "// Copyright (c) Microsoft Corporation.\r"
comment "// Licensed under the MIT license.\r"
preproc_include
#include "#include"
string_literal
" "\""
string_content "precomp.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "telemetry.hpp"
" "\""
expression_statement
call_expression
identifier "TRACELOGGING_DEFINE_PROVIDER"
argument_list
( "("
identifier "g_hConhostV2EventTraceProvider"
, ","
string_literal
" "\""
string_content "Microsoft.Windows.Console.Host"
" "\""
, ","
comment "// {fe1ff234-1f09-50a8-d38d-c44fab43e818}\r"
parenthesized_expression
( "("
comma_expression
number_literal "0xfe1ff234"
, ","
comma_expression
number_literal "0x1f09"
, ","
comma_expression
number_literal "0x50a8"
, ","
comma_expression
number_literal "0xd3"
, ","
comma_expression
number_literal "0x8d"
, ","
comma_expression
number_literal "0xc4"
, ","
comma_expression
number_literal "0x4f"
, ","
comma_expression
number_literal "0xab"
, ","
comma_expression
number_literal "0x43"
, ","
comma_expression
number_literal "0xe8"
, ","
number_literal "0x18"
) ")"
, ","
call_expression
identifier "TraceLoggingOptionMicrosoftTelemetry"
argument_list
( "("
) ")"
) ")"
; ";"
comment "// This code remains to serve as template if we ever need te"...
comment "// The git history for this file may prove useful.\r"
preproc_if (+73 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 "precomp.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "telemetry.hpp"
" "\""
comment "// This code remains to serve as template if we ever need te"...
comment "// The git history for this file may prove useful.\r"
preproc_if (+73 nodes collapsed)