@@ -428,7 +428,7 @@ func (e *Editor) CloseBuffer(ctx context.Context, path string) error {
428428
429429 if e .Server != nil {
430430 if err := e .Server .DidClose (ctx , & protocol.DidCloseTextDocumentParams {
431- TextDocument : e .textDocumentIdentifier (path ),
431+ TextDocument : e .TextDocumentIdentifier (path ),
432432 }); err != nil {
433433 return fmt .Errorf ("DidClose: %w" , err )
434434 }
@@ -439,7 +439,7 @@ func (e *Editor) CloseBuffer(ctx context.Context, path string) error {
439439 return nil
440440}
441441
442- func (e * Editor ) textDocumentIdentifier (path string ) protocol.TextDocumentIdentifier {
442+ func (e * Editor ) TextDocumentIdentifier (path string ) protocol.TextDocumentIdentifier {
443443 return protocol.TextDocumentIdentifier {
444444 URI : e .sandbox .Workdir .URI (path ),
445445 }
@@ -471,7 +471,7 @@ func (e *Editor) SaveBufferWithoutActions(ctx context.Context, path string) erro
471471 includeText = syncOptions .Save .IncludeText
472472 }
473473
474- docID := e .textDocumentIdentifier (buf .path )
474+ docID := e .TextDocumentIdentifier (buf .path )
475475 if e .Server != nil {
476476 if err := e .Server .WillSave (ctx , & protocol.WillSaveTextDocumentParams {
477477 TextDocument : docID ,
@@ -693,7 +693,7 @@ func (e *Editor) setBufferContentLocked(ctx context.Context, path string, dirty
693693 params := & protocol.DidChangeTextDocumentParams {
694694 TextDocument : protocol.VersionedTextDocumentIdentifier {
695695 Version : int32 (buf .version ),
696- TextDocumentIdentifier : e .textDocumentIdentifier (buf .path ),
696+ TextDocumentIdentifier : e .TextDocumentIdentifier (buf .path ),
697697 },
698698 ContentChanges : evts ,
699699 }
@@ -1008,7 +1008,7 @@ func (e *Editor) CodeLens(ctx context.Context, path string) ([]protocol.CodeLens
10081008 return nil , fmt .Errorf ("buffer %q is not open" , path )
10091009 }
10101010 params := & protocol.CodeLensParams {
1011- TextDocument : e .textDocumentIdentifier (path ),
1011+ TextDocument : e .TextDocumentIdentifier (path ),
10121012 }
10131013 lens , err := e .Server .CodeLens (ctx , params )
10141014 if err != nil {
@@ -1030,7 +1030,7 @@ func (e *Editor) Completion(ctx context.Context, path string, pos Pos) (*protoco
10301030 }
10311031 params := & protocol.CompletionParams {
10321032 TextDocumentPositionParams : protocol.TextDocumentPositionParams {
1033- TextDocument : e .textDocumentIdentifier (path ),
1033+ TextDocument : e .TextDocumentIdentifier (path ),
10341034 Position : pos .ToProtocolPosition (),
10351035 },
10361036 }
@@ -1080,7 +1080,7 @@ func (e *Editor) InlayHint(ctx context.Context, path string) ([]protocol.InlayHi
10801080 return nil , fmt .Errorf ("buffer %q is not open" , path )
10811081 }
10821082 params := & protocol.InlayHintParams {
1083- TextDocument : e .textDocumentIdentifier (path ),
1083+ TextDocument : e .TextDocumentIdentifier (path ),
10841084 }
10851085 hints , err := e .Server .InlayHint (ctx , params )
10861086 if err != nil {
@@ -1102,7 +1102,7 @@ func (e *Editor) References(ctx context.Context, path string, pos Pos) ([]protoc
11021102 }
11031103 params := & protocol.ReferenceParams {
11041104 TextDocumentPositionParams : protocol.TextDocumentPositionParams {
1105- TextDocument : e .textDocumentIdentifier (path ),
1105+ TextDocument : e .TextDocumentIdentifier (path ),
11061106 Position : pos .ToProtocolPosition (),
11071107 },
11081108 Context : protocol.ReferenceContext {
@@ -1121,7 +1121,7 @@ func (e *Editor) Rename(ctx context.Context, path string, pos Pos, newName strin
11211121 return nil
11221122 }
11231123 params := & protocol.RenameParams {
1124- TextDocument : e .textDocumentIdentifier (path ),
1124+ TextDocument : e .TextDocumentIdentifier (path ),
11251125 Position : pos .ToProtocolPosition (),
11261126 NewName : newName ,
11271127 }
@@ -1195,7 +1195,7 @@ func (e *Editor) CodeAction(ctx context.Context, path string, rng *protocol.Rang
11951195 return nil , fmt .Errorf ("buffer %q is not open" , path )
11961196 }
11971197 params := & protocol.CodeActionParams {
1198- TextDocument : e .textDocumentIdentifier (path ),
1198+ TextDocument : e .TextDocumentIdentifier (path ),
11991199 Context : protocol.CodeActionContext {
12001200 Diagnostics : diagnostics ,
12011201 },
0 commit comments