cuelang.org/go@v0.10.1/internal/golangorgx/gopls/server/code_action.go (about) 1 // Copyright 2018 The Go Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 package server 6 7 import ( 8 "cuelang.org/go/internal/golangorgx/gopls/file" 9 "cuelang.org/go/internal/golangorgx/gopls/protocol" 10 ) 11 12 type unit = struct{} 13 14 func documentChanges(fh file.Handle, edits []protocol.TextEdit) []protocol.DocumentChanges { 15 return protocol.TextEditsToDocumentChanges(fh.URI(), fh.Version(), edits) 16 }