message: Fix new selection after inserting a YAML snippet
diff: @@ -45,22 +45,21 @@ const YAMLEditorSidebar: React.FC<YAMLEditorSidebarProps> = ({
  const indentSize = new Array(selection.startColumn).join(' ');
  const lines = yaml.split('\n');
  const lineCount = lines.length;
  - const indentedText = lines
  - .map((line, i) => {
  + const indentedLines = lines.map((line, i) => {
  if (i === 0) {
  // Already indented, leave it alone
  return line;
  }
  return `${indentSize}${line}`;
  - })
  - .join('\n');
  + });
  + const indentedText = indentedLines.join('\n');
  // Grab the selection size of what we are about to add
  const newContentSelection = new window.monaco.Selection(
  selection.startLineNumber,
  - 0,
  + selection.startColumn,
  selection.startLineNumber + lineCount - 1,
  - lines[lines.length - 1].length,
  + selection.startColumn + indentedLines[indentedLines.length - 1].length,
  );
  const op = { range, text: indentedText, forceMoveMarkers: true };
  