// Copyright 2023 The Go Authors. All rights reserved. | |
// Use of this source code is governed by a BSD-style | |
// license that can be found in the LICENSE file. | |
package cache | |
import "golang.org/x/tools/gopls/internal/lsp/protocol" | |
// SuggestedFixFromCommand returns a suggested fix to run the given command. | |
func SuggestedFixFromCommand(cmd protocol.Command, kind protocol.CodeActionKind) SuggestedFix { | |
return SuggestedFix{ | |
Title: cmd.Title, | |
Command: &cmd, | |
ActionKind: kind, | |
} | |
} |