Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

x/tools/gopls: do not suggest names from unimportable internal packages #44890

Open
butuzov opened this issue Mar 5, 2021 · 3 comments
Open

x/tools/gopls: do not suggest names from unimportable internal packages #44890

butuzov opened this issue Mar 5, 2021 · 3 comments

Comments

@butuzov
Copy link

@butuzov butuzov commented Mar 5, 2021

Describe the bug

Getting internal packages to show up in autocomplete of absolutely unrelated projects.

Notes

There are nested module ( with different import path) in workspace a uses b, b located (temporary) under a, while in b getting e in autocomplete. a and b not use e, b uses something that uses c
- a (domain/a)
- b (domain/b)
- c (domain/c)
- e (domain/c/internal/e)

Screenshots or recordings

image

What version of Go, VS Code & VS Code Go extension are you using?

 > gopls version
golang.org/x/tools/gopls v0.6.6
    golang.org/x/tools/gopls@v0.6.6 h1:GmCsAKZMEb1BD1BTWnQrMyx4FmNThlEsmuFiJbLBXio=
 > go version
go version go1.16 darwin/amd64
 > code --version
1.53.2
622cb03f7e070a9670c94bae1a45d78d7181fbd4
x64
@hyangah
Copy link
Contributor

@hyangah hyangah commented Mar 5, 2021

@butuzov Is this issue about the autocomplete suggesting gopkg.in/DataDog/dd-trace-go.v1/internal/log when you are editing a package that's outside of gopkg.in/DataDog/dd-trace-go.v1?

  • Can you share your go/gopls-related vscode settings?
  • Do a, b and c have their own go.mod files?

@butuzov
Copy link
Author

@butuzov butuzov commented Mar 7, 2021

Yeah, @hyangah I wasn't in gopkg.in/DataDog/dd-trace-go.v1 while got it's internal reference.

  1. https://gist.github.com/butuzov/730d3923ee8a43a8c99518295d4eb079#file-settings-json-L230:L341
  2. a- yes, b - yes, c is gopkg.in/DataDog/dd-trace-go.v1 so I guess also yes.

@hyangah
Copy link
Contributor

@hyangah hyangah commented Mar 9, 2021

Thanks @butuzov
I made a small repro. Transferring to the gopls issue tracker.

import (
	"gopkg.in/DataDog/dd-trace-go.v1/profiler"
)

func main() {
	_ = new(profiler.Option)
	log.Set<>
}

Auto-suggestion triggered in log.Set<> will include "gopkg.in/DataDog/dd-trace-go.v1/internal/log".SetLevel

Screen Shot 2021-03-09 at 1 21 15 PM

gopls log [Trace - 13:23:47.461 PM] Sending request 'initialize - (0)'. Params: {"processId":21448,"clientInfo":{"name":"vscode","version":"1.54.1"},"rootPath":"/Users/hakim/tmp/folding","rootUri":"file:///Users/hakim/tmp/folding","capabilities":{"workspace":{"applyEdit":true,"workspaceEdit":{"documentChanges":true,"resourceOperations":["create","rename","delete"],"failureHandling":"textOnlyTransactional"},"didChangeConfiguration":{"dynamicRegistration":true},"didChangeWatchedFiles":{"dynamicRegistration":true},"symbol":{"dynamicRegistration":true,"symbolKind":{"valueSet":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26]},"tagSupport":{"valueSet":[1]}},"executeCommand":{"dynamicRegistration":true},"configuration":true,"workspaceFolders":true,"semanticTokens":{"refreshSupport":true}},"textDocument":{"publishDiagnostics":{"relatedInformation":true,"versionSupport":false,"tagSupport":{"valueSet":[1,2]},"codeDescriptionSupport":true,"dataSupport":true},"synchronization":{"dynamicRegistration":true,"willSave":true,"willSaveWaitUntil":true,"didSave":true},"completion":{"dynamicRegistration":true,"contextSupport":true,"completionItem":{"snippetSupport":true,"commitCharactersSupport":true,"documentationFormat":["markdown","plaintext"],"deprecatedSupport":true,"preselectSupport":true,"tagSupport":{"valueSet":[1]},"insertReplaceSupport":true,"resolveSupport":{"properties":["documentation","detail","additionalTextEdits"]}},"completionItemKind":{"valueSet":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25]}},"hover":{"dynamicRegistration":true,"contentFormat":["markdown","plaintext"]},"signatureHelp":{"dynamicRegistration":true,"signatureInformation":{"documentationFormat":["markdown","plaintext"],"parameterInformation":{"labelOffsetSupport":true},"activeParameterSupport":true},"contextSupport":true},"definition":{"dynamicRegistration":true,"linkSupport":true},"references":{"dynamicRegistration":true},"documentHighlight":{"dynamicRegistration":true},"documentSymbol":{"dynamicRegistration":true,"symbolKind":{"valueSet":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26]},"hierarchicalDocumentSymbolSupport":true,"tagSupport":{"valueSet":[1]},"labelSupport":true},"codeAction":{"dynamicRegistration":true,"isPreferredSupport":true,"disabledSupport":true,"dataSupport":true,"resolveSupport":{"properties":["edit"]},"codeActionLiteralSupport":{"codeActionKind":{"valueSet":["","quickfix","refactor","refactor.extract","refactor.inline","refactor.rewrite","source","source.organizeImports"]}}},"codeLens":{"dynamicRegistration":true},"formatting":{"dynamicRegistration":true},"rangeFormatting":{"dynamicRegistration":true},"onTypeFormatting":{"dynamicRegistration":true},"rename":{"dynamicRegistration":true,"prepareSupport":true,"prepareSupportDefaultBehavior":true},"documentLink":{"dynamicRegistration":true,"tooltipSupport":true},"typeDefinition":{"dynamicRegistration":true,"linkSupport":true},"implementation":{"dynamicRegistration":true,"linkSupport":true},"colorProvider":{"dynamicRegistration":true},"foldingRange":{"dynamicRegistration":true,"rangeLimit":5000,"lineFoldingOnly":true},"declaration":{"dynamicRegistration":true,"linkSupport":true},"selectionRange":{"dynamicRegistration":true},"callHierarchy":{"dynamicRegistration":true},"semanticTokens":{"dynamicRegistration":true,"tokenTypes":["namespace","type","class","enum","interface","struct","typeParameter","parameter","variable","property","enumMember","event","function","member","macro","keyword","modifier","comment","string","number","regexp","operator"],"tokenModifiers":["declaration","definition","readonly","static","deprecated","abstract","async","modification","documentation","defaultLibrary"],"formats":["relative"],"requests":{"range":true,"full":{"delta":true}}}},"window":{"workDoneProgress":true}},"initializationOptions":{"verboseOutput":true},"trace":"off","workspaceFolders":[{"uri":"file:///Users/hakim/tmp/folding","name":"folding"}]}

[Trace - 13:23:47.463 PM] Received response 'initialize - (0)' in 1ms.
Result: {"capabilities":{"textDocumentSync":{"openClose":true,"change":2,"save":{}},"completionProvider":{"triggerCharacters":["."]},"hoverProvider":true,"signatureHelpProvider":{"triggerCharacters":["(",","]},"definitionProvider":true,"typeDefinitionProvider":true,"implementationProvider":true,"referencesProvider":true,"documentHighlightProvider":true,"documentSymbolProvider":true,"codeActionProvider":{"codeActionKinds":["quickfix","refactor.extract","refactor.rewrite","source.fixAll","source.organizeImports"]},"codeLensProvider":{},"documentLinkProvider":{},"workspaceSymbolProvider":true,"documentFormattingProvider":true,"documentOnTypeFormattingProvider":{"firstTriggerCharacter":""},"renameProvider":{"prepareProvider":true},"foldingRangeProvider":true,"executeCommandProvider":{"commands":["gopls.add_dependency","gopls.add_import","gopls.apply_fix","gopls.check_upgrades","gopls.gc_details","gopls.generate","gopls.generate_gopls_mod","gopls.go_get_package","gopls.list_known_packages","gopls.regenerate_cgo","gopls.remove_dependency","gopls.run_tests","gopls.test","gopls.tidy","gopls.toggle_gc_details","gopls.update_go_sum","gopls.upgrade_dependency","gopls.vendor"]},"callHierarchyProvider":true},"serverInfo":{"name":"gopls","version":"{"path":"golang.org/x/tools/gopls","version":"v0.6.6","sum":"h1:GmCsAKZMEb1BD1BTWnQrMyx4FmNThlEsmuFiJbLBXio=","deps":[{"path":"github.com/BurntSushi/toml","version":"v0.3.1","sum":"h1:WXkYYl6Yr3qBf1K79EBnL4mak0OimBfB0XUf9Vl28OQ="},{"path":"github.com/google/go-cmp","version":"v0.5.4","sum":"h1:L8R9j+yAqZuZjsqh/z+F1NCffTKKLShY6zXTItVIZ8M="},{"path":"github.com/sergi/go-diff","version":"v1.1.0","sum":"h1:we8PVUC3FE2uYfodKH/nBHMSetSfHDR6scGdBi+erh0="},{"path":"golang.org/x/mod","version":"v0.4.1","sum":"h1:Kvvh58BN8Y9/lBi7hTekvtMpm07eUZ0ck5pRHpsMWrY="},{"path":"golang.org/x/sync","version":"v0.0.0-20201020160332-67f06af15bc9","sum":"h1:SQFwaSi55rU7vdNs9Yr0Z324VNlrF+0wMqRXT4St8ck="},{"path":"golang.org/x/sys","version":"v0.0.0-20210124154548-22da62e12c0c","sum":"h1:VwygUrnw9jn88c4u8GD3rZQbqrP/tgas88tPUbBxQrk="},{"path":"golang.org/x/tools","version":"v0.1.1-0.20210222172741-77e031214674","sum":"h1:XzEjy9Ks1MwmcJOarbxTnL/AqHtzsRfRzAwfDhII2lE="},{"path":"golang.org/x/xerrors","version":"v0.0.0-20200804184101-5ec99f83aff1","sum":"h1:go1bK/D/BFZV2I8cIQd1NKEZ+0owSTG1fDTci4IqFcE="},{"path":"honnef.co/go/tools","version":"v0.1.1","sum":"h1:EVDuO03OCZwpV2t/tLLxPmPiomagMoBOgfPt0FM+4IY="},{"path":"mvdan.cc/gofumpt","version":"v0.1.0","sum":"h1:hsVv+Y9UsZ/mFZTxJZuHVI6shSQCtzZ11h1JEFPAZLw="},{"path":"mvdan.cc/xurls/v2","version":"v2.2.0","sum":"h1:NSZPykBXJFCetGZykLAxaL6SIpvbVy/UFEniIfHAa8A="}]}"}}

[Trace - 13:23:47.606 PM] Sending notification 'initialized'.
Params: {}

[Trace - 13:23:47.606 PM] Received request 'window/workDoneProgress/create - (1)'.
Params: {"token":"5577006791947779410"}

[Trace - 13:23:47.606 PM] Sending notification 'textDocument/didOpen'.
Params: {"textDocument":{"uri":"file:///Users/hakim/tmp/folding/main.go","languageId":"go","version":1,"text":"package main\n\nimport (\n\t"gopkg.in/DataDog/dd-trace-go.v1/profiler"\n)\n\nfunc main() {\n\t_ = new(profiler.Option)\n}\n"}}

[Trace - 13:23:47.636 PM] Sending response 'window/workDoneProgress/create - (1)' in 29ms.
Result:

[Trace - 13:23:47.636 PM] Received notification '$/progress'.
Params: {"token":"5577006791947779410","value":{"kind":"begin","title":"Setting up workspace","message":"Loading packages..."}}

[Trace - 13:23:47.636 PM] Received request 'workspace/configuration - (2)'.
Params: {"items":[{"scopeUri":"file:///Users/hakim/tmp/folding","section":"gopls"}]}

[Trace - 13:23:47.637 PM] Sending request 'textDocument/codeAction - (1)'.
Params: {"textDocument":{"uri":"file:///Users/hakim/tmp/folding/main.go"},"range":{"start":{"line":7,"character":25},"end":{"line":7,"character":25}},"context":{"diagnostics":[]}}

[Trace - 13:23:47.638 PM] Sending request 'textDocument/documentLink - (2)'.
Params: {"textDocument":{"uri":"file:///Users/hakim/tmp/folding/main.go"}}

[Trace - 13:23:47.690 PM] Sending response 'workspace/configuration - (2)' in 53ms.
Result: [{"verboseOutput":true}]

[Trace - 13:23:47.817 PM] Sending notification '$/cancelRequest'.
Params: {"id":1}

[Trace - 13:23:47.818 PM] Sending request 'textDocument/codeAction - (3)'.
Params: {"textDocument":{"uri":"file:///Users/hakim/tmp/folding/main.go"},"range":{"start":{"line":7,"character":25},"end":{"line":7,"character":25}},"context":{"diagnostics":[]}}

[Trace - 13:23:47.824 PM] Sending request 'textDocument/foldingRange - (4)'.
Params: {"textDocument":{"uri":"file:///Users/hakim/tmp/folding/main.go"}}

[Trace - 13:23:47.833 PM] Sending request 'textDocument/documentSymbol - (5)'.
Params: {"textDocument":{"uri":"file:///Users/hakim/tmp/folding/main.go"}}

