Skip to content

Commit c4348d3

Browse files
committed
Remove the unused "file" argument from the CodeLens command
Since the command will just run Bake without specifying a file, the "file" argument can be removed as it will not actually be used by the client. Signed-off-by: Remy Suen <[email protected]>
1 parent 6c2a514 commit c4348d3

File tree

2 files changed

+0
-7
lines changed

2 files changed

+0
-7
lines changed

internal/bake/hcl/codeLens.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ func createCodeLens(title, filename, call, target string, rng protocol.Range) pr
5858
Command: types.BakeBuildCommandId,
5959
Arguments: []any{
6060
map[string]string{
61-
"file": filename,
6261
"call": call,
6362
"target": target,
6463
"cwd": filepath.Dir(types.StripLeadingSlash(filename)),

internal/bake/hcl/codeLens_test.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ func TestCodeLens(t *testing.T) {
3636
Command: types.BakeBuildCommandId,
3737
Arguments: []any{
3838
map[string]string{
39-
"file": "/tmp/docker-bake.hcl",
4039
"call": "build",
4140
"target": "first",
4241
"cwd": "/tmp",
@@ -54,7 +53,6 @@ func TestCodeLens(t *testing.T) {
5453
Command: types.BakeBuildCommandId,
5554
Arguments: []any{
5655
map[string]string{
57-
"file": "/tmp/docker-bake.hcl",
5856
"call": "check",
5957
"target": "first",
6058
"cwd": "/tmp",
@@ -72,7 +70,6 @@ func TestCodeLens(t *testing.T) {
7270
Command: types.BakeBuildCommandId,
7371
Arguments: []any{
7472
map[string]string{
75-
"file": "/tmp/docker-bake.hcl",
7673
"call": "print",
7774
"target": "first",
7875
"cwd": "/tmp",
@@ -96,7 +93,6 @@ func TestCodeLens(t *testing.T) {
9693
Command: types.BakeBuildCommandId,
9794
Arguments: []any{
9895
map[string]string{
99-
"file": "/tmp/docker-bake.hcl",
10096
"call": "build",
10197
"target": "g1",
10298
"cwd": "/tmp",
@@ -114,7 +110,6 @@ func TestCodeLens(t *testing.T) {
114110
Command: types.BakeBuildCommandId,
115111
Arguments: []any{
116112
map[string]string{
117-
"file": "/tmp/docker-bake.hcl",
118113
"call": "check",
119114
"target": "g1",
120115
"cwd": "/tmp",
@@ -132,7 +127,6 @@ func TestCodeLens(t *testing.T) {
132127
Command: types.BakeBuildCommandId,
133128
Arguments: []any{
134129
map[string]string{
135-
"file": "/tmp/docker-bake.hcl",
136130
"call": "print",
137131
"target": "g1",
138132
"cwd": "/tmp",

0 commit comments

Comments
 (0)