1
0
mirror of https://github.com/golang/go synced 2024-11-18 21:44:45 -07:00
go/internal/lsp
Rebecca Stambler faa69481e7 internal/lsp/cache: add finer-grained control of file changes
This change is the first step in centralizing control of modifications
to different files, either within the workspace or outside of it. We add
a source.FileAction type to pass into the internal/lsp/cache package and
handle the difference between opening and creating a file.

Now that we load all packages in a workspace by default, we no longer
need to re-load a file on open. This CL should enable CL 206883 to work
correctly.

Change-Id: I2ddb21ca2dd33720d668066e73283f5629d02867
Reviewed-on: https://go-review.googlesource.com/c/tools/+/206888
Run-TryBot: Rebecca Stambler <rstambler@golang.org>
Reviewed-by: Ian Cottrell <iancottrell@google.com>
2019-11-14 16:11:15 +00:00
..
browser
cache internal/lsp/cache: add finer-grained control of file changes 2019-11-14 16:11:15 +00:00
cmd internal/lsp: use versioned URIs in rename and code actions 2019-11-13 05:52:40 +00:00
debug internal/lsp: fix the debug info pages 2019-11-04 23:16:26 +00:00
diff internal/lsp: fix unified diffs of edits at the end of a file 2019-10-11 16:38:14 +00:00
fuzzy internal/lsp: fix fuzzy matcher inconsistency 2019-10-22 21:05:28 +00:00
protocol lsp/protocol/typescript: add instructions for typescript compiling 2019-11-13 18:38:21 +00:00
snippet all: fix broken links to LSP specification 2019-10-02 18:32:53 +00:00
source internal/lsp/cache: add finer-grained control of file changes 2019-11-14 16:11:15 +00:00
telemetry internal/lsp: call load in (*session).NewView 2019-11-07 23:34:59 +00:00
testdata internal/lsp: support implementations requests for implementations in other packages 2019-11-12 18:49:59 +00:00
tests tools/gopls: add cmd support for folding_ranges 2019-11-12 00:55:09 +00:00
code_action.go internal/lsp: use versioned URIs in rename and code actions 2019-11-13 05:52:40 +00:00
command.go internal/lsp: rework snapshots and cache FileHandles per-snapshot 2019-10-01 16:26:22 +00:00
completion_test.go internal/lsp: make View.SetOptions save and useful 2019-11-12 16:15:35 +00:00
completion.go internal/lsp: fix VSCode's reordering of completion candidates 2019-10-24 16:29:03 +00:00
definition.go internal/lsp: rework snapshots and cache FileHandles per-snapshot 2019-10-01 16:26:22 +00:00
diagnostics.go go/analysis, internal/lsp: add support for related information 2019-10-21 19:00:55 +00:00
folding_range.go internal/lsp: rework snapshots and cache FileHandles per-snapshot 2019-10-01 16:26:22 +00:00
format.go
general.go internal/lsp: call load in (*session).NewView 2019-11-07 23:34:59 +00:00
highlight.go
hover.go internal/lsp: convert comments to markdown before sending to client 2019-10-04 18:35:38 +00:00
implementation.go internal/lsp: look up files in packages by position instead of URI 2019-11-13 16:34:02 +00:00
link.go internal/lsp: rework snapshots and cache FileHandles per-snapshot 2019-10-01 16:26:22 +00:00
lsp_test.go internal/lsp: use the versions provided by the client 2019-11-13 23:20:20 +00:00
references.go internal/lsp: rework snapshots and cache FileHandles per-snapshot 2019-10-01 16:26:22 +00:00
rename.go internal/lsp: use versioned URIs in rename and code actions 2019-11-13 05:52:40 +00:00
reset_golden.sh internal/lsp: fix regeneration of golden files 2019-09-25 13:16:59 +00:00
server.go internal/lsp: handle the didChangeConfiguration message 2019-11-12 16:15:42 +00:00
signature_help.go internal/lsp: rework snapshots and cache FileHandles per-snapshot 2019-10-01 16:26:22 +00:00
symbols.go internal/lsp: rework snapshots and cache FileHandles per-snapshot 2019-10-01 16:26:22 +00:00
text_synchronization.go internal/lsp: use the versions provided by the client 2019-11-13 23:20:20 +00:00
watched_files.go internal/lsp/cache: add finer-grained control of file changes 2019-11-14 16:11:15 +00:00
workspace.go internal/lsp: handle the didChangeConfiguration message 2019-11-12 16:15:42 +00:00