[Trace - 13:23:47.952 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2021/03/09 13:23:47 go env for /Users/hakim/tmp/folding\n(root /Users/hakim/tmp/folding)\n(go version go version go1.16 darwin/amd64)\n(valid build configuration = true)\n(build flags: [])\nGOMOD=/Users/hakim/tmp/folding/go.mod\nGOPATH=/Users/hakim/go\nGOPROXY=https://proxy.golang.org,direct\nGOCACHE=/Users/hakim/Library/Caches/go-build\nGONOPROXY=\nGOROOT=/usr/local/go\nGOINSECURE=\nGOSUMDB=sum.golang.org\nGO111MODULE=\nGOFLAGS=\nGOMODCACHE=/Users/hakim/go/pkg/mod\nGONOSUMDB=\nGOPRIVATE=\n\n"}

[Info - 1:23:47 PM] 2021/03/09 13:23:47 go env for /Users/hakim/tmp/folding
(root /Users/hakim/tmp/folding)
(go version go version go1.16 darwin/amd64)
(valid build configuration = true)
(build flags: [])
GOMOD=/Users/hakim/tmp/folding/go.mod
GOPATH=/Users/hakim/go
GOPROXY=https://proxy.golang.org,direct
GOCACHE=/Users/hakim/Library/Caches/go-build
GONOPROXY=
GOROOT=/usr/local/go
GOINSECURE=
GOSUMDB=sum.golang.org
GO111MODULE=
GOFLAGS=
GOMODCACHE=/Users/hakim/go/pkg/mod
GONOSUMDB=
GOPRIVATE=

[Trace - 13:23:47.964 PM] Sending request 'textDocument/codeLens - (6)'.
Params: {"textDocument":{"uri":"file:///Users/hakim/tmp/folding/main.go"}}

[Trace - 13:23:47.992 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2021/03/09 13:23:47 56.796564ms for GOROOT= GOPATH=/Users/hakim/go GO111MODULE=auto GOPROXY=https://proxy.golang.org,direct PWD=/Users/hakim/tmp/folding go list -modfile=/var/folders/bw/6r6k9d113sv1_vvzk_1kfxbm001py5/T/go.dd97ce5c7b923a6ea4996dbe8058f89ae09b786d39969f1b4c97b1c5b0427a3e.448741622.mod -mod=readonly -f "{{context.GOARCH}} {{context.Compiler}}" -- unsafe\n"}

[Info - 1:23:47 PM] 2021/03/09 13:23:47 56.796564ms for GOROOT= GOPATH=/Users/hakim/go GO111MODULE=auto GOPROXY=https://proxy.golang.org,direct PWD=/Users/hakim/tmp/folding go list -modfile=/var/folders/bw/6r6k9d113sv1_vvzk_1kfxbm001py5/T/go.dd97ce5c7b923a6ea4996dbe8058f89ae09b786d39969f1b4c97b1c5b0427a3e.448741622.mod -mod=readonly -f "{{context.GOARCH}} {{context.Compiler}}" -- unsafe

[Trace - 13:23:48.004 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2021/03/09 13:23:48 70.027639ms for GOROOT= GOPATH=/Users/hakim/go GO111MODULE=off GOPROXY=https://proxy.golang.org,direct PWD=/Users/hakim/tmp/folding go list -e -f {{context.ReleaseTags}}\n"}

[Info - 1:23:48 PM] 2021/03/09 13:23:48 70.027639ms for GOROOT= GOPATH=/Users/hakim/go GO111MODULE=off GOPROXY=https://proxy.golang.org,direct PWD=/Users/hakim/tmp/folding go list -e -f {{context.ReleaseTags}}

[Trace - 13:23:49.025 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2021/03/09 13:23:49 1.020557026s for GOROOT= GOPATH=/Users/hakim/go GO111MODULE=auto GOPROXY=https://proxy.golang.org,direct PWD=/Users/hakim/tmp/folding go list -modfile=/var/folders/bw/6r6k9d113sv1_vvzk_1kfxbm001py5/T/go.dd97ce5c7b923a6ea4996dbe8058f89ae09b786d39969f1b4c97b1c5b0427a3e.448741622.mod -mod=readonly -e -json -compiled=true -test=true -export=false -deps=true -find=false -- builtin w/...\n"}

[Info - 1:23:49 PM] 2021/03/09 13:23:49 1.020557026s for GOROOT= GOPATH=/Users/hakim/go GO111MODULE=auto GOPROXY=https://proxy.golang.org,direct PWD=/Users/hakim/tmp/folding go list -modfile=/var/folders/bw/6r6k9d113sv1_vvzk_1kfxbm001py5/T/go.dd97ce5c7b923a6ea4996dbe8058f89ae09b786d39969f1b4c97b1c5b0427a3e.448741622.mod -mod=readonly -e -json -compiled=true -test=true -export=false -deps=true -find=false -- builtin w/...

[Trace - 13:23:49.035 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2021/03/09 13:23:49 go/packages.Load\n\tsnapshot=0\n\tdirectory=/Users/hakim/tmp/folding\n\tquery=[builtin w/...]\n\tpackages=2\n"}

[Info - 1:23:49 PM] 2021/03/09 13:23:49 go/packages.Load
snapshot=0
directory=/Users/hakim/tmp/folding
query=[builtin w/...]
packages=2

[Trace - 13:23:49.036 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2021/03/09 13:23:49 go/packages.Load\n\tsnapshot=0\n\tpackage="builtin"\n\tfiles=[/usr/local/go/src/builtin/builtin.go]\n"}

[Info - 1:23:49 PM] 2021/03/09 13:23:49 go/packages.Load
snapshot=0
package="builtin"
files=[/usr/local/go/src/builtin/builtin.go]

[Trace - 13:23:49.036 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2021/03/09 13:23:49 go/packages.Load\n\tsnapshot=0\n\tpackage="w"\n\tfiles=[/Users/hakim/tmp/folding/main.go]\n"}

[Info - 1:23:49 PM] 2021/03/09 13:23:49 go/packages.Load
snapshot=0
package="w"
files=[/Users/hakim/tmp/folding/main.go]

[Trace - 13:23:49.160 PM] Received notification '$/progress'.
Params: {"token":"5577006791947779410","value":{"kind":"end","message":"Finished loading packages."}}

[Trace - 13:23:49.164 PM] Received request 'client/registerCapability - (3)'.
Params: {"registrations":[{"id":"workspace/didChangeWatchedFiles-0","method":"workspace/didChangeWatchedFiles","registerOptions":{"watchers":[{"globPattern":"**/*.{go,mod,sum}","kind":7}]}}]}

[Trace - 13:23:49.192 PM] Sending response 'client/registerCapability - (3)' in 27ms.
Result:

[Trace - 13:23:49.213 PM] Received request 'client/registerCapability - (4)'.
Params: {"registrations":[{"id":"workspace/didChangeConfiguration","method":"workspace/didChangeConfiguration"},{"id":"workspace/didChangeWorkspaceFolders","method":"workspace/didChangeWorkspaceFolders"}]}

[Trace - 13:23:49.234 PM] Sending response 'client/registerCapability - (4)' in 20ms.
Result:

[Error - Received] 13:23:49.386 PM golang/vscode-go#1 JSON RPC cancelled

[Trace - 13:23:49.544 PM] Sending notification '$/cancelRequest'.
Params: {"id":4}

[Trace - 13:23:49.545 PM] Sending notification 'textDocument/didChange'.
Params: {"textDocument":{"uri":"file:///Users/hakim/tmp/folding/main.go","version":2},"contentChanges":[{"range":{"start":{"line":7,"character":25},"end":{"line":7,"character":25}},"rangeLength":0,"text":"\n\t"}]}

[Trace - 13:23:49.545 PM] Sending notification '$/cancelRequest'.
Params: {"id":3}

[Trace - 13:23:49.687 PM] Received response 'textDocument/documentLink - (2)' in 2049ms.
Result: [{"range":{"start":{"line":3,"character":2},"end":{"line":3,"character":42}},"target":"https://pkg.go.dev/gopkg.in/DataDog/dd-trace-go.v1@v1.29.0/profiler?utm_source=gopls"}]

[Error - Received] 13:23:49.687 PM golang/vscode-go#3 JSON RPC cancelled

[Error - Received] 13:23:49.687 PM golang/vscode-go#4 JSON RPC cancelled

[Trace - 13:23:49.688 PM] Received response 'textDocument/documentSymbol - (5)' in 1854ms.
Result: [{"name":"main","detail":"()","kind":12,"range":{"start":{"line":6,"character":0},"end":{"line":8,"character":1}},"selectionRange":{"start":{"line":6,"character":5},"end":{"line":6,"character":9}}}]

[Trace - 13:23:49.688 PM] Received response 'textDocument/codeLens - (6)' in 1723ms.
Result: null

[Trace - 13:23:49.893 PM] Sending request 'textDocument/foldingRange - (7)'.
Params: {"textDocument":{"uri":"file:///Users/hakim/tmp/folding/main.go"}}

[Trace - 13:23:49.895 PM] Received response 'textDocument/foldingRange - (7)' in 1ms.
Result: [{"startLine":2,"startCharacter":8,"endLine":3,"endCharacter":43,"kind":"imports"},{"startLine":6,"startCharacter":13,"endLine":7,"endCharacter":25}]

[Trace - 13:23:49.900 PM] Sending request 'textDocument/codeLens - (8)'.
Params: {"textDocument":{"uri":"file:///Users/hakim/tmp/folding/main.go"}}

[Trace - 13:23:49.901 PM] Sending request 'textDocument/documentSymbol - (9)'.
Params: {"textDocument":{"uri":"file:///Users/hakim/tmp/folding/main.go"}}

[Trace - 13:23:49.901 PM] Received response 'textDocument/codeLens - (8)' in 0ms.
Result: null

[Trace - 13:23:49.902 PM] Received response 'textDocument/documentSymbol - (9)' in 1ms.
Result: [{"name":"main","detail":"()","kind":12,"range":{"start":{"line":6,"character":0},"end":{"line":9,"character":1}},"selectionRange":{"start":{"line":6,"character":5},"end":{"line":6,"character":9}}}]

[Trace - 13:23:50.525 PM] Sending request 'textDocument/documentLink - (10)'.
Params: {"textDocument":{"uri":"file:///Users/hakim/tmp/folding/main.go"}}

[Trace - 13:23:50.526 PM] Received response 'textDocument/documentLink - (10)' in 0ms.
Result: [{"range":{"start":{"line":3,"character":2},"end":{"line":3,"character":42}},"target":"https://pkg.go.dev/gopkg.in/DataDog/dd-trace-go.v1@v1.29.0/profiler?utm_source=gopls"}]

[Trace - 13:23:52.053 PM] Sending notification 'textDocument/didChange'.
Params: {"textDocument":{"uri":"file:///Users/hakim/tmp/folding/main.go","version":3},"contentChanges":[{"range":{"start":{"line":8,"character":1},"end":{"line":8,"character":1}},"rangeLength":0,"text":"l"}]}

[Trace - 13:23:52.060 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///Users/hakim/tmp/folding/main.go","version":3,"diagnostics":[{"range":{"start":{"line":8,"character":1},"end":{"line":8,"character":2}},"severity":1,"code":"UndeclaredName","codeDescription":{"href":"https://pkg.go.dev/golang.org/x/tools/internal/typesinternal#UndeclaredName"},"source":"compiler","message":"undeclared name: l"}]}

[Trace - 13:23:52.072 PM] Sending request 'textDocument/completion - (11)'.
Params: {"textDocument":{"uri":"file:///Users/hakim/tmp/folding/main.go"},"position":{"line":8,"character":2},"context":{"triggerKind":1}}

[Trace - 13:23:52.098 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2021/03/09 13:23:52 23.931256ms for GOROOT= GOPATH=/Users/hakim/go GO111MODULE=auto GOPROXY=off PWD=/Users/hakim/tmp/folding go env -json GO111MODULE GOFLAGS GOINSECURE GOMOD GOMODCACHE GONOPROXY GONOSUMDB GOPATH GOPROXY GOROOT GOSUMDB\n"}

[Info - 1:23:52 PM] 2021/03/09 13:23:52 23.931256ms for GOROOT= GOPATH=/Users/hakim/go GO111MODULE=auto GOPROXY=off PWD=/Users/hakim/tmp/folding go env -json GO111MODULE GOFLAGS GOINSECURE GOMOD GOMODCACHE GONOPROXY GONOSUMDB GOPATH GOPROXY GOROOT GOSUMDB

[Trace - 13:23:52.123 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2021/03/09 13:23:52 21.170155ms for GOROOT=/usr/local/go GOPATH=/Users/hakim/go GO111MODULE=auto GOPROXY=off PWD=/Users/hakim/tmp/folding go list -modfile=/var/folders/bw/6r6k9d113sv1_vvzk_1kfxbm001py5/T/go.dd97ce5c7b923a6ea4996dbe8058f89ae09b786d39969f1b4c97b1c5b0427a3e.207665802.mod -mod=readonly -m -f "{{.Path}}\n{{.Dir}}\n{{.GoMod}}\n{{.GoVersion}}\n{{range context.ReleaseTags}}{{if eq . \"go1.14\"}}{{.}}{{end}}{{end}}\n"\n"}

[Info - 1:23:52 PM] 2021/03/09 13:23:52 21.170155ms for GOROOT=/usr/local/go GOPATH=/Users/hakim/go GO111MODULE=auto GOPROXY=off PWD=/Users/hakim/tmp/folding go list -modfile=/var/folders/bw/6r6k9d113sv1_vvzk_1kfxbm001py5/T/go.dd97ce5c7b923a6ea4996dbe8058f89ae09b786d39969f1b4c97b1c5b0427a3e.207665802.mod -mod=readonly -m -f "{{.Path}}\n{{.Dir}}\n{{.GoMod}}\n{{.GoVersion}}\n{{range context.ReleaseTags}}{{if eq . "go1.14"}}{{.}}{{end}}{{end}}\n"

[Trace - 13:23:52.138 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2021/03/09 13:23:52 14.245078ms for GOROOT=/usr/local/go GOPATH=/Users/hakim/go GO111MODULE=auto GOPROXY=off PWD=/Users/hakim/tmp/folding go env GOFLAGS\n"}

[Info - 1:23:52 PM] 2021/03/09 13:23:52 14.245078ms for GOROOT=/usr/local/go GOPATH=/Users/hakim/go GO111MODULE=auto GOPROXY=off PWD=/Users/hakim/tmp/folding go env GOFLAGS

[Trace - 13:23:52.162 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2021/03/09 13:23:52 23.184769ms for GOROOT=/usr/local/go GOPATH=/Users/hakim/go GO111MODULE=auto GOPROXY=off PWD=/Users/hakim/tmp/folding go list -m -e -json ...\n"}

[Info - 1:23:52 PM] 2021/03/09 13:23:52 23.184769ms for GOROOT=/usr/local/go GOPATH=/Users/hakim/go GO111MODULE=auto GOPROXY=off PWD=/Users/hakim/tmp/folding go list -m -e -json ...

[Trace - 13:23:52.162 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2021/03/09 13:23:52 module github.com/konsorten/go-windows-terminal-sequences has not been downloaded and will be ignored\n"}

[Info - 1:23:52 PM] 2021/03/09 13:23:52 module github.com/konsorten/go-windows-terminal-sequences has not been downloaded and will be ignored

[Trace - 13:23:52.162 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2021/03/09 13:23:52 module github.com/chzyer/logex has not been downloaded and will be ignored\n"}

[Info - 1:23:52 PM] 2021/03/09 13:23:52 module github.com/chzyer/logex has not been downloaded and will be ignored

[Trace - 13:23:52.162 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2021/03/09 13:23:52 module github.com/chzyer/readline has not been downloaded and will be ignored\n"}

[Trace - 13:23:52.163 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2021/03/09 13:23:52 module github.com/chzyer/test has not been downloaded and will be ignored\n"}

[Trace - 13:23:52.163 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2021/03/09 13:23:52 module github.com/pkg/errors has not been downloaded and will be ignored\n"}

[Trace - 13:23:52.163 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2021/03/09 13:23:52 module github.com/sirupsen/logrus has not been downloaded and will be ignored\n"}

[Info - 1:23:52 PM] 2021/03/09 13:23:52 module github.com/chzyer/readline has not been downloaded and will be ignored

[Trace - 13:23:52.163 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2021/03/09 13:23:52 gopathwalk: scanning /Users/hakim/tmp/folding\n"}

[Info - 1:23:52 PM] 2021/03/09 13:23:52 module github.com/chzyer/test has not been downloaded and will be ignored

[Info - 1:23:52 PM] 2021/03/09 13:23:52 module github.com/pkg/errors has not been downloaded and will be ignored

[Trace - 13:23:52.163 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2021/03/09 13:23:52 module github.com/ianlancetaylor/demangle has not been downloaded and will be ignored\n"}

[Trace - 13:23:52.163 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2021/03/09 13:23:52 gopathwalk: scanned /Users/hakim/tmp/folding in 653.871µs\n"}

[Trace - 13:23:52.163 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2021/03/09 13:23:52 gopathwalk: scanning /Users/hakim/go/pkg/mod/gopkg.in/!data!dog/dd-trace-go.v1@v1.29.0\n"}

[Info - 1:23:52 PM] 2021/03/09 13:23:52 module github.com/sirupsen/logrus has not been downloaded and will be ignored

[Trace - 13:23:52.163 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2021/03/09 13:23:52 Error statting ignored directory: stat /Users/hakim/go/pkg/mod/gopkg.in/!data!dog/dd-trace-go.v1@v1.29.0/cache: no such file or directory\n"}

[Info - 1:23:52 PM] 2021/03/09 13:23:52 gopathwalk: scanning /Users/hakim/tmp/folding

[Info - 1:23:52 PM] 2021/03/09 13:23:52 module github.com/ianlancetaylor/demangle has not been downloaded and will be ignored

[Info - 1:23:52 PM] 2021/03/09 13:23:52 gopathwalk: scanned /Users/hakim/tmp/folding in 653.871µs

[Info - 1:23:52 PM] 2021/03/09 13:23:52 gopathwalk: scanning /Users/hakim/go/pkg/mod/gopkg.in/!data!dog/dd-trace-go.v1@v1.29.0

[Info - 1:23:52 PM] 2021/03/09 13:23:52 Error statting ignored directory: stat /Users/hakim/go/pkg/mod/gopkg.in/!data!dog/dd-trace-go.v1@v1.29.0/cache: no such file or directory

[Trace - 13:23:52.171 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2021/03/09 13:23:52 gopathwalk: scanned /Users/hakim/go/pkg/mod/gopkg.in/!data!dog/dd-trace-go.v1@v1.29.0 in 8.015792ms\n"}

[Info - 1:23:52 PM] 2021/03/09 13:23:52 gopathwalk: scanned /Users/hakim/go/pkg/mod/gopkg.in/!data!dog/dd-trace-go.v1@v1.29.0 in 8.015792ms

[Trace - 13:23:52.171 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2021/03/09 13:23:52 Error statting ignored directory: stat /Users/hakim/go/pkg/mod/github.com/!data!dog/datadog-go@v4.4.0+incompatible/cache: no such file or directory\n"}

[Info - 1:23:52 PM] 2021/03/09 13:23:52 Error statting ignored directory: stat /Users/hakim/go/pkg/mod/github.com/!data!dog/datadog-go@v4.4.0+incompatible/cache: no such file or directory

[Trace - 13:23:52.171 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2021/03/09 13:23:52 gopathwalk: scanning /Users/hakim/go/pkg/mod/github.com/!data!dog/datadog-go@v4.4.0+incompatible\n"}

[Info - 1:23:52 PM] 2021/03/09 13:23:52 gopathwalk: scanning /Users/hakim/go/pkg/mod/github.com/!data!dog/datadog-go@v4.4.0+incompatible

[Trace - 13:23:52.172 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2021/03/09 13:23:52 gopathwalk: scanned /Users/hakim/go/pkg/mod/github.com/!data!dog/datadog-go@v4.4.0+incompatible in 479.639µs\n"}

[Trace - 13:23:52.172 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2021/03/09 13:23:52 Error statting ignored directory: stat /Users/hakim/go/pkg/mod/github.com/!microsoft/go-winio@v0.4.16/cache: no such file or directory\n"}

[Info - 1:23:52 PM] 2021/03/09 13:23:52 gopathwalk: scanned /Users/hakim/go/pkg/mod/github.com/!data!dog/datadog-go@v4.4.0+incompatible in 479.639µs

[Trace - 13:23:52.172 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2021/03/09 13:23:52 gopathwalk: scanning /Users/hakim/go/pkg/mod/github.com/!microsoft/go-winio@v0.4.16\n"}

[Info - 1:23:52 PM] 2021/03/09 13:23:52 Error statting ignored directory: stat /Users/hakim/go/pkg/mod/github.com/!microsoft/go-winio@v0.4.16/cache: no such file or directory

[Info - 1:23:52 PM] 2021/03/09 13:23:52 gopathwalk: scanning /Users/hakim/go/pkg/mod/github.com/!microsoft/go-winio@v0.4.16

[Trace - 13:23:52.173 PM] Received response 'textDocument/completion - (11)' in 101ms.
Result: {"isIncomplete":true,"items":[{"label":"len","kind":3,"detail":"func(v Type) int","preselect":true,"sortText":"00000","filterText":"len","insertTextFormat":2,"textEdit":{"range":{"start":{"line":8,"character":1},"end":{"line":8,"character":2}},"newText":"len(${1:})"}},{"label":"list","kind":9,"detail":""container/list"","sortText":"00001","filterText":"list","insertTextFormat":2,"textEdit":{"range":{"start":{"line":8,"character":1},"end":{"line":8,"character":2}},"newText":"list"},"additionalTextEdits":[{"range":{"start":{"line":3,"character":2},"end":{"line":3,"character":2}},"newText":"container/list"\n\n\t""}]},{"label":"log","kind":9,"detail":""log"","sortText":"00002","filterText":"log","insertTextFormat":2,"textEdit":{"range":{"start":{"line":8,"character":1},"end":{"line":8,"character":2}},"newText":"log"},"additionalTextEdits":[{"range":{"start":{"line":3,"character":2},"end":{"line":3,"character":2}},"newText":"log"\n\n\t""}]},{"label":"lzw","kind":9,"detail":""compress/lzw"","sortText":"00003","filterText":"lzw","insertTextFormat":2,"textEdit":{"range":{"start":{"line":8,"character":1},"end":{"line":8,"character":2}},"newText":"lzw"},"additionalTextEdits":[{"range":{"start":{"line":3,"character":2},"end":{"line":3,"character":2}},"newText":"compress/lzw"\n\n\t""}]},{"label":"log","kind":9,"detail":""gopkg.in/DataDog/dd-trace-go.v1/internal/log"","sortText":"00004","filterText":"log","insertTextFormat":2,"textEdit":{"range":{"start":{"line":8,"character":1},"end":{"line":8,"character":2}},"newText":"log"},"additionalTextEdits":[{"range":{"start":{"line":3,"character":34},"end":{"line":3,"character":34}},"newText":"internal/log"\n\t"gopkg.in/DataDog/dd-trace-go.v1/"}]},{"label":"list.Element","kind":22,"detail":"struct{...} (from "container/list")","documentation":"Element is an element of a linked list.\n","sortText":"00005","filterText":"list.Element","insertTextFormat":2,"textEdit":{"range":{"start":{"line":8,"character":1},"end":{"line":8,"character":2}},"newText":"list.Element"},"additionalTextEdits":[{"range":{"start":{"line":3,"character":2},"end":{"line":3,"character":2}},"newText":"container/list"\n\n\t""}]},{"label":"list.List","kind":22,"detail":"struct{...} (from "container/list")","documentation":"List represents a doubly linked list.\nThe zero value for List is an empty list ready to use.\n","sortText":"00006","filterText":"list.List","insertTextFormat":2,"textEdit":{"range":{"start":{"line":8,"character":1},"end":{"line":8,"character":2}},"newText":"list.List"},"additionalTextEdits":[{"range":{"start":{"line":3,"character":2},"end":{"line":3,"character":2}},"newText":"container/list"\n\n\t""}]},{"label":"list.New","kind":3,"detail":"func() *list.List (from "container/list")","documentation":"New returns an initialized list.\n","sortText":"00007","filterText":"list.New","insertTextFormat":2,"textEdit":{"range":{"start":{"line":8,"character":1},"end":{"line":8,"character":2}},"newText":"list.New()"},"additionalTextEdits":[{"range":{"start":{"line":3,"character":2},"end":{"line":3,"character":2}},"newText":"container/list"\n\n\t""}]}]}

[Trace - 13:23:52.199 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2021/03/09 13:23:52 gopathwalk: scanned /Users/hakim/go/pkg/mod/github.com/!microsoft/go-winio@v0.4.16 in 27.791964ms\n"}

[Info - 1:23:52 PM] 2021/03/09 13:23:52 gopathwalk: scanned /Users/hakim/go/pkg/mod/github.com/!microsoft/go-winio@v0.4.16 in 27.791964ms

[Trace - 13:23:52.250 PM] Sending request 'textDocument/foldingRange - (12)'.
Params: {"textDocument":{"uri":"file:///Users/hakim/tmp/folding/main.go"}}

[Trace - 13:23:52.250 PM] Received response 'textDocument/foldingRange - (12)' in 0ms.
Result: [{"startLine":2,"startCharacter":8,"endLine":3,"endCharacter":43,"kind":"imports"},{"startLine":6,"startCharacter":13,"endLine":8,"endCharacter":2}]

[Trace - 13:23:52.323 PM] Sending request 'textDocument/codeAction - (13)'.
Params: {"textDocument":{"uri":"file:///Users/hakim/tmp/folding/main.go"},"range":{"start":{"line":8,"character":2},"end":{"line":8,"character":2}},"context":{"diagnostics":[{"range":{"start":{"line":8,"character":1},"end":{"line":8,"character":2}},"message":"undeclared name: l","code":"UndeclaredName","codeDescription":{"href":"https://pkg.go.dev/golang.org/x/tools/internal/typesinternal#UndeclaredName"},"severity":1,"source":"compiler"}]}}

[Trace - 13:23:52.324 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2021/03/09 13:23:52 fixImports(filename="/Users/hakim/tmp/folding/main.go"), abs="/Users/hakim/tmp/folding/main.go", srcDir="/Users/hakim/tmp/folding" ...\n"}

[Info - 1:23:52 PM] 2021/03/09 13:23:52 fixImports(filename="/Users/hakim/tmp/folding/main.go"), abs="/Users/hakim/tmp/folding/main.go", srcDir="/Users/hakim/tmp/folding" ...

[Trace - 13:23:52.325 PM] Received response 'textDocument/codeAction - (13)' in 2ms.
Result: [{"title":"undeclared name: l","kind":"quickfix","diagnostics":[{"range":{"start":{"line":8,"character":1},"end":{"line":8,"character":2}},"severity":1,"code":"UndeclaredName","codeDescription":{"href":"https://pkg.go.dev/golang.org/x/tools/internal/typesinternal#UndeclaredName"},"source":"compiler","message":"undeclared name: l"}],"edit":{},"command":{"title":"undeclared name: l","command":"gopls.apply_fix","arguments":[{"Fix":"undeclared_name","URI":"file:///Users/hakim/tmp/folding/main.go","Range":{"start":{"line":8,"character":1},"end":{"line":8,"character":2}}}]}}]

[Trace - 13:23:52.411 PM] Sending notification 'textDocument/didChange'.
Params: {"textDocument":{"uri":"file:///Users/hakim/tmp/folding/main.go","version":4},"contentChanges":[{"range":{"start":{"line":8,"character":2},"end":{"line":8,"character":2}},"rangeLength":0,"text":"o"}]}

[Trace - 13:23:52.412 PM] Sending request 'textDocument/completion - (14)'.
Params: {"textDocument":{"uri":"file:///Users/hakim/tmp/folding/main.go"},"position":{"line":8,"character":3},"context":{"triggerKind":3}}

[Trace - 13:23:52.420 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///Users/hakim/tmp/folding/main.go","version":4,"diagnostics":[{"range":{"start":{"line":8,"character":1},"end":{"line":8,"character":3}},"severity":1,"code":"UndeclaredName","codeDescription":{"href":"https://pkg.go.dev/golang.org/x/tools/internal/typesinternal#UndeclaredName"},"source":"compiler","message":"undeclared name: lo"}]}

[Trace - 13:23:52.425 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2021/03/09 13:23:52 gopathwalk: scanning /Users/hakim/go/pkg/mod/github.com/davecgh/go-spew@v1.1.1\n"}

[Trace - 13:23:52.425 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2021/03/09 13:23:52 Error statting ignored directory: stat /Users/hakim/go/pkg/mod/github.com/davecgh/go-spew@v1.1.1/cache: no such file or directory\n"}

[Info - 1:23:52 PM] 2021/03/09 13:23:52 gopathwalk: scanning /Users/hakim/go/pkg/mod/github.com/davecgh/go-spew@v1.1.1

[Info - 1:23:52 PM] 2021/03/09 13:23:52 Error statting ignored directory: stat /Users/hakim/go/pkg/mod/github.com/davecgh/go-spew@v1.1.1/cache: no such file or directory

[Trace - 13:23:52.426 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2021/03/09 13:23:52 gopathwalk: scanned /Users/hakim/go/pkg/mod/github.com/davecgh/go-spew@v1.1.1 in 1.232015ms\n"}

[Info - 1:23:52 PM] 2021/03/09 13:23:52 gopathwalk: scanned /Users/hakim/go/pkg/mod/github.com/davecgh/go-spew@v1.1.1 in 1.232015ms

[Trace - 13:23:52.427 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2021/03/09 13:23:52 gopathwalk: scanning /Users/hakim/go/pkg/mod/github.com/google/pprof@v0.0.0-20210125172800-10e9aeb4a998\n"}

[Trace - 13:23:52.427 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2021/03/09 13:23:52 Error statting ignored directory: stat /Users/hakim/go/pkg/mod/github.com/google/pprof@v0.0.0-20210125172800-10e9aeb4a998/cache: no such file or directory\n"}

[Info - 1:23:52 PM] 2021/03/09 13:23:52 gopathwalk: scanning /Users/hakim/go/pkg/mod/github.com/google/pprof@v0.0.0-20210125172800-10e9aeb4a998

[Info - 1:23:52 PM] 2021/03/09 13:23:52 Error statting ignored directory: stat /Users/hakim/go/pkg/mod/github.com/google/pprof@v0.0.0-20210125172800-10e9aeb4a998/cache: no such file or directory

[Trace - 13:23:52.434 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2021/03/09 13:23:52 gopathwalk: scanned /Users/hakim/go/pkg/mod/github.com/google/pprof@v0.0.0-20210125172800-10e9aeb4a998 in 7.9221ms\n"}

[Trace - 13:23:52.434 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2021/03/09 13:23:52 gopathwalk: scanning /Users/hakim/go/pkg/mod/github.com/google/uuid@v1.2.0\n"}

[Trace - 13:23:52.434 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2021/03/09 13:23:52 Error statting ignored directory: stat /Users/hakim/go/pkg/mod/github.com/google/uuid@v1.2.0/cache: no such file or directory\n"}

[Info - 1:23:52 PM] 2021/03/09 13:23:52 gopathwalk: scanned /Users/hakim/go/pkg/mod/github.com/google/pprof@v0.0.0-20210125172800-10e9aeb4a998 in 7.9221ms

[Trace - 13:23:52.435 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2021/03/09 13:23:52 Error statting ignored directory: stat /Users/hakim/go/pkg/mod/github.com/opentracing/opentracing-go@v1.2.0/cache: no such file or directory\n"}

[Info - 1:23:52 PM] 2021/03/09 13:23:52 gopathwalk: scanning /Users/hakim/go/pkg/mod/github.com/google/uuid@v1.2.0

[Trace - 13:23:52.435 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2021/03/09 13:23:52 gopathwalk: scanned /Users/hakim/go/pkg/mod/github.com/google/uuid@v1.2.0 in 884.946µs\n"}

[Info - 1:23:52 PM] 2021/03/09 13:23:52 Error statting ignored directory: stat /Users/hakim/go/pkg/mod/github.com/google/uuid@v1.2.0/cache: no such file or directory

[Trace - 13:23:52.436 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2021/03/09 13:23:52 gopathwalk: scanning /Users/hakim/go/pkg/mod/github.com/opentracing/opentracing-go@v1.2.0\n"}

[Info - 1:23:52 PM] 2021/03/09 13:23:52 Error statting ignored directory: stat /Users/hakim/go/pkg/mod/github.com/opentracing/opentracing-go@v1.2.0/cache: no such file or directory

[Info - 1:23:52 PM] 2021/03/09 13:23:52 gopathwalk: scanned /Users/hakim/go/pkg/mod/github.com/google/uuid@v1.2.0 in 884.946µs

[Info - 1:23:52 PM] 2021/03/09 13:23:52 gopathwalk: scanning /Users/hakim/go/pkg/mod/github.com/opentracing/opentracing-go@v1.2.0

[Trace - 13:23:52.437 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2021/03/09 13:23:52 gopathwalk: scanned /Users/hakim/go/pkg/mod/github.com/opentracing/opentracing-go@v1.2.0 in 1.978105ms\n"}

[Trace - 13:23:52.437 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2021/03/09 13:23:52 gopathwalk: scanning /Users/hakim/go/pkg/mod/github.com/philhofer/fwd@v1.1.1\n"}

[Trace - 13:23:52.437 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2021/03/09 13:23:52 Error statting ignored directory: stat /Users/hakim/go/pkg/mod/github.com/philhofer/fwd@v1.1.1/cache: no such file or directory\n"}

[Trace - 13:23:52.437 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2021/03/09 13:23:52 Error statting ignored directory: stat /Users/hakim/go/pkg/mod/github.com/pmezard/go-difflib@v1.0.0/cache: no such file or directory\n"}

[Trace - 13:23:52.437 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2021/03/09 13:23:52 gopathwalk: scanning /Users/hakim/go/pkg/mod/github.com/pmezard/go-difflib@v1.0.0\n"}

[Trace - 13:23:52.437 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2021/03/09 13:23:52 gopathwalk: scanned /Users/hakim/go/pkg/mod/github.com/philhofer/fwd@v1.1.1 in 402.444µs\n"}

[Info - 1:23:52 PM] 2021/03/09 13:23:52 gopathwalk: scanned /Users/hakim/go/pkg/mod/github.com/opentracing/opentracing-go@v1.2.0 in 1.978105ms

[Info - 1:23:52 PM] 2021/03/09 13:23:52 gopathwalk: scanning /Users/hakim/go/pkg/mod/github.com/philhofer/fwd@v1.1.1

[Trace - 13:23:52.439 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2021/03/09 13:23:52 Error statting ignored directory: stat /Users/hakim/go/pkg/mod/github.com/stretchr/objx@v0.1.1/cache: no such file or directory\n"}

[Trace - 13:23:52.439 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2021/03/09 13:23:52 gopathwalk: scanned /Users/hakim/go/pkg/mod/github.com/pmezard/go-difflib@v1.0.0 in 452.22µs\n"}

[Trace - 13:23:52.439 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2021/03/09 13:23:52 gopathwalk: scanning /Users/hakim/go/pkg/mod/github.com/stretchr/objx@v0.1.1\n"}

[Info - 1:23:52 PM] 2021/03/09 13:23:52 Error statting ignored directory: stat /Users/hakim/go/pkg/mod/github.com/philhofer/fwd@v1.1.1/cache: no such file or directory

[Info - 1:23:52 PM] 2021/03/09 13:23:52 Error statting ignored directory: stat /Users/hakim/go/pkg/mod/github.com/pmezard/go-difflib@v1.0.0/cache: no such file or directory

[Trace - 13:23:52.439 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2021/03/09 13:23:52 Error statting ignored directory: stat /Users/hakim/go/pkg/mod/github.com/stretchr/testify@v1.7.0/cache: no such file or directory\n"}

[Trace - 13:23:52.440 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2021/03/09 13:23:52 gopathwalk: scanned /Users/hakim/go/pkg/mod/github.com/stretchr/objx@v0.1.1 in 1.509469ms\n"}

[Trace - 13:23:52.440 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2021/03/09 13:23:52 gopathwalk: scanning /Users/hakim/go/pkg/mod/github.com/stretchr/testify@v1.7.0\n"}

[Info - 1:23:52 PM] 2021/03/09 13:23:52 gopathwalk: scanning /Users/hakim/go/pkg/mod/github.com/pmezard/go-difflib@v1.0.0

[Info - 1:23:52 PM] 2021/03/09 13:23:52 gopathwalk: scanned /Users/hakim/go/pkg/mod/github.com/philhofer/fwd@v1.1.1 in 402.444µs

[Info - 1:23:52 PM] 2021/03/09 13:23:52 Error statting ignored directory: stat /Users/hakim/go/pkg/mod/github.com/stretchr/objx@v0.1.1/cache: no such file or directory

[Info - 1:23:52 PM] 2021/03/09 13:23:52 gopathwalk: scanned /Users/hakim/go/pkg/mod/github.com/pmezard/go-difflib@v1.0.0 in 452.22µs

[Info - 1:23:52 PM] 2021/03/09 13:23:52 gopathwalk: scanning /Users/hakim/go/pkg/mod/github.com/stretchr/objx@v0.1.1

[Info - 1:23:52 PM] 2021/03/09 13:23:52 Error statting ignored directory: stat /Users/hakim/go/pkg/mod/github.com/stretchr/testify@v1.7.0/cache: no such file or directory

[Info - 1:23:52 PM] 2021/03/09 13:23:52 gopathwalk: scanned /Users/hakim/go/pkg/mod/github.com/stretchr/objx@v0.1.1 in 1.509469ms

[Info - 1:23:52 PM] 2021/03/09 13:23:52 gopathwalk: scanning /Users/hakim/go/pkg/mod/github.com/stretchr/testify@v1.7.0

[Trace - 13:23:52.441 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2021/03/09 13:23:52 gopathwalk: scanned /Users/hakim/go/pkg/mod/github.com/stretchr/testify@v1.7.0 in 1.580572ms\n"}

[Trace - 13:23:52.441 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2021/03/09 13:23:52 Error statting ignored directory: stat /Users/hakim/go/pkg/mod/github.com/tinylib/msgp@v1.1.2/cache: no such file or directory\n"}

[Trace - 13:23:52.441 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2021/03/09 13:23:52 gopathwalk: scanning /Users/hakim/go/pkg/mod/github.com/tinylib/msgp@v1.1.2\n"}

[Info - 1:23:52 PM] 2021/03/09 13:23:52 gopathwalk: scanned /Users/hakim/go/pkg/mod/github.com/stretchr/testify@v1.7.0 in 1.580572ms

[Info - 1:23:52 PM] 2021/03/09 13:23:52 Error statting ignored directory: stat /Users/hakim/go/pkg/mod/github.com/tinylib/msgp@v1.1.2/cache: no such file or directory

[Info - 1:23:52 PM] 2021/03/09 13:23:52 gopathwalk: scanning /Users/hakim/go/pkg/mod/github.com/tinylib/msgp@v1.1.2

[Trace - 13:23:52.442 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2021/03/09 13:23:52 gopathwalk: scanned /Users/hakim/go/pkg/mod/github.com/tinylib/msgp@v1.1.2 in 1.390794ms\n"}

[Trace - 13:23:52.442 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2021/03/09 13:23:52 gopathwalk: scanning /Users/hakim/go/pkg/mod/golang.org/x/sys@v0.0.0-20191204072324-ce4227a45e2e\n"}

[Trace - 13:23:52.442 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2021/03/09 13:23:52 Error statting ignored directory: stat /Users/hakim/go/pkg/mod/golang.org/x/sys@v0.0.0-20191204072324-ce4227a45e2e/cache: no such file or directory\n"}

[Info - 1:23:52 PM] 2021/03/09 13:23:52 gopathwalk: scanned /Users/hakim/go/pkg/mod/github.com/tinylib/msgp@v1.1.2 in 1.390794ms

[Info - 1:23:52 PM] 2021/03/09 13:23:52 gopathwalk: scanning /Users/hakim/go/pkg/mod/golang.org/x/sys@v0.0.0-20191204072324-ce4227a45e2e

[Info - 1:23:52 PM] 2021/03/09 13:23:52 Error statting ignored directory: stat /Users/hakim/go/pkg/mod/golang.org/x/sys@v0.0.0-20191204072324-ce4227a45e2e/cache: no such file or directory

[Trace - 13:23:52.446 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2021/03/09 13:23:52 gopathwalk: scanning /Users/hakim/go/pkg/mod/golang.org/x/time@v0.0.0-20210220033141-f8bda1e9f3ba\n"}

[Info - 1:23:52 PM] 2021/03/09 13:23:52 gopathwalk: scanning /Users/hakim/go/pkg/mod/golang.org/x/time@v0.0.0-20210220033141-f8bda1e9f3ba

[Trace - 13:23:52.446 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2021/03/09 13:23:52 Error statting ignored directory: stat /Users/hakim/go/pkg/mod/golang.org/x/time@v0.0.0-20210220033141-f8bda1e9f3ba/cache: no such file or directory\n"}

[Trace - 13:23:52.446 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2021/03/09 13:23:52 gopathwalk: scanned /Users/hakim/go/pkg/mod/golang.org/x/sys@v0.0.0-20191204072324-ce4227a45e2e in 3.512187ms\n"}

[Info - 1:23:52 PM] 2021/03/09 13:23:52 Error statting ignored directory: stat /Users/hakim/go/pkg/mod/golang.org/x/time@v0.0.0-20210220033141-f8bda1e9f3ba/cache: no such file or directory

[Trace - 13:23:52.446 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2021/03/09 13:23:52 gopathwalk: scanned /Users/hakim/go/pkg/mod/golang.org/x/time@v0.0.0-20210220033141-f8bda1e9f3ba in 611.797µs\n"}

[Trace - 13:23:52.447 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2021/03/09 13:23:52 gopathwalk: scanning /Users/hakim/go/pkg/mod/golang.org/x/xerrors@v0.0.0-20200804184101-5ec99f83aff1\n"}

[Info - 1:23:52 PM] 2021/03/09 13:23:52 gopathwalk: scanned /Users/hakim/go/pkg/mod/golang.org/x/sys@v0.0.0-20191204072324-ce4227a45e2e in 3.512187ms

[Trace - 13:23:52.447 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2021/03/09 13:23:52 Error statting ignored directory: stat /Users/hakim/go/pkg/mod/golang.org/x/xerrors@v0.0.0-20200804184101-5ec99f83aff1/cache: no such file or directory\n"}

[Info - 1:23:52 PM] 2021/03/09 13:23:52 gopathwalk: scanned /Users/hakim/go/pkg/mod/golang.org/x/time@v0.0.0-20210220033141-f8bda1e9f3ba in 611.797µs

[Info - 1:23:52 PM] 2021/03/09 13:23:52 gopathwalk: scanning /Users/hakim/go/pkg/mod/golang.org/x/xerrors@v0.0.0-20200804184101-5ec99f83aff1

[Info - 1:23:52 PM] 2021/03/09 13:23:52 Error statting ignored directory: stat /Users/hakim/go/pkg/mod/golang.org/x/xerrors@v0.0.0-20200804184101-5ec99f83aff1/cache: no such file or directory

[Trace - 13:23:52.447 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2021/03/09 13:23:52 gopathwalk: scanned /Users/hakim/go/pkg/mod/golang.org/x/xerrors@v0.0.0-20200804184101-5ec99f83aff1 in 530.005µs\n"}

[Trace - 13:23:52.447 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2021/03/09 13:23:52 Error statting ignored directory: stat /Users/hakim/go/pkg/mod/gopkg.in/yaml.v3@v3.0.0-20200313102051-9f266ea9e77c/cache: no such file or directory\n"}

[Info - 1:23:52 PM] 2021/03/09 13:23:52 gopathwalk: scanned /Users/hakim/go/pkg/mod/golang.org/x/xerrors@v0.0.0-20200804184101-5ec99f83aff1 in 530.005µs

[Trace - 13:23:52.447 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2021/03/09 13:23:52 gopathwalk: scanning /Users/hakim/go/pkg/mod/gopkg.in/yaml.v3@v3.0.0-20200313102051-9f266ea9e77c\n"}

[Info - 1:23:52 PM] 2021/03/09 13:23:52 Error statting ignored directory: stat /Users/hakim/go/pkg/mod/gopkg.in/yaml.v3@v3.0.0-20200313102051-9f266ea9e77c/cache: no such file or directory

[Info - 1:23:52 PM] 2021/03/09 13:23:52 gopathwalk: scanning /Users/hakim/go/pkg/mod/gopkg.in/yaml.v3@v3.0.0-20200313102051-9f266ea9e77c

[Trace - 13:23:52.447 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2021/03/09 13:23:52 gopathwalk: scanned /Users/hakim/go/pkg/mod/gopkg.in/yaml.v3@v3.0.0-20200313102051-9f266ea9e77c in 331.196µs\n"}

[Info - 1:23:52 PM] 2021/03/09 13:23:52 gopathwalk: scanned /Users/hakim/go/pkg/mod/gopkg.in/yaml.v3@v3.0.0-20200313102051-9f266ea9e77c in 331.196µs

[Trace - 13:23:52.448 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2021/03/09 13:23:52 gopathwalk: scanning /Users/hakim/go/pkg/mod/gopkg.in/check.v1@v0.0.0-20161208181325-20d25e280405\n"}

[Info - 1:23:52 PM] 2021/03/09 13:23:52 gopathwalk: scanning /Users/hakim/go/pkg/mod/gopkg.in/check.v1@v0.0.0-20161208181325-20d25e280405

[Trace - 13:23:52.448 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2021/03/09 13:23:52 Error statting ignored directory: stat /Users/hakim/go/pkg/mod/gopkg.in/check.v1@v0.0.0-20161208181325-20d25e280405/cache: no such file or directory\n"}

[Trace - 13:23:52.448 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2021/03/09 13:23:52 Directory added to ignore list: /Users/hakim/go/pkg/mod/cache\n"}

[Info - 1:23:52 PM] 2021/03/09 13:23:52 Error statting ignored directory: stat /Users/hakim/go/pkg/mod/gopkg.in/check.v1@v0.0.0-20161208181325-20d25e280405/cache: no such file or directory

[Trace - 13:23:52.448 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2021/03/09 13:23:52 gopathwalk: scanned /Users/hakim/go/pkg/mod/gopkg.in/check.v1@v0.0.0-20161208181325-20d25e280405 in 537.909µs\n"}

[Info - 1:23:52 PM] 2021/03/09 13:23:52 Directory added to ignore list: /Users/hakim/go/pkg/mod/cache

[Trace - 13:23:52.448 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2021/03/09 13:23:52 gopathwalk: scanning /Users/hakim/go/pkg/mod\n"}

[Info - 1:23:52 PM] 2021/03/09 13:23:52 gopathwalk: scanned /Users/hakim/go/pkg/mod/gopkg.in/check.v1@v0.0.0-20161208181325-20d25e280405 in 537.909µs

[Info - 1:23:52 PM] 2021/03/09 13:23:52 gopathwalk: scanning /Users/hakim/go/pkg/mod

[Trace - 13:23:52.494 PM] Received response 'textDocument/completion - (14)' in 82ms.
Result: {"isIncomplete":true,"items":[{"label":"log","kind":9,"detail":""log"","preselect":true,"sortText":"00000","filterText":"log","insertTextFormat":2,"textEdit":{"range":{"start":{"line":8,"character":1},"end":{"line":8,"character":3}},"newText":"log"},"additionalTextEdits":[{"range":{"start":{"line":3,"character":2},"end":{"line":3,"character":2}},"newText":"log"\n\n\t""}]},{"label":"log","kind":9,"detail":""gopkg.in/DataDog/dd-trace-go.v1/internal/log"","sortText":"00001","filterText":"log","insertTextFormat":2,"textEdit":{"range":{"start":{"line":8,"character":1},"end":{"line":8,"character":3}},"newText":"log"},"additionalTextEdits":[{"range":{"start":{"line":3,"character":34},"end":{"line":3,"character":34}},"newText":"internal/log"\n\t"gopkg.in/DataDog/dd-trace-go.v1/"}]},{"label":"log.Logger","kind":22,"detail":"struct{...} (from "log")","documentation":"A Logger represents an active logging object that generates lines of\noutput to an io.Writer. Each logging operation makes a single call to\nthe Writer's Write method. A Logger can be used simultaneously from\nmultiple goroutines; it guarantees to serialize access to the Writer.\n","sortText":"00002","filterText":"log.Logger","insertTextFormat":2,"textEdit":{"range":{"start":{"line":8,"character":1},"end":{"line":8,"character":3}},"newText":"log.Logger"},"additionalTextEdits":[{"range":{"start":{"line":3,"character":2},"end":{"line":3,"character":2}},"newText":"log"\n\n\t""}]},{"label":"log.Output","kind":3,"detail":"func(calldepth int, s string) error (from "log")","documentation":"Output writes the output for a logging event. The string s contains\nthe text to print after the prefix specified by the flags of the\nLogger. A newline is appended if the last character of s is not\nalready a newline. Calldepth is the count of the number of\nframes to skip when computing the file name and line number\nif Llongfile or Lshortfile is set; a value of 1 will print the details\nfor the caller of Output.\n","sortText":"00003","filterText":"log.Output","insertTextFormat":2,"textEdit":{"range":{"start":{"line":8,"character":1},"end":{"line":8,"character":3}},"newText":"log.Output(${1:})"},"additionalTextEdits":[{"range":{"start":{"line":3,"character":2},"end":{"line":3,"character":2}},"newText":"log"\n\n\t""}]},{"label":"loader","kind":9,"detail":""golang.org/x/tools/go/loader"","sortText":"00004","filterText":"loader","insertTextFormat":2,"textEdit":{"range":{"start":{"line":8,"character":1},"end":{"line":8,"character":3}},"newText":"loader"},"additionalTextEdits":[{"range":{"start":{"line":3,"character":4},"end":{"line":3,"character":4}},"newText":"lang.org/x/tools/go/loader"\n\t"go"}]},{"label":"loopclosure","kind":9,"detail":""golang.org/x/tools/go/analysis/passes/loopclosure"","sortText":"00005","filterText":"loopclosure","insertTextFormat":2,"textEdit":{"range":{"start":{"line":8,"character":1},"end":{"line":8,"character":3}},"newText":"loopclosure"},"additionalTextEdits":[{"range":{"start":{"line":3,"character":4},"end":{"line":3,"character":4}},"newText":"lang.org/x/tools/go/analysis/passes/loopclosure"\n\t"go"}]},{"label":"lostcancel","kind":9,"detail":""golang.org/x/tools/go/analysis/passes/lostcancel"","sortText":"00006","filterText":"lostcancel","insertTextFormat":2,"textEdit":{"range":{"start":{"line":8,"character":1},"end":{"line":8,"character":3}},"newText":"lostcancel"},"additionalTextEdits":[{"range":{"start":{"line":3,"character":4},"end":{"line":3,"character":4}},"newText":"lang.org/x/tools/go/analysis/passes/lostcancel"\n\t"go"}]},{"label":"log.Default","kind":3,"detail":"func() *log.Logger (from "log")","documentation":"Default returns the standard logger used by the package-level output functions.\n","sortText":"00007","filterText":"log.Default","insertTextFormat":2,"textEdit":{"range":{"start":{"line":8,"character":1},"end":{"line":8,"character":3}},"newText":"log.Default()"},"additionalTextEdits":[{"range":{"start":{"line":3,"character":2},"end":{"line":3,"character":2}},"newText":"log"\n\n\t""}]}]}

[Trace - 13:23:52.616 PM] Sending notification 'textDocument/didChange'.
Params: {"textDocument":{"uri":"file:///Users/hakim/tmp/folding/main.go","version":5},"contentChanges":[{"range":{"start":{"line":8,"character":3},"end":{"line":8,"character":3}},"rangeLength":0,"text":"g"}]}

[Trace - 13:23:52.616 PM] Sending request 'textDocument/completion - (15)'.
Params: {"textDocument":{"uri":"file:///Users/hakim/tmp/folding/main.go"},"position":{"line":8,"character":4},"context":{"triggerKind":3}}

[Trace - 13:23:52.624 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///Users/hakim/tmp/folding/main.go","version":5,"diagnostics":[{"range":{"start":{"line":8,"character":1},"end":{"line":8,"character":4}},"severity":1,"code":"UndeclaredName","codeDescription":{"href":"https://pkg.go.dev/golang.org/x/tools/internal/typesinternal#UndeclaredName"},"source":"compiler","message":"undeclared name: log"}]}

[Trace - 13:23:52.681 PM] Received response 'textDocument/completion - (15)' in 65ms.
Result: {"isIncomplete":true,"items":[{"label":"log","kind":9,"detail":""log"","preselect":true,"sortText":"00000","filterText":"log","insertTextFormat":2,"textEdit":{"range":{"start":{"line":8,"character":1},"end":{"line":8,"character":4}},"newText":"log"},"additionalTextEdits":[{"range":{"start":{"line":3,"character":2},"end":{"line":3,"character":2}},"newText":"log"\n\n\t""}]},{"label":"log.Logger","kind":22,"detail":"struct{...} (from "log")","documentation":"A Logger represents an active logging object that generates lines of\noutput to an io.Writer. Each logging operation makes a single call to\nthe Writer's Write method. A Logger can be used simultaneously from\nmultiple goroutines; it guarantees to serialize access to the Writer.\n","sortText":"00001","filterText":"log.Logger","insertTextFormat":2,"textEdit":{"range":{"start":{"line":8,"character":1},"end":{"line":8,"character":4}},"newText":"log.Logger"},"additionalTextEdits":[{"range":{"start":{"line":3,"character":2},"end":{"line":3,"character":2}},"newText":"log"\n\n\t""}]},{"label":"log","kind":9,"detail":""gopkg.in/DataDog/dd-trace-go.v1/internal/log"","sortText":"00002","filterText":"log","insertTextFormat":2,"textEdit":{"range":{"start":{"line":8,"character":1},"end":{"line":8,"character":4}},"newText":"log"},"additionalTextEdits":[{"range":{"start":{"line":3,"character":34},"end":{"line":3,"character":34}},"newText":"internal/log"\n\t"gopkg.in/DataDog/dd-trace-go.v1/"}]},{"label":"logging","kind":9,"detail":""google.golang.org/genproto/googleapis/iam/v1/logging"","sortText":"00003","filterText":"logging","insertTextFormat":2,"textEdit":{"range":{"start":{"line":8,"character":1},"end":{"line":8,"character":4}},"newText":"logging"},"additionalTextEdits":[{"range":{"start":{"line":3,"character":4},"end":{"line":3,"character":4}},"newText":"ogle.golang.org/genproto/googleapis/iam/v1/logging"\n\t"go"}]},{"label":"logging","kind":9,"detail":""google.golang.org/genproto/googleapis/cloud/bigquery/logging/v1"","sortText":"00004","filterText":"logging","insertTextFormat":2,"textEdit":{"range":{"start":{"line":8,"character":1},"end":{"line":8,"character":4}},"newText":"logging"},"additionalTextEdits":[{"range":{"start":{"line":3,"character":4},"end":{"line":3,"character":4}},"newText":"ogle.golang.org/genproto/googleapis/cloud/bigquery/logging/v1"\n\t"go"}]},{"label":"logging","kind":9,"detail":""google.golang.org/genproto/googleapis/logging/v2"","sortText":"00005","filterText":"logging","insertTextFormat":2,"textEdit":{"range":{"start":{"line":8,"character":1},"end":{"line":8,"character":4}},"newText":"logging"},"additionalTextEdits":[{"range":{"start":{"line":3,"character":4},"end":{"line":3,"character":4}},"newText":"ogle.golang.org/genproto/googleapis/logging/v2"\n\t"go"}]},{"label":"log.Default","kind":3,"detail":"func() *log.Logger (from "log")","documentation":"Default returns the standard logger used by the package-level output functions.\n","sortText":"00006","filterText":"log.Default","insertTextFormat":2,"textEdit":{"range":{"start":{"line":8,"character":1},"end":{"line":8,"character":4}},"newText":"log.Default()"},"additionalTextEdits":[{"range":{"start":{"line":3,"character":2},"end":{"line":3,"character":2}},"newText":"log"\n\n\t""}]},{"label":"log.Fatal","kind":3,"detail":"func(v ...interface{}) (from "log")","documentation":"Fatal is equivalent to Print() followed by a call to os.Exit(1).\n","sortText":"00007","filterText":"log.Fatal","insertTextFormat":2,"textEdit":{"range":{"start":{"line":8,"character":1},"end":{"line":8,"character":4}},"newText":"log.Fatal(${1:})"},"additionalTextEdits":[{"range":{"start":{"line":3,"character":2},"end":{"line":3,"character":2}},"newText":"log"\n\n\t""}]}]}

[Trace - 13:23:52.850 PM] Sending request 'textDocument/foldingRange - (16)'.
Params: {"textDocument":{"uri":"file:///Users/hakim/tmp/folding/main.go"}}

[Trace - 13:23:52.853 PM] Received response 'textDocument/foldingRange - (16)' in 3ms.
Result: [{"startLine":2,"startCharacter":8,"endLine":3,"endCharacter":43,"kind":"imports"},{"startLine":6,"startCharacter":13,"endLine":8,"endCharacter":4}]

[Trace - 13:23:52.886 PM] Sending notification 'textDocument/didChange'.
Params: {"textDocument":{"uri":"file:///Users/hakim/tmp/folding/main.go","version":6},"contentChanges":[{"range":{"start":{"line":8,"character":4},"end":{"line":8,"character":4}},"rangeLength":0,"text":"."}]}

[Trace - 13:23:52.886 PM] Sending request 'textDocument/completion - (17)'.
Params: {"textDocument":{"uri":"file:///Users/hakim/tmp/folding/main.go"},"position":{"line":8,"character":5},"context":{"triggerKind":2,"triggerCharacter":"."}}

[Trace - 13:23:52.907 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///Users/hakim/tmp/folding/main.go","version":6,"diagnostics":[{"range":{"start":{"line":8,"character":6},"end":{"line":8,"character":6}},"severity":1,"source":"syntax","message":"expected selector or type assertion, found '}'"}]}

[Trace - 13:23:53.052 PM] Sending request 'textDocument/documentLink - (18)'.
Params: {"textDocument":{"uri":"file:///Users/hakim/tmp/folding/main.go"}}

[Trace - 13:23:53.076 PM] Received response 'textDocument/completion - (17)' in 190ms.
Result: {"isIncomplete":true,"items":[{"label":"Default","kind":3,"detail":"func() *log.Logger (from "log")","documentation":"Default returns the standard logger used by the package-level output functions.\n","preselect":true,"sortText":"00000","filterText":"Default","insertTextFormat":2,"textEdit":{"range":{"start":{"line":8,"character":5},"end":{"line":8,"character":5}},"newText":"Default()"},"additionalTextEdits":[{"range":{"start":{"line":3,"character":2},"end":{"line":3,"character":2}},"newText":"log"\n\n\t""}]},{"label":"Fatal","kind":3,"detail":"func(v ...interface{}) (from "log")","documentation":"Fatal is equivalent to Print() followed by a call to os.Exit(1).\n","sortText":"00001","filterText":"Fatal","insertTextFormat":2,"textEdit":{"range":{"start":{"line":8,"character":5},"end":{"line":8,"character":5}},"newText":"Fatal(${1:})"},"additionalTextEdits":[{"range":{"start":{"line":3,"character":2},"end":{"line":3,"character":2}},"newText":"log"\n\n\t""}]},{"label":"Fatalf","kind":3,"detail":"func(format string, v ...interface{}) (from "log")","documentation":"Fatalf is equivalent to Printf() followed by a call to os.Exit(1).\n","sortText":"00002","filterText":"Fatalf","insertTextFormat":2,"textEdit":{"range":{"start":{"line":8,"character":5},"end":{"line":8,"character":5}},"newText":"Fatalf(${1:})"},"additionalTextEdits":[{"range":{"start":{"line":3,"character":2},"end":{"line":3,"character":2}},"newText":"log"\n\n\t""}]},{"label":"Fatalln","kind":3,"detail":"func(v ...interface{}) (from "log")","documentation":"Fatalln is equivalent to Println() followed by a call to os.Exit(1).\n","sortText":"00003","filterText":"Fatalln","insertTextFormat":2,"textEdit":{"range":{"start":{"line":8,"character":5},"end":{"line":8,"character":5}},"newText":"Fatalln(${1:})"},"additionalTextEdits":[{"range":{"start":{"line":3,"character":2},"end":{"line":3,"character":2}},"newText":"log"\n\n\t""}]},{"label":"Flags","kind":3,"detail":"func() int (from "log")","documentation":"Flags returns the output flags for the standard logger.\nThe flag bits are Ldate, Ltime, and so on.\n","sortText":"00004","filterText":"Flags","insertTextFormat":2,"textEdit":{"range":{"start":{"line":8,"character":5},"end":{"line":8,"character":5}},"newText":"Flags()"},"additionalTextEdits":[{"range":{"start":{"line":3,"character":2},"end":{"line":3,"character":2}},"newText":"log"\n\n\t""}]},{"label":"LUTC","kind":21,"detail":"int (from "log")","documentation":"These flags define which text to prefix to each log entry generated by the Logger.\nBits are or'ed together to control what's printed.\nWith the exception of the Lmsgprefix flag, there is no\ncontrol over the order they appear (the order listed here)\nor the format they present (as described in the comments).\nThe prefix is followed by a colon only when Llongfile or Lshortfile\nis specified.\nFor example, flags Ldate | Ltime (or LstdFlags) produce,\n\t2009/01/23 01:23:23 message\nwhile flags Ldate | Ltime | Lmicroseconds | Llongfile produce,\n\t2009/01/23 01:23:23.123123 /a/b/c/d.go:23: message\n","sortText":"00005","filterText":"LUTC","insertTextFormat":2,"textEdit":{"range":{"start":{"line":8,"character":5},"end":{"line":8,"character":5}},"newText":"LUTC"},"additionalTextEdits":[{"range":{"start":{"line":3,"character":2},"end":{"line":3,"character":2}},"newText":"log"\n\n\t""}]},{"label":"Ldate","kind":21,"detail":"int (from "log")","documentation":"These flags define which text to prefix to each log entry generated by the Logger.\nBits are or'ed together to control what's printed.\nWith the exception of the Lmsgprefix flag, there is no\ncontrol over the order they appear (the order listed here)\nor the format they present (as described in the comments).\nThe prefix is followed by a colon only when Llongfile or Lshortfile\nis specified.\nFor example, flags Ldate | Ltime (or LstdFlags) produce,\n\t2009/01/23 01:23:23 message\nwhile flags Ldate | Ltime | Lmicroseconds | Llongfile produce,\n\t2009/01/23 01:23:23.123123 /a/b/c/d.go:23: message\n","sortText":"00006","filterText":"Ldate","insertTextFormat":2,"textEdit":{"range":{"start":{"line":8,"character":5},"end":{"line":8,"character":5}},"newText":"Ldate"},"additionalTextEdits":[{"range":{"start":{"line":3,"character":2},"end":{"line":3,"character":2}},"newText":"log"\n\n\t""}]},{"label":"Llongfile","kind":21,"detail":"int (from "log")","documentation":"These flags define which text to prefix to each log entry generated by the Logger.\nBits are or'ed together to control what's printed.\nWith the exception of the Lmsgprefix flag, there is no\ncontrol over the order they appear (the order listed here)\nor the format they present (as described in the comments).\nThe prefix is followed by a colon only when Llongfile or Lshortfile\nis specified.\nFor example, flags Ldate | Ltime (or LstdFlags) produce,\n\t2009/01/23 01:23:23 message\nwhile flags Ldate | Ltime | Lmicroseconds | Llongfile produce,\n\t2009/01/23 01:23:23.123123 /a/b/c/d.go:23: message\n","sortText":"00007","filterText":"Llongfile","insertTextFormat":2,"textEdit":{"range":{"start":{"line":8,"character":5},"end":{"line":8,"character":5}},"newText":"Llongfile"},"additionalTextEdits":[{"range":{"start":{"line":3,"character":2},"end":{"line":3,"character":2}},"newText":"log"\n\n\t""}]},{"label":"Lmicroseconds","kind":21,"detail":"int (from "log")","documentation":"These flags define which text to prefix to each log entry generated by the Logger.\nBits are or'ed together to control what's printed.\nWith the exception of the Lmsgprefix flag, there is no\ncontrol over the order they appear (the order listed here)\nor the format they present (as described in the comments).\nThe prefix is followed by a colon only when Llongfile or Lshortfile\nis specified.\nFor example, flags Ldate | Ltime (or LstdFlags) produce,\n\t2009/01/23 01:23:23 message\nwhile flags Ldate | Ltime | Lmicroseconds | Llongfile produce,\n\t2009/01/23 01:23:23.123123 /a/b/c/d.go:23: message\n","sortText":"00008","filterText":"Lmicroseconds","insertTextFormat":2,"textEdit":{"range":{"start":{"line":8,"character":5},"end":{"line":8,"character":5}},"newText":"Lmicroseconds"},"additionalTextEdits":[{"range":{"start":{"line":3,"character":2},"end":{"line":3,"character":2}},"newText":"log"\n\n\t""}]},{"label":"Lmsgprefix","kind":21,"detail":"int (from "log")","documentation":"These flags define which text to prefix to each log entry generated by the Logger.\nBits are or'ed together to control what's printed.\nWith the exception of the Lmsgprefix flag, there is no\ncontrol over the order they appear (the order listed here)\nor the format they present (as described in the comments).\nThe prefix is followed by a colon only when Llongfile or Lshortfile\nis specified.\nFor example, flags Ldate | Ltime (or LstdFlags) produce,\n\t2009/01/23 01:23:23 message\nwhile flags Ldate | Ltime | Lmicroseconds | Llongfile produce,\n\t2009/01/23 01:23:23.123123 /a/b/c/d.go:23: message\n","sortText":"00009","filterText":"Lmsgprefix","insertTextFormat":2,"textEdit":{"range":{"start":{"line":8,"character":5},"end":{"line":8,"character":5}},"newText":"Lmsgprefix"},"additionalTextEdits":[{"range":{"start":{"line":3,"character":2},"end":{"line":3,"character":2}},"newText":"log"\n\n\t""}]},{"label":"Logger","kind":22,"detail":"struct{...} (from "log")","documentation":"A Logger represents an active logging object that generates lines of\noutput to an io.Writer. Each logging operation makes a single call to\nthe Writer's Write method. A Logger can be used simultaneously from\nmultiple goroutines; it guarantees to serialize access to the Writer.\n","sortText":"00010","filterText":"Logger","insertTextFormat":2,"textEdit":{"range":{"start":{"line":8,"character":5},"end":{"line":8,"character":5}},"newText":"Logger"},"additionalTextEdits":[{"range":{"start":{"line":3,"character":2},"end":{"line":3,"character":2}},"newText":"log"\n\n\t""}]},{"label":"Lshortfile","kind":21,"detail":"int (from "log")","documentation":"These flags define which text to prefix to each log entry generated by the Logger.\nBits are or'ed together to control what's printed.\nWith the exception of the Lmsgprefix flag, there is no\ncontrol over the order they appear (the order listed here)\nor the format they present (as described in the comments).\nThe prefix is followed by a colon only when Llongfile or Lshortfile\nis specified.\nFor example, flags Ldate | Ltime (or LstdFlags) produce,\n\t2009/01/23 01:23:23 message\nwhile flags Ldate | Ltime | Lmicroseconds | Llongfile produce,\n\t2009/01/23 01:23:23.123123 /a/b/c/d.go:23: message\n","sortText":"00011","filterText":"Lshortfile","insertTextFormat":2,"textEdit":{"range":{"start":{"line":8,"character":5},"end":{"line":8,"character":5}},"newText":"Lshortfile"},"additionalTextEdits":[{"range":{"start":{"line":3,"character":2},"end":{"line":3,"character":2}},"newText":"log"\n\n\t""}]},{"label":"LstdFlags","kind":21,"detail":"int (from "log")","documentation":"These flags define which text to prefix to each log entry generated by the Logger.\nBits are or'ed together to control what's printed.\nWith the exception of the Lmsgprefix flag, there is no\ncontrol over the order they appear (the order listed here)\nor the format they present (as described in the comments).\nThe prefix is followed by a colon only when Llongfile or Lshortfile\nis specified.\nFor example, flags Ldate | Ltime (or LstdFlags) produce,\n\t2009/01/23 01:23:23 message\nwhile flags Ldate | Ltime | Lmicroseconds | Llongfile produce,\n\t2009/01/23 01:23:23.123123 /a/b/c/d.go:23: message\n","sortText":"00012","filterText":"LstdFlags","insertTextFormat":2,"textEdit":{"range":{"start":{"line":8,"character":5},"end":{"line":8,"character":5}},"newText":"LstdFlags"},"additionalTextEdits":[{"range":{"start":{"line":3,"character":2},"end":{"line":3,"character":2}},"newText":"log"\n\n\t""}]},{"label":"Ltime","kind":21,"detail":"int (from "log")","documentation":"These flags define which text to prefix to each log entry generated by the Logger.\nBits are or'ed together to control what's printed.\nWith the exception of the Lmsgprefix flag, there is no\ncontrol over the order they appear (the order listed here)\nor the format they present (as described in the comments).\nThe prefix is followed by a colon only when Llongfile or Lshortfile\nis specified.\nFor example, flags Ldate | Ltime (or LstdFlags) produce,\n\t2009/01/23 01:23:23 message\nwhile flags Ldate | Ltime | Lmicroseconds | Llongfile produce,\n\t2009/01/23 01:23:23.123123 /a/b/c/d.go:23: message\n","sortText":"00013","filterText":"Ltime","insertTextFormat":2,"textEdit":{"range":{"start":{"line":8,"character":5},"end":{"line":8,"character":5}},"newText":"Ltime"},"additionalTextEdits":[{"range":{"start":{"line":3,"character":2},"end":{"line":3,"character":2}},"newText":"log"\n\n\t""}]},{"label":"New","kind":3,"detail":"func(out io.Writer, prefix string, flag int) *log.Logger (from "log")","documentation":"New creates a new Logger. The out variable sets the\ndestination to which log data will be written.\nThe prefix appears at the beginning of each generated log line, or\nafter the log header if the Lmsgprefix flag is provided.\nThe flag argument defines the logging properties.\n","sortText":"00014","filterText":"New","insertTextFormat":2,"textEdit":{"range":{"start":{"line":8,"character":5},"end":{"line":8,"character":5}},"newText":"New(${1:})"},"additionalTextEdits":[{"range":{"start":{"line":3,"character":2},"end":{"line":3,"character":2}},"newText":"log"\n\n\t""}]},{"label":"Output","kind":3,"detail":"func(calldepth int, s string) error (from "log")","documentation":"Output writes the output for a logging event. The string s contains\nthe text to print after the prefix specified by the flags of the\nLogger. A newline is appended if the last character of s is not\nalready a newline. Calldepth is the count of the number of\nframes to skip when computing the file name and line number\nif Llongfile or Lshortfile is set; a value of 1 will print the details\nfor the caller of Output.\n","sortText":"00015","filterText":"Output","insertTextFormat":2,"textEdit":{"range":{"start":{"line":8,"character":5},"end":{"line":8,"character":5}},"newText":"Output(${1:})"},"additionalTextEdits":[{"range":{"start":{"line":3,"character":2},"end":{"line":3,"character":2}},"newText":"log"\n\n\t""}]},{"label":"Panic","kind":3,"detail":"func(v ...interface{}) (from "log")","documentation":"Panic is equivalent to Print() followed by a call to panic().\n","sortText":"00016","filterText":"Panic","insertTextFormat":2,"textEdit":{"range":{"start":{"line":8,"character":5},"end":{"line":8,"character":5}},"newText":"Panic(${1:})"},"additionalTextEdits":[{"range":{"start":{"line":3,"character":2},"end":{"line":3,"character":2}},"newText":"log"\n\n\t""}]},{"label":"Panicf","kind":3,"detail":"func(format string, v ...interface{}) (from "log")","documentation":"Panicf is equivalent to Printf() followed by a call to panic().\n","sortText":"00017","filterText":"Panicf","insertTextFormat":2,"textEdit":{"range":{"start":{"line":8,"character":5},"end":{"line":8,"character":5}},"newText":"Panicf(${1:})"},"additionalTextEdits":[{"range":{"start":{"line":3,"character":2},"end":{"line":3,"character":2}},"newText":"log"\n\n\t""}]},{"label":"Panicln","kind":3,"detail":"func(v ...interface{}) (from "log")","documentation":"Panicln is equivalent to Println() followed by a call to panic().\n","sortText":"00018","filterText":"Panicln","insertTextFormat":2,"textEdit":{"range":{"start":{"line":8,"character":5},"end":{"line":8,"character":5}},"newText":"Panicln(${1:})"},"additionalTextEdits":[{"range":{"start":{"line":3,"character":2},"end":{"line":3,"character":2}},"newText":"log"\n\n\t""}]},{"label":"Prefix","kind":3,"detail":"func() string (from "log")","documentation":"Prefix returns the output prefix for the standard logger.\n","sortText":"00019","filterText":"Prefix","insertTextFormat":2,"textEdit":{"range":{"start":{"line":8,"character":5},"end":{"line":8,"character":5}},"newText":"Prefix()"},"additionalTextEdits":[{"range":{"start":{"line":3,"character":2},"end":{"line":3,"character":2}},"newText":"log"\n\n\t""}]},{"label":"Print","kind":3,"detail":"func(v ...interface{}) (from "log")","documentation":"Print calls Output to print to the standard logger.\nArguments are handled in the manner of fmt.Print.\n","sortText":"00020","filterText":"Print","insertTextFormat":2,"textEdit":{"range":{"start":{"line":8,"character":5},"end":{"line":8,"character":5}},"newText":"Print(${1:})"},"additionalTextEdits":[{"range":{"start":{"line":3,"character":2},"end":{"line":3,"character":2}},"newText":"log"\n\n\t""}]},{"label":"Printf","kind":3,"detail":"func(format string, v ...interface{}) (from "log")","documentation":"Printf calls Output to print to the standard logger.\nArguments are handled in the manner of fmt.Printf.\n","sortText":"00021","filterText":"Printf","insertTextFormat":2,"textEdit":{"range":{"start":{"line":8,"character":5},"end":{"line":8,"character":5}},"newText":"Printf(${1:})"},"additionalTextEdits":[{"range":{"start":{"line":3,"character":2},"end":{"line":3,"character":2}},"newText":"log"\n\n\t""}]},{"label":"Println","kind":3,"detail":"func(v ...interface{}) (from "log")","documentation":"Println calls Output to print to the standard logger.\nArguments are handled in the manner of fmt.Println.\n","sortText":"00022","filterText":"Println","insertTextFormat":2,"textEdit":{"range":{"start":{"line":8,"character":5},"end":{"line":8,"character":5}},"newText":"Println(${1:})"},"additionalTextEdits":[{"range":{"start":{"line":3,"character":2},"end":{"line":3,"character":2}},"newText":"log"\n\n\t""}]},{"label":"SetFlags","kind":3,"detail":"func(flag int) (from "log")","documentation":"SetFlags sets the output flags for the standard logger.\nThe flag bits are Ldate, Ltime, and so on.\n","sortText":"00023","filterText":"SetFlags","insertTextFormat":2,"textEdit":{"range":{"start":{"line":8,"character":5},"end":{"line":8,"character":5}},"newText":"SetFlags(${1:})"},"additionalTextEdits":[{"range":{"start":{"line":3,"character":2},"end":{"line":3,"character":2}},"newText":"log"\n\n\t""}]},{"label":"SetOutput","kind":3,"detail":"func(w io.Writer) (from "log")","documentation":"SetOutput sets the output destination for the standard logger.\n","sortText":"00024","filterText":"SetOutput","insertTextFormat":2,"textEdit":{"range":{"start":{"line":8,"character":5},"end":{"line":8,"character":5}},"newText":"SetOutput(${1:})"},"additionalTextEdits":[{"range":{"start":{"line":3,"character":2},"end":{"line":3,"character":2}},"newText":"log"\n\n\t""}]},{"label":"SetPrefix","kind":3,"detail":"func(prefix string) (from "log")","documentation":"SetPrefix sets the output prefix for the standard logger.\n","sortText":"00025","filterText":"SetPrefix","insertTextFormat":2,"textEdit":{"range":{"start":{"line":8,"character":5},"end":{"line":8,"character":5}},"newText":"SetPrefix(${1:})"},"additionalTextEdits":[{"range":{"start":{"line":3,"character":2},"end":{"line":3,"character":2}},"newText":"log"\n\n\t""}]},{"label":"Writer","kind":3,"detail":"func() io.Writer (from "log")","documentation":"Writer returns the output destination for the standard logger.\n","sortText":"00026","filterText":"Writer","insertTextFormat":2,"textEdit":{"range":{"start":{"line":8,"character":5},"end":{"line":8,"character":5}},"newText":"Writer()"},"additionalTextEdits":[{"range":{"start":{"line":3,"character":2},"end":{"line":3,"character":2}},"newText":"log"\n\n\t""}]},{"label":"Default().Fatal","kind":2,"detail":"func(v ...interface{}) (from "log")","documentation":"Fatal is equivalent to l.Print() followed by a call to os.Exit(1).\n","sortText":"00027","filterText":"Default().Fatal","insertTextFormat":2,"textEdit":{"range":{"start":{"line":8,"character":5},"end":{"line":8,"character":5}},"newText":"Default().Fatal(${1:})"},"additionalTextEdits":[{"range":{"start":{"line":3,"character":2},"end":{"line":3,"character":2}},"newText":"log"\n\n\t""}]},{"label":"Default().Fatalf","kind":2,"detail":"func(format string, v ...interface{}) (from "log")","documentation":"Fatalf is equivalent to l.Printf() followed by a call to os.Exit(1).\n","sortText":"00028","filterText":"Default().Fatalf","insertTextFormat":2,"textEdit":{"range":{"start":{"line":8,"character":5},"end":{"line":8,"character":5}},"newText":"Default().Fatalf(${1:})"},"additionalTextEdits":[{"range":{"start":{"line":3,"character":2},"end":{"line":3,"character":2}},"newText":"log"\n\n\t""}]},{"label":"Default().Fatalln","kind":2,"detail":"func(v ...interface{}) (from "log")","documentation":"Fatalln is equivalent to l.Println() followed by a call to os.Exit(1).\n","sortText":"00029","filterText":"Default().Fatalln","insertTextFormat":2,"textEdit":{"range":{"start":{"line":8,"character":5},"end":{"line":8,"character":5}},"newText":"Default().Fatalln(${1:})"},"additionalTextEdits":[{"range":{"start":{"line":3,"character":2},"end":{"line":3,"character":2}},"newText":"log"\n\n\t""}]},{"label":"Debug","kind":3,"detail":"func(fmt string, a ...interface{}) (from "gopkg.in/DataDog/dd-trace-go.v1/internal/log")","documentation":"Debug prints the given message if the level is LevelDebug.\n","sortText":"00030","filterText":"Debug","insertTextFormat":2,"textEdit":{"range":{"start":{"line":8,"character":5},"end":{"line":8,"character":5}},"newText":"Debug(${1:})"},"additionalTextEdits":[{"range":{"start":{"line":3,"character":34},"end":{"line":3,"character":34}},"newText":"internal/log"\n\t"gopkg.in/DataDog/dd-trace-go.v1/"}]},{"label":"Error","kind":3,"detail":"func(format string, a ...interface{}) (from "gopkg.in/DataDog/dd-trace-go.v1/internal/log")","documentation":"Error reports an error. Errors get aggregated and logged periodically. The\ndefault is once per minute or once every DD_LOGGING_RATE number of seconds.\n","sortText":"00031","filterText":"Error","insertTextFormat":2,"textEdit":{"range":{"start":{"line":8,"character":5},"end":{"line":8,"character":5}},"newText":"Error(${1:})"},"additionalTextEdits":[{"range":{"start":{"line":3,"character":34},"end":{"line":3,"character":34}},"newText":"internal/log"\n\t"gopkg.in/DataDog/dd-trace-go.v1/"}]},{"label":"Flush","kind":3,"detail":"func() (from "gopkg.in/DataDog/dd-trace-go.v1/internal/log")","documentation":"Flush flushes and resets all aggregated errors to the logger.\n","sortText":"00032","filterText":"Flush","insertTextFormat":2,"textEdit":{"range":{"start":{"line":8,"character":5},"end":{"line":8,"character":5}},"newText":"Flush()"},"additionalTextEdits":[{"range":{"start":{"line":3,"character":34},"end":{"line":3,"character":34}},"newText":"internal/log"\n\t"gopkg.in/DataDog/dd-trace-go.v1/"}]},{"label":"Info","kind":3,"detail":"func(fmt string, a ...interface{}) (from "gopkg.in/DataDog/dd-trace-go.v1/internal/log")","documentation":"Info prints an informational message.\n","sortText":"00033","filterText":"Info","insertTextFormat":2,"textEdit":{"range":{"start":{"line":8,"character":5},"end":{"line":8,"character":5}},"newText":"Info(${1:})"},"additionalTextEdits":[{"range":{"start":{"line":3,"character":34},"end":{"line":3,"character":34}},"newText":"internal/log"\n\t"gopkg.in/DataDog/dd-trace-go.v1/"}]},{"label":"Level","kind":7,"detail":"int (from "gopkg.in/DataDog/dd-trace-go.v1/internal/log")","documentation":"Level specifies the logging level that the log package prints at.\n","sortText":"00034","filterText":"Level","insertTextFormat":2,"textEdit":{"range":{"start":{"line":8,"character":5},"end":{"line":8,"character":5}},"newText":"Level"},"additionalTextEdits":[{"range":{"start":{"line":3,"character":34},"end":{"line":3,"character":34}},"newText":"internal/log"\n\t"gopkg.in/DataDog/dd-trace-go.v1/"}]},{"label":"LevelDebug","kind":21,"detail":"log.Level (from "gopkg.in/DataDog/dd-trace-go.v1/internal/log")","documentation":"LevelDebug represents debug level messages.\n","sortText":"00035","filterText":"LevelDebug","insertTextFormat":2,"textEdit":{"range":{"start":{"line":8,"character":5},"end":{"line":8,"character":5}},"newText":"LevelDebug"},"additionalTextEdits":[{"range":{"start":{"line":3,"character":34},"end":{"line":3,"character":34}},"newText":"internal/log"\n\t"gopkg.in/DataDog/dd-trace-go.v1/"}]},{"label":"LevelWarn","kind":21,"detail":"log.Level (from "gopkg.in/DataDog/dd-trace-go.v1/internal/log")","documentation":"LevelWarn represents warning and errors.\n","sortText":"00036","filterText":"LevelWarn","insertTextFormat":2,"textEdit":{"range":{"start":{"line":8,"character":5},"end":{"line":8,"character":5}},"newText":"LevelWarn"},"additionalTextEdits":[{"range":{"start":{"line":3,"character":34},"end":{"line":3,"character":34}},"newText":"internal/log"\n\t"gopkg.in/DataDog/dd-trace-go.v1/"}]},{"label":"SetLevel","kind":3,"detail":"func(lvl log.Level) (from "gopkg.in/DataDog/dd-trace-go.v1/internal/log")","documentation":"SetLevel sets the given lvl for logging.\n","sortText":"00037","filterText":"SetLevel","insertTextFormat":2,"textEdit":{"range":{"start":{"line":8,"character":5},"end":{"line":8,"character":5}},"newText":"SetLevel(${1:})"},"additionalTextEdits":[{"range":{"start":{"line":3,"character":34},"end":{"line":3,"character":34}},"newText":"internal/log"\n\t"gopkg.in/DataDog/dd-trace-go.v1/"}]},{"label":"UseLogger","kind":3,"detail":"func(l ddtrace.Logger) (from "gopkg.in/DataDog/dd-trace-go.v1/internal/log")","documentation":"UseLogger sets l as the active logger.\n","sortText":"00038","filterText":"UseLogger","insertTextFormat":2,"textEdit":{"range":{"start":{"line":8,"character":5},"end":{"line":8,"character":5}},"newText":"UseLogger(${1:})"},"additionalTextEdits":[{"range":{"start":{"line":3,"character":34},"end":{"line":3,"character":34}},"newText":"internal/log"\n\t"gopkg.in/DataDog/dd-trace-go.v1/"}]},{"label":"Warn","kind":3,"detail":"func(fmt string, a ...interface{}) (from "gopkg.in/DataDog/dd-trace-go.v1/internal/log")","documentation":"Warn prints a warning message.\n","sortText":"00039","filterText":"Warn","insertTextFormat":2,"textEdit":{"range":{"start":{"line":8,"character":5},"end":{"line":8,"character":5}},"newText":"Warn(${1:})"},"additionalTextEdits":[{"range":{"start":{"line":3,"character":34},"end":{"line":3,"character":34}},"newText":"internal/log"\n\t"gopkg.in/DataDog/dd-trace-go.v1/"}]}]}

[Trace - 13:23:53.083 PM] Sending request 'textDocument/foldingRange - (19)'.
Params: {"textDocument":{"uri":"file:///Users/hakim/tmp/folding/main.go"}}

[Trace - 13:23:53.085 PM] Received response 'textDocument/documentLink - (18)' in 32ms.
Result: [{"range":{"start":{"line":3,"character":2},"end":{"line":3,"character":42}},"target":"https://pkg.go.dev/gopkg.in/DataDog/dd-trace-go.v1@v1.29.0/profiler?utm_source=gopls"}]

[Trace - 13:23:53.085 PM] Received response 'textDocument/foldingRange - (19)' in 1ms.
Result: [{"startLine":2,"startCharacter":8,"endLine":3,"endCharacter":43,"kind":"imports"},{"startLine":6,"startCharacter":13,"endLine":8,"endCharacter":6}]

[Trace - 13:23:53.165 PM] Sending request 'textDocument/codeAction - (20)'.
Params: {"textDocument":{"uri":"file:///Users/hakim/tmp/folding/main.go"},"range":{"start":{"line":8,"character":5},"end":{"line":8,"character":5}},"context":{"diagnostics":[]}}

[Trace - 13:23:53.174 PM] Received response 'textDocument/codeAction - (20)' in 8ms.
Result: null

[Trace - 13:23:53.174 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2021/03/09 13:23:53 fixImports(filename="/Users/hakim/tmp/folding/main.go"), abs="/Users/hakim/tmp/folding/main.go", srcDir="/Users/hakim/tmp/folding" ...\n"}

[Info - 1:23:53 PM] 2021/03/09 13:23:53 fixImports(filename="/Users/hakim/tmp/folding/main.go"), abs="/Users/hakim/tmp/folding/main.go", srcDir="/Users/hakim/tmp/folding" ...

[Trace - 13:23:53.307 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2021/03/09 13:23:53 gopathwalk: scanned /Users/hakim/go/pkg/mod in 859.265166ms\n"}

[Info - 1:23:53 PM] 2021/03/09 13:23:53 gopathwalk: scanned /Users/hakim/go/pkg/mod in 859.265166ms

[Trace - 13:23:54.015 PM] Sending request 'textDocument/codeLens - (21)'.
Params: {"textDocument":{"uri":"file:///Users/hakim/tmp/folding/main.go"}}

[Trace - 13:23:54.015 PM] Received response 'textDocument/codeLens - (21)' in 0ms.
Result: null

[Trace - 13:23:54.092 PM] Sending request 'textDocument/documentSymbol - (22)'.
Params: {"textDocument":{"uri":"file:///Users/hakim/tmp/folding/main.go"}}

[Trace - 13:23:54.092 PM] Received response 'textDocument/documentSymbol - (22)' in 0ms.
Result: [{"name":"main","detail":"()","kind":12,"range":{"start":{"line":6,"character":0},"end":{"line":9,"character":1}},"selectionRange":{"start":{"line":6,"character":5},"end":{"line":6,"character":9}}}]

[Trace - 13:23:54.563 PM] Sending notification 'textDocument/didChange'.
Params: {"textDocument":{"uri":"file:///Users/hakim/tmp/folding/main.go","version":7},"contentChanges":[{"range":{"start":{"line":8,"character":5},"end":{"line":8,"character":5}},"rangeLength":0,"text":"S"}]}

[Trace - 13:23:54.564 PM] Sending request 'textDocument/completion - (23)'.
Params: {"textDocument":{"uri":"file:///Users/hakim/tmp/folding/main.go"},"position":{"line":8,"character":6},"context":{"triggerKind":3}}

[Trace - 13:23:54.570 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {"uri":"file:///Users/hakim/tmp/folding/main.go","version":7,"diagnostics":[{"range":{"start":{"line":8,"character":1},"end":{"line":8,"character":4}},"severity":1,"code":"UndeclaredName","codeDescription":{"href":"https://pkg.go.dev/golang.org/x/tools/internal/typesinternal#UndeclaredName"},"source":"compiler","message":"undeclared name: log"}]}

[Trace - 13:23:54.601 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2021/03/09 13:23:54 loaded exports in dir /Users/hakim/go/pkg/mod/github.com/emicklei/go-restful@v2.15.0+incompatible/log (package log): Logger, Print, Printf, SetLogger, StdLogger\n"}

[Info - 1:23:54 PM] 2021/03/09 13:23:54 loaded exports in dir /Users/hakim/go/pkg/mod/github.com/emicklei/go-restful@v2.15.0+incompatible/log (package log): Logger, Print, Printf, SetLogger, StdLogger

[Trace - 13:23:54.640 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2021/03/09 13:23:54 loaded exports in dir /Users/hakim/go/pkg/mod/github.com/opentracing/opentracing-go@v1.2.0/log (package log): Bool, Encoder, Error, Event, Field, Float32, Float64, Int, Int32, Int64, InterleavedKVToFields, Lazy, LazyLogger, Message, Noop, Object, String, Uint32, Uint64\n"}

[Info - 1:23:54 PM] 2021/03/09 13:23:54 loaded exports in dir /Users/hakim/go/pkg/mod/github.com/opentracing/opentracing-go@v1.2.0/log (package log): Bool, Encoder, Error, Event, Field, Float32, Float64, Int, Int32, Int64, InterleavedKVToFields, Lazy, LazyLogger, Message, Noop, Object, String, Uint32, Uint64

[Trace - 13:23:54.670 PM] Received response 'textDocument/completion - (23)' in 106ms.
Result: {"isIncomplete":true,"items":[{"label":"SetFlags","kind":3,"detail":"func(flag int) (from "log")","documentation":"SetFlags sets the output flags for the standard logger.\nThe flag bits are Ldate, Ltime, and so on.\n","preselect":true,"sortText":"00000","filterText":"SetFlags","insertTextFormat":2,"textEdit":{"range":{"start":{"line":8,"character":5},"end":{"line":8,"character":6}},"newText":"SetFlags(${1:})"},"additionalTextEdits":[{"range":{"start":{"line":3,"character":2},"end":{"line":3,"character":2}},"newText":"log"\n\n\t""}]},{"label":"SetOutput","kind":3,"detail":"func(w io.Writer) (from "log")","documentation":"SetOutput sets the output destination for the standard logger.\n","sortText":"00001","filterText":"SetOutput","insertTextFormat":2,"textEdit":{"range":{"start":{"line":8,"character":5},"end":{"line":8,"character":6}},"newText":"SetOutput(${1:})"},"additionalTextEdits":[{"range":{"start":{"line":3,"character":2},"end":{"line":3,"character":2}},"newText":"log"\n\n\t""}]},{"label":"SetPrefix","kind":3,"detail":"func(prefix string) (from "log")","documentation":"SetPrefix sets the output prefix for the standard logger.\n","sortText":"00002","filterText":"SetPrefix","insertTextFormat":2,"textEdit":{"range":{"start":{"line":8,"character":5},"end":{"line":8,"character":6}},"newText":"SetPrefix(${1:})"},"additionalTextEdits":[{"range":{"start":{"line":3,"character":2},"end":{"line":3,"character":2}},"newText":"log"\n\n\t""}]},{"label":"SetLevel","kind":3,"detail":"func(lvl log.Level) (from "gopkg.in/DataDog/dd-trace-go.v1/internal/log")","documentation":"SetLevel sets the given lvl for logging.\n","sortText":"00003","filterText":"SetLevel","insertTextFormat":2,"textEdit":{"range":{"start":{"line":8,"character":5},"end":{"line":8,"character":6}},"newText":"SetLevel(${1:})"},"additionalTextEdits":[{"range":{"start":{"line":3,"character":34},"end":{"line":3,"character":34}},"newText":"internal/log"\n\t"gopkg.in/DataDog/dd-trace-go.v1/"}]},{"label":"String","kind":6,"detail":"(from "github.com/opentracing/opentracing-go/log")","sortText":"00004","filterText":"String","insertTextFormat":2,"textEdit":{"range":{"start":{"line":8,"character":5},"end":{"line":8,"character":6}},"newText":"String"},"additionalTextEdits":[{"range":{"start":{"line":3,"character":3},"end":{"line":3,"character":3}},"newText":"ithub.com/opentracing/opentracing-go/log"\n\t"g"}]},{"label":"SetLogger","kind":6,"detail":"(from "github.com/emicklei/go-restful/log")","sortText":"00005","filterText":"SetLogger","insertTextFormat":2,"textEdit":{"range":{"start":{"line":8,"character":5},"end":{"line":8,"character":6}},"newText":"SetLogger"},"additionalTextEdits":[{"range":{"start":{"line":3,"character":3},"end":{"line":3,"character":3}},"newText":"ithub.com/emicklei/go-restful/log"\n\t"g"}]},{"label":"StdLogger","kind":6,"detail":"(from "github.com/emicklei/go-restful/log")","sortText":"00006","filterText":"StdLogger","insertTextFormat":2,"textEdit":{"range":{"start":{"line":8,"character":5},"end":{"line":8,"character":6}},"newText":"StdLogger"},"additionalTextEdits":[{"range":{"start":{"line":3,"character":3},"end":{"line":3,"character":3}},"newText":"ithub.com/emicklei/go-restful/log"\n\t"g"}]},{"label":"Default().SetFlags","kind":2,"detail":"func(flag int) (from "log")","documentation":"SetFlags sets the output flags for the logger.\nThe flag bits are Ldate, Ltime, and so on.\n","sortText":"00007","filterText":"Default().SetFlags","insertTextFormat":2,"textEdit":{"range":{"start":{"line":8,"character":5},"end":{"line":8,"character":6}},"newText":"Default().SetFlags(${1:})"},"additionalTextEdits":[{"range":{"start":{"line":3,"character":2},"end":{"line":3,"character":2}},"newText":"log"\n\n\t""}]},{"label":"Default().SetOutput","kind":2,"detail":"func(w io.Writer) (from "log")","documentation":"SetOutput sets the output destination for the logger.\n","sortText":"00008","filterText":"Default().SetOutput","insertTextFormat":2,"textEdit":{"range":{"start":{"line":8,"character":5},"end":{"line":8,"character":6}},"newText":"Default().SetOutput(${1:})"},"additionalTextEdits":[{"range":{"start":{"line":3,"character":2},"end":{"line":3,"character":2}},"newText":"log"\n\n\t""}]},{"label":"Default().SetPrefix","kind":2,"detail":"func(prefix string) (from "log")","documentation":"SetPrefix sets the output prefix for the logger.\n","sortText":"00009","filterText":"Default().SetPrefix","insertTextFormat":2,"textEdit":{"range":{"start":{"line":8,"character":5},"end":{"line":8,"character":6}},"newText":"Default().SetPrefix(${1:})"},"additionalTextEdits":[{"range":{"start":{"line":3,"character":2},"end":{"line":3,"character":2}},"newText":"log"\n\n\t""}]}]}

[Trace - 13:23:54.759 PM] Sending request 'textDocument/foldingRange - (24)'.
Params: {"textDocument":{"uri":"file:///Users/hakim/tmp/folding/main.go"}}

[Trace - 13:23:54.760 PM] Received response 'textDocument/foldingRange - (24)' in 0ms.
Result: [{"startLine":2,"startCharacter":8,"endLine":3,"endCharacter":43,"kind":"imports"},{"startLine":6,"startCharacter":13,"endLine":8,"endCharacter":6}]

[Trace - 13:23:54.831 PM] Sending request 'textDocument/codeAction - (25)'.
Params: {"textDocument":{"uri":"file:///Users/hakim/tmp/folding/main.go"},"range":{"start":{"line":8,"character":6},"end":{"line":8,"character":6}},"context":{"diagnostics":[]}}

[Trace - 13:23:54.832 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2021/03/09 13:23:54 fixImports(filename="/Users/hakim/tmp/folding/main.go"), abs="/Users/hakim/tmp/folding/main.go", srcDir="/Users/hakim/tmp/folding" ...\n"}

[Info - 1:23:54 PM] 2021/03/09 13:23:54 fixImports(filename="/Users/hakim/tmp/folding/main.go"), abs="/Users/hakim/tmp/folding/main.go", srcDir="/Users/hakim/tmp/folding" ...

[Trace - 13:23:54.833 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2021/03/09 13:23:54 loading package names for 1 packages\n"}

[Info - 1:23:54 PM] 2021/03/09 13:23:54 loading package names for 1 packages

[Trace - 13:23:54.833 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2021/03/09 13:23:54 done loading package names for 1 packages\n"}

[Info - 1:23:54 PM] 2021/03/09 13:23:54 done loading package names for 1 packages

[Trace - 13:23:54.849 PM] Sending notification 'textDocument/didChange'.
Params: {"textDocument":{"uri":"file:///Users/hakim/tmp/folding/main.go","version":8},"contentChanges":[{"range":{"start":{"line":8,"character":6},"end":{"line":8,"character":6}},"rangeLength":0,"text":"e"}]}

[Trace - 13:23:54.850 PM] Sending notification '$/cancelRequest'.
Params: {"id":25}

[Trace - 13:23:54.850 PM] Sending request 'textDocument/completion - (26)'.
Params: {"textDocument":{"uri":"file:///Users/hakim/tmp/folding/main.go"},"position":{"line":8,"character":7},"context":{"triggerKind":3}}

[Trace - 13:23:54.883 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2021/03/09 13:23:54 gopathwalk: scanning /usr/local/go/src\n"}

[Info - 1:23:54 PM] 2021/03/09 13:23:54 gopathwalk: scanning /usr/local/go/src

[Trace - 13:23:54.941 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2021/03/09 13:23:54 gopathwalk: scanned /usr/local/go/src in 57.864516ms\n"}

[Trace - 13:23:54.941 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2021/03/09 13:23:54 loading exports in dir /Users/hakim/go/pkg/mod/github.com/opentracing/opentracing-go@v1.2.0/log (seeking package log)\n"}

[Info - 1:23:54 PM] 2021/03/09 13:23:54 gopathwalk: scanned /usr/local/go/src in 57.864516ms

[Trace - 13:23:54.941 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2021/03/09 13:23:54 log candidate 3/3: github.com/opentracing/opentracing-go/log in /Users/hakim/go/pkg/mod/github.com/opentracing/opentracing-go@v1.2.0/log\n"}

[Trace - 13:23:54.941 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2021/03/09 13:23:54 loading exports in dir /usr/local/go/src/log (seeking package log)\n"}

[Info - 1:23:54 PM] 2021/03/09 13:23:54 loading exports in dir /Users/hakim/go/pkg/mod/github.com/opentracing/opentracing-go@v1.2.0/log (seeking package log)

[Trace - 13:23:54.941 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2021/03/09 13:23:54 loading exports in dir /Users/hakim/go/pkg/mod/github.com/emicklei/go-restful@v2.15.0+incompatible/log (seeking package log)\n"}

[Trace - 13:23:54.941 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2021/03/09 13:23:54 log candidate 2/3: github.com/emicklei/go-restful/log in /Users/hakim/go/pkg/mod/github.com/emicklei/go-restful@v2.15.0+incompatible/log\n"}

[Trace - 13:23:54.941 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2021/03/09 13:23:54 log candidate 1/3: log in /usr/local/go/src/log\n"}

[Info - 1:23:54 PM] 2021/03/09 13:23:54 log candidate 3/3: github.com/opentracing/opentracing-go/log in /Users/hakim/go/pkg/mod/github.com/opentracing/opentracing-go@v1.2.0/log

[Info - 1:23:54 PM] 2021/03/09 13:23:54 loading exports in dir /usr/local/go/src/log (seeking package log)

[Info - 1:23:54 PM] 2021/03/09 13:23:54 loading exports in dir /Users/hakim/go/pkg/mod/github.com/emicklei/go-restful@v2.15.0+incompatible/log (seeking package log)

[Info - 1:23:54 PM] 2021/03/09 13:23:54 log candidate 2/3: github.com/emicklei/go-restful/log in /Users/hakim/go/pkg/mod/github.com/emicklei/go-restful@v2.15.0+incompatible/log

[Info - 1:23:54 PM] 2021/03/09 13:23:54 log candidate 1/3: log in /usr/local/go/src/log

[Error - Received] 13:23:54.942 PM golang/vscode-go#25 context canceled

[Error - 1:23:54 PM] Request textDocument/codeAction failed.
Message: context canceled
Code: 0
[Trace - 13:23:54.942 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2021/03/09 13:23:54 loaded exports in dir /usr/local/go/src/log (package log): Default, Fatal, Fatalf, Fatalln, Flags, LUTC, Ldate, Llongfile, Lmicroseconds, Lmsgprefix, Logger, Lshortfile, LstdFlags, Ltime, New, Output, Panic, Panicf, Panicln, Prefix, Print, Printf, Println, SetFlags, SetOutput, SetPrefix, Writer\n"}

[Info - 1:23:54 PM] 2021/03/09 13:23:54 loaded exports in dir /usr/local/go/src/log (package log): Default, Fatal, Fatalf, Fatalln, Flags, LUTC, Ldate, Llongfile, Lmicroseconds, Lmsgprefix, Logger, Lshortfile, LstdFlags, Ltime, New, Output, Panic, Panicf, Panicln, Prefix, Print, Printf, Println, SetFlags, SetOutput, SetPrefix, Writer

[Trace - 13:23:54.977 PM] Received response 'textDocument/completion - (26)' in 127ms.
Result: {"isIncomplete":true,"items":[{"label":"SetFlags","kind":3,"detail":"func(flag int) (from "log")","documentation":"SetFlags sets the output flags for the standard logger.\nThe flag bits are Ldate, Ltime, and so on.\n","preselect":true,"sortText":"00000","filterText":"SetFlags","insertTextFormat":2,"textEdit":{"range":{"start":{"line":8,"character":5},"end":{"line":8,"character":7}},"newText":"SetFlags(${1:})"},"additionalTextEdits":[{"range":{"start":{"line":3,"character":2},"end":{"line":3,"character":2}},"newText":"log"\n\n\t""}]},{"label":"SetOutput","kind":3,"detail":"func(w io.Writer) (from "log")","documentation":"SetOutput sets the output destination for the standard logger.\n","sortText":"00001","filterText":"SetOutput","insertTextFormat":2,"textEdit":{"range":{"start":{"line":8,"character":5},"end":{"line":8,"character":7}},"newText":"SetOutput(${1:})"},"additionalTextEdits":[{"range":{"start":{"line":3,"character":2},"end":{"line":3,"character":2}},"newText":"log"\n\n\t""}]},{"label":"SetPrefix","kind":3,"detail":"func(prefix string) (from "log")","documentation":"SetPrefix sets the output prefix for the standard logger.\n","sortText":"00002","filterText":"SetPrefix","insertTextFormat":2,"textEdit":{"range":{"start":{"line":8,"character":5},"end":{"line":8,"character":7}},"newText":"SetPrefix(${1:})"},"additionalTextEdits":[{"range":{"start":{"line":3,"character":2},"end":{"line":3,"character":2}},"newText":"log"\n\n\t""}]},{"label":"SetLevel","kind":3,"detail":"func(lvl log.Level) (from "gopkg.in/DataDog/dd-trace-go.v1/internal/log")","documentation":"SetLevel sets the given lvl for logging.\n","sortText":"00003","filterText":"SetLevel","insertTextFormat":2,"textEdit":{"range":{"start":{"line":8,"character":5},"end":{"line":8,"character":7}},"newText":"SetLevel(${1:})"},"additionalTextEdits":[{"range":{"start":{"line":3,"character":34},"end":{"line":3,"character":34}},"newText":"internal/log"\n\t"gopkg.in/DataDog/dd-trace-go.v1/"}]},{"label":"Default().SetFlags","kind":2,"detail":"func(flag int) (from "log")","documentation":"SetFlags sets the output flags for the logger.\nThe flag bits are Ldate, Ltime, and so on.\n","sortText":"00004","filterText":"Default().SetFlags","insertTextFormat":2,"textEdit":{"range":{"start":{"line":8,"character":5},"end":{"line":8,"character":7}},"newText":"Default().SetFlags(${1:})"},"additionalTextEdits":[{"range":{"start":{"line":3,"character":2},"end":{"line":3,"character":2}},"newText":"log"\n\n\t""}]},{"label":"Default().SetOutput","kind":2,"detail":"func(w io.Writer) (from "log")","documentation":"SetOutput sets the output destination for the logger.\n","sortText":"00005","filterText":"Default().SetOutput","insertTextFormat":2,"textEdit":{"range":{"start":{"line":8,"character":5},"end":{"line":8,"character":7}},"newText":"Default().SetOutput(${1:})"},"additionalTextEdits":[{"range":{"start":{"line":3,"character":2},"end":{"line":3,"character":2}},"newText":"log"\n\n\t""}]},{"label":"Default().SetPrefix","kind":2,"detail":"func(prefix string) (from "log")","documentation":"SetPrefix sets the output prefix for the logger.\n","sortText":"00006","filterText":"Default().SetPrefix","insertTextFormat":2,"textEdit":{"range":{"start":{"line":8,"character":5},"end":{"line":8,"character":7}},"newText":"Default().SetPrefix(${1:})"},"additionalTextEdits":[{"range":{"start":{"line":3,"character":2},"end":{"line":3,"character":2}},"newText":"log"\n\n\t""}]},{"label":"SetLogger","kind":6,"detail":"(from "github.com/emicklei/go-restful/log")","sortText":"00007","filterText":"SetLogger","insertTextFormat":2,"textEdit":{"range":{"start":{"line":8,"character":5},"end":{"line":8,"character":7}},"newText":"SetLogger"},"additionalTextEdits":[{"range":{"start":{"line":3,"character":3},"end":{"line":3,"character":3}},"newText":"ithub.com/emicklei/go-restful/log"\n\t"g"}]},{"label":"StdLogger","kind":6,"detail":"(from "github.com/emicklei/go-restful/log")","sortText":"00008","filterText":"StdLogger","insertTextFormat":2,"textEdit":{"range":{"start":{"line":8,"character":5},"end":{"line":8,"character":7}},"newText":"StdLogger"},"additionalTextEdits":[{"range":{"start":{"line":3,"character":3},"end":{"line":3,"character":3}},"newText":"ithub.com/emicklei/go-restful/log"\n\t"g"}]}]}

[Trace - 13:23:55.050 PM] Sending request 'textDocument/foldingRange - (27)'.
Params: {"textDocument":{"uri":"file:///Users/hakim/tmp/folding/main.go"}}

[Trace - 13:23:55.051 PM] Received response 'textDocument/foldingRange - (27)' in 0ms.
Result: [{"startLine":2,"startCharacter":8,"endLine":3,"endCharacter":43,"kind":"imports"},{"startLine":6,"startCharacter":13,"endLine":8,"endCharacter":7}]

[Trace - 13:23:55.099 PM] Sending request 'textDocument/codeAction - (28)'.
Params: {"textDocument":{"uri":"file:///Users/hakim/tmp/folding/main.go"},"range":{"start":{"line":8,"character":7},"end":{"line":8,"character":7}},"context":{"diagnostics":[]}}

[Trace - 13:23:55.100 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2021/03/09 13:23:55 fixImports(filename="/Users/hakim/tmp/folding/main.go"), abs="/Users/hakim/tmp/folding/main.go", srcDir="/Users/hakim/tmp/folding" ...\n"}

[Trace - 13:23:55.100 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2021/03/09 13:23:55 loading package names for 1 packages\n"}

[Info - 1:23:55 PM] 2021/03/09 13:23:55 fixImports(filename="/Users/hakim/tmp/folding/main.go"), abs="/Users/hakim/tmp/folding/main.go", srcDir="/Users/hakim/tmp/folding" ...

[Info - 1:23:55 PM] 2021/03/09 13:23:55 loading package names for 1 packages

[Trace - 13:23:55.101 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2021/03/09 13:23:55 done loading package names for 1 packages\n"}

[Info - 1:23:55 PM] 2021/03/09 13:23:55 done loading package names for 1 packages

[Trace - 13:23:55.112 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2021/03/09 13:23:55 log candidate 1/3: log in /usr/local/go/src/log\n"}

[Trace - 13:23:55.112 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2021/03/09 13:23:55 loading exports in dir /Users/hakim/go/pkg/mod/github.com/opentracing/opentracing-go@v1.2.0/log (seeking package log)\n"}

[Trace - 13:23:55.112 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2021/03/09 13:23:55 loading exports in dir /Users/hakim/go/pkg/mod/github.com/emicklei/go-restful@v2.15.0+incompatible/log (seeking package log)\n"}

[Info - 1:23:55 PM] 2021/03/09 13:23:55 log candidate 1/3: log in /usr/local/go/src/log

[Trace - 13:23:55.112 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2021/03/09 13:23:55 log candidate 3/3: github.com/opentracing/opentracing-go/log in /Users/hakim/go/pkg/mod/github.com/opentracing/opentracing-go@v1.2.0/log\n"}

[Trace - 13:23:55.112 PM] Received response 'textDocument/codeAction - (28)' in 13ms.
Result: null

[Trace - 13:23:55.112 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2021/03/09 13:23:55 log candidate 2/3: github.com/emicklei/go-restful/log in /Users/hakim/go/pkg/mod/github.com/emicklei/go-restful@v2.15.0+incompatible/log\n"}

[Trace - 13:23:55.112 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2021/03/09 13:23:55 loading exports in dir /usr/local/go/src/log (seeking package log)\n"}

[Info - 1:23:55 PM] 2021/03/09 13:23:55 loading exports in dir /Users/hakim/go/pkg/mod/github.com/opentracing/opentracing-go@v1.2.0/log (seeking package log)

[Info - 1:23:55 PM] 2021/03/09 13:23:55 loading exports in dir /Users/hakim/go/pkg/mod/github.com/emicklei/go-restful@v2.15.0+incompatible/log (seeking package log)

[Info - 1:23:55 PM] 2021/03/09 13:23:55 log candidate 3/3: github.com/opentracing/opentracing-go/log in /Users/hakim/go/pkg/mod/github.com/opentracing/opentracing-go@v1.2.0/log

[Info - 1:23:55 PM] 2021/03/09 13:23:55 log candidate 2/3: github.com/emicklei/go-restful/log in /Users/hakim/go/pkg/mod/github.com/emicklei/go-restful@v2.15.0+incompatible/log

[Info - 1:23:55 PM] 2021/03/09 13:23:55 loading exports in dir /usr/local/go/src/log (seeking package log)

[Trace - 13:23:55.121 PM] Sending notification 'textDocument/didChange'.
Params: {"textDocument":{"uri":"file:///Users/hakim/tmp/folding/main.go","version":9},"contentChanges":[{"range":{"start":{"line":8,"character":7},"end":{"line":8,"character":7}},"rangeLength":0,"text":"t"}]}

[Trace - 13:23:55.122 PM] Sending request 'textDocument/completion - (29)'.
Params: {"textDocument":{"uri":"file:///Users/hakim/tmp/folding/main.go"},"position":{"line":8,"character":8},"context":{"triggerKind":3}}

[Trace - 13:23:55.140 PM] Received response 'textDocument/completion - (29)' in 18ms.
Result: {"isIncomplete":true,"items":[{"label":"SetFlags","kind":3,"detail":"func(flag int) (from "log")","documentation":"SetFlags sets the output flags for the standard logger.\nThe flag bits are Ldate, Ltime, and so on.\n","preselect":true,"sortText":"00000","filterText":"SetFlags","insertTextFormat":2,"textEdit":{"range":{"start":{"line":8,"character":5},"end":{"line":8,"character":8}},"newText":"SetFlags(${1:})"},"additionalTextEdits":[{"range":{"start":{"line":3,"character":2},"end":{"line":3,"character":2}},"newText":"log"\n\n\t""}]},{"label":"SetOutput","kind":3,"detail":"func(w io.Writer) (from "log")","documentation":"SetOutput sets the output destination for the standard logger.\n","sortText":"00001","filterText":"SetOutput","insertTextFormat":2,"textEdit":{"range":{"start":{"line":8,"character":5},"end":{"line":8,"character":8}},"newText":"SetOutput(${1:})"},"additionalTextEdits":[{"range":{"start":{"line":3,"character":2},"end":{"line":3,"character":2}},"newText":"log"\n\n\t""}]},{"label":"SetPrefix","kind":3,"detail":"func(prefix string) (from "log")","documentation":"SetPrefix sets the output prefix for the standard logger.\n","sortText":"00002","filterText":"SetPrefix","insertTextFormat":2,"textEdit":{"range":{"start":{"line":8,"character":5},"end":{"line":8,"character":8}},"newText":"SetPrefix(${1:})"},"additionalTextEdits":[{"range":{"start":{"line":3,"character":2},"end":{"line":3,"character":2}},"newText":"log"\n\n\t""}]},{"label":"SetLevel","kind":3,"detail":"func(lvl log.Level) (from "gopkg.in/DataDog/dd-trace-go.v1/internal/log")","documentation":"SetLevel sets the given lvl for logging.\n","sortText":"00003","filterText":"SetLevel","insertTextFormat":2,"textEdit":{"range":{"start":{"line":8,"character":5},"end":{"line":8,"character":8}},"newText":"SetLevel(${1:})"},"additionalTextEdits":[{"range":{"start":{"line":3,"character":34},"end":{"line":3,"character":34}},"newText":"internal/log"\n\t"gopkg.in/DataDog/dd-trace-go.v1/"}]},{"label":"Default().SetFlags","kind":2,"detail":"func(flag int) (from "log")","documentation":"SetFlags sets the output flags for the logger.\nThe flag bits are Ldate, Ltime, and so on.\n","sortText":"00004","filterText":"Default().SetFlags","insertTextFormat":2,"textEdit":{"range":{"start":{"line":8,"character":5},"end":{"line":8,"character":8}},"newText":"Default().SetFlags(${1:})"},"additionalTextEdits":[{"range":{"start":{"line":3,"character":2},"end":{"line":3,"character":2}},"newText":"log"\n\n\t""}]},{"label":"Default().SetOutput","kind":2,"detail":"func(w io.Writer) (from "log")","documentation":"SetOutput sets the output destination for the logger.\n","sortText":"00005","filterText":"Default().SetOutput","insertTextFormat":2,"textEdit":{"range":{"start":{"line":8,"character":5},"end":{"line":8,"character":8}},"newText":"Default().SetOutput(${1:})"},"additionalTextEdits":[{"range":{"start":{"line":3,"character":2},"end":{"line":3,"character":2}},"newText":"log"\n\n\t""}]},{"label":"Default().SetPrefix","kind":2,"detail":"func(prefix string) (from "log")","documentation":"SetPrefix sets the output prefix for the logger.\n","sortText":"00006","filterText":"Default().SetPrefix","insertTextFormat":2,"textEdit":{"range":{"start":{"line":8,"character":5},"end":{"line":8,"character":8}},"newText":"Default().SetPrefix(${1:})"},"additionalTextEdits":[{"range":{"start":{"line":3,"character":2},"end":{"line":3,"character":2}},"newText":"log"\n\n\t""}]},{"label":"SetLogger","kind":6,"detail":"(from "github.com/emicklei/go-restful/log")","sortText":"00007","filterText":"SetLogger","insertTextFormat":2,"textEdit":{"range":{"start":{"line":8,"character":5},"end":{"line":8,"character":8}},"newText":"SetLogger"},"additionalTextEdits":[{"range":{"start":{"line":3,"character":3},"end":{"line":3,"character":3}},"newText":"ithub.com/emicklei/go-restful/log"\n\t"g"}]}]}

[Trace - 13:23:55.323 PM] Sending request 'textDocument/foldingRange - (30)'.
Params: {"textDocument":{"uri":"file:///Users/hakim/tmp/folding/main.go"}}

[Trace - 13:23:55.323 PM] Received response 'textDocument/foldingRange - (30)' in 0ms.
Result: [{"startLine":2,"startCharacter":8,"endLine":3,"endCharacter":43,"kind":"imports"},{"startLine":6,"startCharacter":13,"endLine":8,"endCharacter":8}]

[Trace - 13:23:55.374 PM] Sending request 'textDocument/codeAction - (31)'.
Params: {"textDocument":{"uri":"file:///Users/hakim/tmp/folding/main.go"},"range":{"start":{"line":8,"character":8},"end":{"line":8,"character":8}},"context":{"diagnostics":[]}}

[Trace - 13:23:55.375 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2021/03/09 13:23:55 fixImports(filename="/Users/hakim/tmp/folding/main.go"), abs="/Users/hakim/tmp/folding/main.go", srcDir="/Users/hakim/tmp/folding" ...\n"}

[Info - 1:23:55 PM] 2021/03/09 13:23:55 fixImports(filename="/Users/hakim/tmp/folding/main.go"), abs="/Users/hakim/tmp/folding/main.go", srcDir="/Users/hakim/tmp/folding" ...

[Trace - 13:23:55.375 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2021/03/09 13:23:55 loading package names for 1 packages\n"}

[Trace - 13:23:55.376 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2021/03/09 13:23:55 done loading package names for 1 packages\n"}

[Info - 1:23:55 PM] 2021/03/09 13:23:55 loading package names for 1 packages

[Info - 1:23:55 PM] 2021/03/09 13:23:55 done loading package names for 1 packages

[Trace - 13:23:55.385 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2021/03/09 13:23:55 log candidate 1/3: log in /usr/local/go/src/log\n"}

[Trace - 13:23:55.385 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2021/03/09 13:23:55 loading exports in dir /usr/local/go/src/log (seeking package log)\n"}

[Trace - 13:23:55.385 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2021/03/09 13:23:55 loading exports in dir /Users/hakim/go/pkg/mod/github.com/opentracing/opentracing-go@v1.2.0/log (seeking package log)\n"}

[Trace - 13:23:55.385 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2021/03/09 13:23:55 loading exports in dir /Users/hakim/go/pkg/mod/github.com/emicklei/go-restful@v2.15.0+incompatible/log (seeking package log)\n"}

[Info - 1:23:55 PM] 2021/03/09 13:23:55 log candidate 1/3: log in /usr/local/go/src/log

[Trace - 13:23:55.385 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2021/03/09 13:23:55 log candidate 3/3: github.com/opentracing/opentracing-go/log in /Users/hakim/go/pkg/mod/github.com/opentracing/opentracing-go@v1.2.0/log\n"}

[Trace - 13:23:55.385 PM] Received notification 'window/logMessage'.
Params: {"type":3,"message":"2021/03/09 13:23:55 log candidate 2/3: github.com/emicklei/go-restful/log in /Users/hakim/go/pkg/mod/github.com/emicklei/go-restful@v2.15.0+incompatible/log\n"}

[Info - 1:23:55 PM] 2021/03/09 13:23:55 loading exports in dir /usr/local/go/src/log (seeking package log)

[Info - 1:23:55 PM] 2021/03/09 13:23:55 loading exports in dir /Users/hakim/go/pkg/mod/github.com/opentracing/opentracing-go@v1.2.0/log (seeking package log)

[Info - 1:23:55 PM] 2021/03/09 13:23:55 loading exports in dir /Users/hakim/go/pkg/mod/github.com/emicklei/go-restful@v2.15.0+incompatible/log (seeking package log)

[Info - 1:23:55 PM] 2021/03/09 13:23:55 log candidate 3/3: github.com/opentracing/opentracing-go/log in /Users/hakim/go/pkg/mod/github.com/opentracing/opentracing-go@v1.2.0/log

[Info - 1:23:55 PM] 2021/03/09 13:23:55 log candidate 2/3: github.com/emicklei/go-restful/log in /Users/hakim/go/pkg/mod/github.com/emicklei/go-restful@v2.15.0+incompatible/log

[Trace - 13:23:55.386 PM] Received response 'textDocument/codeAction - (31)' in 11ms.
Result: null

[Trace - 13:23:55.568 PM] Sending request 'textDocument/documentLink - (32)'.
Params: {"textDocument":{"uri":"file:///Users/hakim/tmp/folding/main.go"}}

[Trace - 13:23:55.569 PM] Received response 'textDocument/documentLink - (32)' in 0ms.
Result: [{"range":{"start":{"line":3,"character":2},"end":{"line":3,"character":42}},"target":"https://pkg.go.dev/gopkg.in/DataDog/dd-trace-go.v1@v1.29.0/profiler?utm_source=gopls"}]

[Trace - 13:23:55.881 PM] Sending request 'textDocument/codeLens - (33)'.
Params: {"textDocument":{"uri":"file:///Users/hakim/tmp/folding/main.go"}}

[Trace - 13:23:55.883 PM] Received response 'textDocument/codeLens - (33)' in 2ms.
Result: null

[Trace - 13:23:55.930 PM] Sending request 'textDocument/documentSymbol - (34)'.
Params: {"textDocument":{"uri":"file:///Users/hakim/tmp/folding/main.go"}}

[Trace - 13:23:55.931 PM] Received response 'textDocument/documentSymbol - (34)' in 0ms.
Result: [{"name":"main","detail":"()","kind":12,"range":{"start":{"line":6,"character":0},"end":{"line":9,"character":1}},"selectionRange":{"start":{"line":6,"character":5},"end":{"line":6,"character":9}}}]

@hyangah hyangah changed the title autocomplete: internal packages not related to current x/tools/gopls: do not suggest names from unimportable internal packages Mar 9, 2021
@hyangah hyangah transferred this issue from golang/vscode-go Mar 9, 2021
@gopherbot gopherbot added this to the Unreleased milestone Mar 9, 2021
@stamblerre stamblerre removed this from the Unreleased milestone Mar 9, 2021
@stamblerre stamblerre added this to the gopls/v1.0.0 milestone Mar 9, 2021
@stamblerre stamblerre added this to To Do in gopls on-deck Mar 11, 2021
@stamblerre stamblerre removed this from the gopls/v1.0.0 milestone Jun 28, 2021
@stamblerre stamblerre added this to the gopls/unplanned milestone Jun 28, 2021
@stamblerre stamblerre moved this from To Do to P2 in gopls on-deck Aug 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants