MCPcopy Index your code
hub / github.com/bytebase/bytebase / isFileSystemRequest

Function isFileSystemRequest

backend/api/lsp/fs.go:118–125  ·  view source on GitHub ↗

isFileSystemRequest returns if this is an LSP method whose sole purpose is modifying the contents of the overlay file system.

(method string)

Source from the content-addressed store, hash-verified

116// isFileSystemRequest returns if this is an LSP method whose sole
117// purpose is modifying the contents of the overlay file system.
118func isFileSystemRequest(method string) bool {
119 switch Method(method) {
120 case LSPMethodTextDocumentDidOpen, LSPMethodTextDocumentDidChange, LSPMethodTextDocumentDidClose, LSPMethodTextDocumentDidSave:
121 return true
122 default:
123 return false
124 }
125}

Callers 2

HandleMethod · 0.85
handleMethod · 0.85

Calls 1

MethodTypeAlias · 0.85

Tested by

no test coverage detected