Skip to content

Commit 18d43db

Browse files
authored
feat/more formatting (#24)
* update formatting * Update text edit tool * text edit formatting * sort output of rename * fmt
1 parent 3bc0d67 commit 18d43db

File tree

73 files changed

+312
-183
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

73 files changed

+312
-183
lines changed

integrationtests/fixtures/snapshots/go/codelens/get.snap

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
/TEST_OUTPUT/workspace/go.mod:
2-
===
32

43
[1] Location: Lines 1-1
54
Title: Reset go.mod diagnostics
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
===
1+
---
2+
23
Symbol: TestConstant
34
/TEST_OUTPUT/workspace/clean.go
45
Kind: Constant
56
Container Name: github.com/isaacphi/mcp-language-server/integrationtests/test-output/go/workspace
6-
Start Position: Line 25, Column 1
7-
End Position: Line 25, Column 38
8-
===
7+
Range: L25:C1 - L25:C38
8+
99
25|const TestConstant = "constant value"
1010

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
1-
===
1+
---
2+
23
Symbol: FooBar
34
/TEST_OUTPUT/workspace/main.go
45
Kind: Function
56
Container Name: github.com/isaacphi/mcp-language-server/integrationtests/test-output/go/workspace
6-
Start Position: Line 6, Column 1
7-
End Position: Line 9, Column 2
8-
===
7+
Range: L6:C1 - L10:C2
8+
99
6|func FooBar() string {
1010
7|return "Hello, World!"
1111
8|fmt.Println("Unreachable code") // This is unreachable code
12-
9|}
12+
9|return 3
13+
10|}
1314

integrationtests/fixtures/snapshots/go/definition/function.snap

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
===
1+
---
2+
23
Symbol: TestFunction
34
/TEST_OUTPUT/workspace/clean.go
45
Kind: Function
56
Container Name: github.com/isaacphi/mcp-language-server/integrationtests/test-output/go/workspace
6-
Start Position: Line 31, Column 1
7-
End Position: Line 33, Column 2
8-
===
7+
Range: L31:C1 - L33:C2
8+
99
31|func TestFunction() {
1010
32|fmt.Println("This is a test function")
1111
33|}

integrationtests/fixtures/snapshots/go/definition/interface.snap

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
===
1+
---
2+
23
Symbol: TestInterface
34
/TEST_OUTPUT/workspace/clean.go
45
Kind: Interface
56
Container Name: github.com/isaacphi/mcp-language-server/integrationtests/test-output/go/workspace
6-
Start Position: Line 17, Column 1
7-
End Position: Line 19, Column 2
8-
===
7+
Range: L17:C1 - L19:C2
8+
99
17|type TestInterface interface {
1010
18|DoSomething() error
1111
19|}

integrationtests/fixtures/snapshots/go/definition/method.snap

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
===
1+
---
2+
23
Symbol: TestStruct.Method
34
/TEST_OUTPUT/workspace/clean.go
45
Kind: Method
56
Container Name: github.com/isaacphi/mcp-language-server/integrationtests/test-output/go/workspace
6-
Start Position: Line 12, Column 1
7-
End Position: Line 14, Column 2
8-
===
7+
Range: L12:C1 - L14:C2
8+
99
12|func (t *TestStruct) Method() string {
1010
13|return t.Name
1111
14|}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
NotFound not found

integrationtests/fixtures/snapshots/go/definition/struct.snap

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
===
1+
---
2+
23
Symbol: TestStruct
34
/TEST_OUTPUT/workspace/clean.go
45
Kind: Struct
56
Container Name: github.com/isaacphi/mcp-language-server/integrationtests/test-output/go/workspace
6-
Start Position: Line 6, Column 1
7-
End Position: Line 9, Column 2
8-
===
7+
Range: L6:C1 - L9:C2
8+
99
6|type TestStruct struct {
1010
7| Name string
1111
8| Age int
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
===
1+
---
2+
23
Symbol: TestType
34
/TEST_OUTPUT/workspace/clean.go
45
Kind: Class
56
Container Name: github.com/isaacphi/mcp-language-server/integrationtests/test-output/go/workspace
6-
Start Position: Line 22, Column 1
7-
End Position: Line 22, Column 21
8-
===
7+
Range: L22:C1 - L22:C21
8+
99
22|type TestType string
1010

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
===
1+
---
2+
23
Symbol: TestVariable
34
/TEST_OUTPUT/workspace/clean.go
45
Kind: Variable
56
Container Name: github.com/isaacphi/mcp-language-server/integrationtests/test-output/go/workspace
6-
Start Position: Line 28, Column 1
7-
End Position: Line 28, Column 22
8-
===
7+
Range: L28:C1 - L28:C22
8+
99
28|var TestVariable = 42
1010

0 commit comments

Comments
 (0)