You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using a snippet that has a tabstop following some whitespace, if you take long enough for autosave to kick in, it can remove the whitespace before the tab stop and affect its indentation. For example, in the snippet for an Elixir function definition:
def $1 do
$0
end
If you wait for a second while focused on the $1 tabstop, it will autosave and remove the whitespace before the $0. When you tab to it, the cursor will be all the way at the leftmost column.
PS. VS Code is fantastic and I am sorry to add another issue to your already huge pile.
VS Code Info
VS Code version: Code 1.20.1 (f88bbf9, 2018-02-13T15:23:28.607Z)
OS version: Darwin x64 16.7.0
System Info
Item
Value
CPUs
Intel(R) Core(TM) i7-4870HQ CPU @ 2.50GHz (8 x 2500)
Load (avg)
2, 2, 2
Memory (System)
16.00GB (4.12GB free)
Process Argv
/Applications/Visual Studio Code.app/Contents/MacOS/Electron
Screen Reader
no
VM
0%
(I did not check whether reproducible without extensions because it does not seem like an extension issue)
The text was updated successfully, but these errors were encountered:
The editor does not "know" that there is a snippet controller that adds markers and uses them as tab stops, as snippets are not a core editor concept. However, we could make some of the saving code ask SnippetController2 if it is active...
Issue Type
Bug
Description
With settings:
When using a snippet that has a tabstop following some whitespace, if you take long enough for autosave to kick in, it can remove the whitespace before the tab stop and affect its indentation. For example, in the snippet for an Elixir function definition:
If you wait for a second while focused on the
$1
tabstop, it will autosave and remove the whitespace before the$0
. When you tab to it, the cursor will be all the way at the leftmost column.PS. VS Code is fantastic and I am sorry to add another issue to your already huge pile.
VS Code Info
VS Code version: Code 1.20.1 (f88bbf9, 2018-02-13T15:23:28.607Z)
OS version: Darwin x64 16.7.0
System Info
The text was updated successfully, but these errors were encountered: