| 318 | } |
| 319 | |
| 320 | func (s *Session) DidCloseFile(ctx context.Context, uri lsproto.DocumentUri) { |
| 321 | s.cancelWarmAutoImportCache() |
| 322 | s.scheduleIdleCacheClean() |
| 323 | s.pendingFileChangesMu.Lock() |
| 324 | s.pendingFileChanges = append(s.pendingFileChanges, FileChange{ |
| 325 | Kind: FileChangeKindClose, |
| 326 | URI: uri, |
| 327 | }) |
| 328 | s.pendingFileChangesMu.Unlock() |
| 329 | s.ScheduleSnapshotUpdate(UpdateReasonDidCloseFile) |
| 330 | } |
| 331 | |
| 332 | func (s *Session) DidChangeFile(ctx context.Context, uri lsproto.DocumentUri, version int32, changes []lsproto.TextDocumentContentChangePartialOrWholeDocument) { |
| 333 | s.cancelDiagnosticsRefresh() |