Handle initialization and didOpen properly

This commit is contained in:
Zachary Yedidia
2020-08-11 18:13:16 -04:00
parent a4148d069a
commit 4af1dfcbd8
5 changed files with 58 additions and 20 deletions

View File

@@ -196,7 +196,9 @@ func (b *Buffer) saveToFile(filename string, withSudo bool) error {
b.isModified = false
b.UpdateRules()
b.server.DidSave(b.AbsPath)
if b.HasLSP() {
b.server.DidSave(b.AbsPath)
}
return err
}