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
{{ message }}
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.
The below was observed when using the language server via the Go extension to VS Code.
Below is a simple program of 12 lines. All I did was add tabs before the print statement followed by file save a couple of times. Soon there is an error when handling the textDocument/didChange event. After this every file save that triggers formatting ends up generating the below formatting error.
Weirdly, it says it found } in line 12, but } is in line 11
The text was updated successfully, but these errors were encountered:
Never mind the feature flag, I figured out a way to intercept the calls going to the language server from the Go extension. So what I have done is disabled the formatting feature from the language server. User can opt-in to use the formatting feature from the language server explicitly in VS Code now.
The below was observed when using the language server via the Go extension to VS Code.
Below is a simple program of 12 lines. All I did was add tabs before the print statement followed by file save a couple of times. Soon there is an error when handling the
textDocument/didChange
event. After this every file save that triggers formatting ends up generating the below formatting error.Weirdly, it says it found
}
in line 12, but}
is in line 11The text was updated successfully, but these errors were encountered: