Skip to content

Commit

Permalink
Added mock initialized
Browse files Browse the repository at this point in the history
  • Loading branch information
juliosueiras committed Feb 26, 2020
1 parent 72f382b commit 75d62a2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
11 changes: 11 additions & 0 deletions langserver/initialized.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package langserver

import (
"context"
)

type InitializedParams struct {}

func Initialized(ctx context.Context, vs InitializedParams) error {
return nil
}
1 change: 1 addition & 0 deletions langserver/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ func RunTCPServer(port int) {
func InitializeServiceMap() {
ServiceMap = handler.Map{
"initialize": handler.New(Initialize),
"initialized": handler.New(Initialized),
"textDocument/completion": handler.New(TextDocumentComplete),
"textDocument/didChange": handler.New(TextDocumentDidChange),
"textDocument/didOpen": handler.New(TextDocumentDidOpen),
Expand Down

0 comments on commit 75d62a2

Please sign in to comment.