<ul dir="auto">
<li>have <code class="notranslate">formatOnType: true</code></li>
<li>pressing enter on the end of the line does not indent the next line properly, it is not indented at all</li>
<li>I can repro for both TS and JS</li>
</ul>
<p dir="auto">Simple snippet to repro. Pressing enter on end of first line I would expect to get indentation</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="function f() {
};"><pre class="notranslate"><code class="notranslate">function f() {
};
</code></pre></div>
<p dir="auto">Works for our insider build so it seems like it is a regression -&gt; important</p>
<p dir="auto">fyi <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/alexandrudima/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/alexandrudima">@alexandrudima</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/dbaeumer/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/dbaeumer">@dbaeumer</a></p>
<p dir="auto">I've followed the setup instructions found on <a href="https://code.visualstudio.com/updates#vscode" rel="nofollow">https://code.visualstudio.com/updates#vscode</a> to get the Salsa preview working.</p>
<p dir="auto">Upon enabling Salsa, when pressing Enter to go to a new line; the cursor will always jump to the beginning of the line instead of keeping the indentation level of the line before it, this happens in JavaScript files.</p>
<p dir="auto">I'm not sure if this was caused solely by Salsa or a combination of other settings. But when turning Salsa off, the indentation works properly again.</p>
<p dir="auto">Here is my config before adding the Salsa config path.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="// Place your settings in this file to overwrite the default settings
{
    // Controls the rendering size of tabs in characters. Accepted values: &quot;auto&quot;, 2, 4, 6, etc. If set to &quot;auto&quot;, the value will be guessed when a file is opened.
    &quot;editor.tabSize&quot;: 4,
    // Controls if the editor will insert spaces for tabs. Accepted values:  &quot;auto&quot;, true, false. If set to &quot;auto&quot;, the value will be guessed when a file is opened.
    &quot;editor.insertSpaces&quot;: true,
    // Controls after how many characters the editor will wrap to the next line. Setting this to 0 turns on viewport width wrapping
    &quot;editor.wrappingColumn&quot;: 0,
    // Controls if the editor should automatically format the line after typing
    &quot;editor.formatOnType&quot;: true,
    // Complete functions with their parameter signature.
    &quot;javascript.suggest.useCodeSnippetsOnMethodSuggest&quot;: false,
    // When enabled, will trim trailing whitespace when you save a file.
    &quot;files.trimTrailingWhitespace&quot;: true
}"><pre class="notranslate"><code class="notranslate">// Place your settings in this file to overwrite the default settings
{
    // Controls the rendering size of tabs in characters. Accepted values: "auto", 2, 4, 6, etc. If set to "auto", the value will be guessed when a file is opened.
    "editor.tabSize": 4,
    // Controls if the editor will insert spaces for tabs. Accepted values:  "auto", true, false. If set to "auto", the value will be guessed when a file is opened.
    "editor.insertSpaces": true,
    // Controls after how many characters the editor will wrap to the next line. Setting this to 0 turns on viewport width wrapping
    "editor.wrappingColumn": 0,
    // Controls if the editor should automatically format the line after typing
    "editor.formatOnType": true,
    // Complete functions with their parameter signature.
    "javascript.suggest.useCodeSnippetsOnMethodSuggest": false,
    // When enabled, will trim trailing whitespace when you save a file.
    "files.trimTrailingWhitespace": true
}
</code></pre></div>