diff options
author | pjw <pjw@google.com> | 2021-01-24 14:00:12 -0500 |
---|---|---|
committer | Peter Weinberger <pjw@google.com> | 2021-02-02 11:32:59 +0000 |
commit | c3402e3c4292abb6993dce7867a91819117b7a30 (patch) | |
tree | 61a185b4c5847bf5884db2295ad9a588841cdb4a /internal/lsp/server_gen.go | |
parent | 2ab23861a01c7c874e7df3a5cd0629cdfe5a403e (diff) | |
download | golang-x-tools-c3402e3c4292abb6993dce7867a91819117b7a30.tar.gz |
internal/lsp: update to latest version of LSP protocol
The Typescript source is still at version 3.16, but there are new
requests, more detailed client capabilities, and an attempt to be
more specific about ranges of number in the Typescript code.
Vscode defines types integer and uinteger (32-bit signed and unsigned),
so the Go code now uses int32 and uint32.
They've changed the use of TextDocument, so version information is sometimes
missing. cache/session.go:625 was changed correspondingly.
This CL also make CodeAction.Disabled into a pointer.
New requests or notifications:
DidCreateFiles, DidRenameFiles, DidDeleteFiles (notifications)
ShowDocument, WillCreateFiles,WillRenameFiles, WillDeleteFiles (request)
It's a lot of code; I've probably missed something.
Change-Id: I8449ad8473ac00947d0344c5f6133f9bd73b9e10
Reviewed-on: https://go-review.googlesource.com/c/tools/+/286192
Run-TryBot: Peter Weinberger <pjw@google.com>
gopls-CI: kokoro <noreply+kokoro@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Rebecca Stambler <rstambler@golang.org>
Trust: Peter Weinberger <pjw@google.com>
Diffstat (limited to 'internal/lsp/server_gen.go')
-rw-r--r-- | internal/lsp/server_gen.go | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/internal/lsp/server_gen.go b/internal/lsp/server_gen.go index 275c7c865..59ba82349 100644 --- a/internal/lsp/server_gen.go +++ b/internal/lsp/server_gen.go @@ -20,6 +20,10 @@ func (s *Server) CodeLens(ctx context.Context, params *protocol.CodeLensParams) return s.codeLens(ctx, params) } +func (s *Server) CodeLensRefresh(context.Context) error { + return notImplemented("CodeLensRefresh") +} + func (s *Server) ColorPresentation(context.Context, *protocol.ColorPresentationParams) ([]protocol.ColorPresentation, error) { return nil, notImplemented("ColorPresentation") } @@ -56,10 +60,22 @@ func (s *Server) DidClose(ctx context.Context, params *protocol.DidCloseTextDocu return s.didClose(ctx, params) } +func (s *Server) DidCreateFiles(context.Context, *protocol.CreateFilesParams) error { + return notImplemented("DidCreateFiles") +} + +func (s *Server) DidDeleteFiles(context.Context, *protocol.DeleteFilesParams) error { + return notImplemented("DidDeleteFiles") +} + func (s *Server) DidOpen(ctx context.Context, params *protocol.DidOpenTextDocumentParams) error { return s.didOpen(ctx, params) } +func (s *Server) DidRenameFiles(context.Context, *protocol.RenameFilesParams) error { + return notImplemented("DidRenameFiles") +} + func (s *Server) DidSave(ctx context.Context, params *protocol.DidSaveTextDocumentParams) error { return s.didSave(ctx, params) } @@ -116,6 +132,10 @@ func (s *Server) Initialized(ctx context.Context, params *protocol.InitializedPa return s.initialized(ctx, params) } +func (s *Server) LinkedEditingRange(context.Context, *protocol.LinkedEditingRangeParams) (*protocol.LinkedEditingRanges, error) { + return nil, notImplemented("LinkedEditingRange") +} + func (s *Server) LogTrace(context.Context, *protocol.LogTraceParams) error { return notImplemented("LogTrace") } @@ -196,6 +216,10 @@ func (s *Server) SetTrace(context.Context, *protocol.SetTraceParams) error { return notImplemented("SetTrace") } +func (s *Server) ShowDocument(context.Context, *protocol.ShowDocumentParams) (*protocol.ShowDocumentResult, error) { + return nil, notImplemented("ShowDocument") +} + func (s *Server) Shutdown(ctx context.Context) error { return s.shutdown(ctx) } @@ -212,6 +236,18 @@ func (s *Server) TypeDefinition(ctx context.Context, params *protocol.TypeDefini return s.typeDefinition(ctx, params) } +func (s *Server) WillCreateFiles(context.Context, *protocol.CreateFilesParams) (*protocol.WorkspaceEdit, error) { + return nil, notImplemented("WillCreateFiles") +} + +func (s *Server) WillDeleteFiles(context.Context, *protocol.DeleteFilesParams) (*protocol.WorkspaceEdit, error) { + return nil, notImplemented("WillDeleteFiles") +} + +func (s *Server) WillRenameFiles(context.Context, *protocol.RenameFilesParams) (*protocol.WorkspaceEdit, error) { + return nil, notImplemented("WillRenameFiles") +} + func (s *Server) WillSave(context.Context, *protocol.WillSaveTextDocumentParams) error { return notImplemented("WillSave") } |