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

Method DidSaveFile

internal/project/session.go:346–354  ·  view source on GitHub ↗
(ctx context.Context, uri lsproto.DocumentUri)

Source from the content-addressed store, hash-verified

344}
345
346func (s *Session) DidSaveFile(ctx context.Context, uri lsproto.DocumentUri) {
347 s.scheduleIdleCacheClean()
348 s.pendingFileChangesMu.Lock()
349 defer s.pendingFileChangesMu.Unlock()
350 s.pendingFileChanges = append(s.pendingFileChanges, FileChange{
351 Kind: FileChangeKindSave,
352 URI: uri,
353 })
354}
355
356func (s *Session) DidChangeWatchedFiles(ctx context.Context, changes []*lsproto.FileEvent) {
357 fileChanges := make([]FileChange, 0, len(changes))

Callers 2

handleDidSaveMethod · 0.80
session_test.goFile · 0.80

Calls 4

appendFunction · 0.50
LockMethod · 0.45
UnlockMethod · 0.45

Tested by

no test coverage detected