| 330 | } |
| 331 | |
| 332 | func (s *Session) DidChangeFile(ctx context.Context, uri lsproto.DocumentUri, version int32, changes []lsproto.TextDocumentContentChangePartialOrWholeDocument) { |
| 333 | s.cancelDiagnosticsRefresh() |
| 334 | s.cancelWarmAutoImportCache() |
| 335 | s.scheduleIdleCacheClean() |
| 336 | s.pendingFileChangesMu.Lock() |
| 337 | defer s.pendingFileChangesMu.Unlock() |
| 338 | s.pendingFileChanges = append(s.pendingFileChanges, FileChange{ |
| 339 | Kind: FileChangeKindChange, |
| 340 | URI: uri, |
| 341 | Version: version, |
| 342 | Changes: changes, |
| 343 | }) |
| 344 | } |
| 345 | |
| 346 | func (s *Session) DidSaveFile(ctx context.Context, uri lsproto.DocumentUri) { |
| 347 | s.scheduleIdleCacheClean() |