Fix add text bug

This commit is contained in:
mcrakhman authored and Mikhail Iudin committed 2022-10-20 19:08:43 +02:00
1 parent f213ec7efe
commit 40d5d832fb
2 files changed
+7 -2

No files matched your search

+3 -1
View File
@@ -40,16 +40,18 @@ func CreateTextDocument(
return &textDocument{
objTree: t,
account: account,
}, nil
}
func NewTextDocument(ctx context.Context, space commonspace.Space, id string, listener updatelistener.UpdateListener) (doc TextDocument, err error) {
func NewTextDocument(ctx context.Context, space commonspace.Space, id string, listener updatelistener.UpdateListener, account account.Service) (doc TextDocument, err error) {
t, err := space.BuildTree(ctx, id, listener)
if err != nil {
return
}
return &textDocument{
objTree: t,
account: account,
}, nil
}