Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Click on function name will create a new file when working with Go #5155

Open
jolinchen0102 opened this issue Jan 19, 2025 · 2 comments
Open

Comments

@jolinchen0102
Copy link

Describe what happened:

What was your system configuration?
Product and Version [VS/VSCode]: VSCode
OS Version[macOS/Windows]: macOS
Live Share Extension Version: 1.0.5948
Target Platform or Language [e.g. Node.js]: Go

Steps to Reproduce / Scenario:

  1. Participants click on any function name of a Go script will automatically move that function into another file

logs.zip

@SKPG-Tech
Copy link

I can confirm this. It happens on Windows as well. We tried to make an issue on gopls (the go language server), but we are not sure which extension is causing this problem. golang/go#71314

@RanPix
Copy link

RanPix commented Jan 19, 2025

Downgrading the gopls version (0.16.2) seems to help with this issue. (Make sure you have go tools auto update disabled in go extension settings)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants