MCPcopy Create free account
hub / github.com/microsoft/typescript-go / cancelDiagnosticsRefresh

Method cancelDiagnosticsRefresh

internal/project/session.go:442–451  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

440}
441
442func (s *Session) cancelDiagnosticsRefresh() {
443 s.diagnosticsRefreshMu.Lock()
444 defer s.diagnosticsRefreshMu.Unlock()
445 if s.diagnosticsRefreshCancel != nil {
446 s.diagnosticsRefreshCancel()
447 s.logger.Log("Canceled scheduled diagnostics refresh")
448 s.diagnosticsRefreshCancel = nil
449 s.diagnosticsRefreshGeneration++
450 }
451}
452
453func (s *Session) ScheduleSnapshotUpdate(reason UpdateReason) {
454 s.scheduledSnapshotUpdateMu.Lock()

Callers 2

DidChangeFileMethod · 0.95
CloseMethod · 0.95

Calls 3

LogMethod · 0.65
LockMethod · 0.45
UnlockMethod · 0.45

Tested by

no test coverage detected