| Index: dart/site/try/src/interaction_manager.dart
|
| diff --git a/dart/site/try/src/interaction_manager.dart b/dart/site/try/src/interaction_manager.dart
|
| index 970a60f64e84fd134d426901a174f22b5a2076a3..86ec3ab38831b9213693ce332a82237b0d8ed1d7 100644
|
| --- a/dart/site/try/src/interaction_manager.dart
|
| +++ b/dart/site/try/src/interaction_manager.dart
|
| @@ -66,6 +66,7 @@ import 'settings.dart' as settings;
|
|
|
| import 'shadow_root.dart' show
|
| getShadowRoot,
|
| + getText,
|
| removeShadowRootPolyfill,
|
| setShadowRoot;
|
|
|
| @@ -316,12 +317,17 @@ class InitialState extends InteractionState {
|
| node.remove();
|
| trySelection.adjust(selection);
|
|
|
| + // TODO(ahe): We know almost exactly what has changed. It could be
|
| + // more efficient to only communicate what changed.
|
| + context.currentCompilationUnit.content = getText(mainEditorPane);
|
| +
|
| // Discard highlighting mutations.
|
| observer.takeRecords();
|
| return;
|
| }
|
| }
|
|
|
| + // TODO(ahe): Use getText(mainEditorPane) instead.
|
| removeShadowRootPolyfill(mainEditorPane);
|
|
|
| String currentText = mainEditorPane.text;
|
|
|