`find . -type f \( -name "*.go" -or -name "*.yaml" \) -print0 | xargs -0 gsed -i 's/the the /the /g'`

This commit is contained in:
phillc 2020-09-21 16:26:21 -04:00
Родитель 4aa5c68dc7
Коммит d0df252001
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: DCB08EFA0F7FC6DB
10 изменённых файлов: 12 добавлений и 12 удалений

Просмотреть файл

@ -63,7 +63,7 @@ func init() {
flag.Var((*buildutil.TagsFlag)(&build.Default.BuildTags), "tags", buildutil.TagsFlagDoc)
}
const Usage = `callgraph: display the the call graph of a Go program.
const Usage = `callgraph: display the call graph of a Go program.
Usage:

Просмотреть файл

@ -266,7 +266,7 @@ func fiximports(packages ...string) bool {
// TODO(adonovan): should we make an HTTP request to
// see if there's an HTTP redirect, a "go-import" meta tag,
// or an import comment in the the latest revision?
// or an import comment in the latest revision?
// It would duplicate a lot of logic from "go get".
}
break

Просмотреть файл

@ -95,7 +95,7 @@ func referrers(q *Query) error {
if pkglevel {
return globalReferrersPkgLevel(q, obj, fset)
}
// We'll use the the object's position to identify it in the larger program.
// We'll use the object's position to identify it in the larger program.
objposn := fset.Position(obj.Pos())
defpkg := obj.Pkg().Path() // defining package
return globalReferrers(q, qpos.info.Pkg.Path(), defpkg, objposn)

Просмотреть файл

@ -491,7 +491,7 @@ func (p *parser) parseMapType(parent *types.Package) types.Type {
//
// For unqualified and anonymous names, the returned package is the parent
// package unless parent == nil, in which case the returned package is the
// package being imported. (The parent package is not nil if the the name
// package being imported. (The parent package is not nil if the name
// is an unqualified struct field or interface method name belonging to a
// type declared in another package.)
//

Просмотреть файл

@ -253,7 +253,7 @@ func (state *golistState) processGolistOverlay(response *responseDeduper) (modif
return modifiedPkgs, needPkgs, err
}
// resolveImport finds the the ID of a package given its import path.
// resolveImport finds the ID of a package given its import path.
// In particular, it will find the right vendored copy when in GOPATH mode.
func (state *golistState) resolveImport(sourceDir, importPath string) (string, error) {
env, err := state.getEnv()

Просмотреть файл

@ -68,7 +68,7 @@ func TestRedirects(t *testing.T) {
"/cl/152047": {302, "https://go-review.googlesource.com/152047"},
"/cl/152048": {302, "https://codereview.appspot.com/152048"},
// And verify we're using the the "bigEnoughAssumeRietveld" value:
// And verify we're using the "bigEnoughAssumeRietveld" value:
"/cl/299999": {302, "https://go-review.googlesource.com/299999"},
"/cl/300000": {302, "https://codereview.appspot.com/300000"},
}

Просмотреть файл

@ -6,7 +6,7 @@
# instructions on how to use this.
substitutions:
# This bucket must be owned by the the GCP project executing the build. If
# This bucket must be owned by the GCP project executing the build. If
# you are running this from your own project, override using --substitutions.
_RESULT_BUCKET: 'golang-gopls_integration_tests'

2
internal/lsp/cache/check.go поставляемый
Просмотреть файл

@ -33,7 +33,7 @@ type packageHandle struct {
goFiles, compiledGoFiles []*parseGoHandle
// mode is the mode the the files were parsed in.
// mode is the mode the files were parsed in.
mode source.ParseMode
// m is the metadata associated with the package.

Просмотреть файл

@ -1556,13 +1556,13 @@ type DocumentSymbol struct {
Deprecated bool `json:"deprecated,omitempty"`
/**
* The range enclosing this symbol not including leading/trailing whitespace but everything else
* like comments. This information is typically used to determine if the the clients cursor is
* like comments. This information is typically used to determine if the clients cursor is
* inside the symbol to reveal in the symbol in the UI.
*/
Range Range `json:"range"`
/**
* The range that should be selected and revealed when this symbol is being picked, e.g the name of a function.
* Must be contained by the the `range`.
* Must be contained by the `range`.
*/
SelectionRange Range `json:"selectionRange"`
/**
@ -2188,7 +2188,7 @@ type LocationLink struct {
TargetRange Range `json:"targetRange"`
/**
* The range that should be selected and revealed when this link is being followed, e.g the name of a function.
* Must be contained by the the `targetRange`. See also `DocumentSymbol#range`
* Must be contained by the `targetRange`. See also `DocumentSymbol#range`
*/
TargetSelectionRange Range `json:"targetSelectionRange"`
}

Просмотреть файл

@ -204,7 +204,7 @@ func (c *completer) packageNameCompletions(ctx context.Context, fileURI span.URI
}
// packageSuggestions returns a list of packages from workspace packages that
// have the given prefix and are used in the the same directory as the given
// have the given prefix and are used in the same directory as the given
// file. This also includes test packages for these packages (<pkg>_test) and
// the directory name itself.
func packageSuggestions(ctx context.Context, snapshot source.Snapshot, fileURI span.URI, prefix string) ([]candidate, error) {