Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Ackee-Blockchain/solana-vscode
/ functions
Functions
395 in github.com/Ackee-Blockchain/solana-vscode
⨍
Functions
395
◇
Types & classes
68
↓ 66 callers
Method
analyze
Run all enabled detectors on the given content
language-server/src/core/registry/detector_registry.rs:61
↓ 12 callers
Method
updateStatus
* Update the status bar badge based on the current state
extension/src/statusBar/statusBarManager.ts:124
↓ 9 callers
Method
updateStatusBar
* Update status bar
extension/src/detectors/detectorsManager.ts:367
↓ 8 callers
Function
coverageErrorLog
* Logs an error message both to the VS Code error notification and console * @param {string} errorMessage - The error message to display
extension/src/coverage/utils.ts:9
↓ 8 callers
Function
getTargetDirPath
* Gets the target directory path by combining workspace root with the target path from constants * @returns {Promise<string>} The absolute path to th
extension/src/coverage/utils.ts:34
↓ 8 callers
Function
getWorkspaceRoot
* Gets the root path of the current workspace * @returns {string} The absolute path to the workspace root * @throws {Error} If no workspace folder i
extension/src/coverage/utils.ts:19
↓ 7 callers
Method
loadCoverageReport
* Loads and parses a coverage report from a file * @param {vscode.Uri} filePath - URI of the coverage report file to load * @throws {Error} If t
extension/src/coverage/coverageReportLoader.ts:60
↓ 6 callers
Method
dispose
* Disposes of the HTTP server and closes all connections * @public
extension/src/coverage/coverageServer.ts:59
↓ 6 callers
Function
executeCommand
* Executes a shell command * @param {string} command - The command to execute * @returns {Promise<void>} * @throws {Error} If the command execution
extension/src/coverage/utils.ts:113
↓ 6 callers
Method
id
(&self)
language-server/src/core/detectors/missing_check_comment.rs:54
↓ 6 callers
Function
removeFiles
* Removes specified files from the filesystem * @param {string[]} files - Array of file paths to remove * @returns {Promise<void>} * @throws {Error
extension/src/coverage/utils.ts:94
↓ 6 callers
Method
with_detector
Add a detector to the registry
language-server/src/core/registry/detector_registry.rs:157
↓ 5 callers
Method
createRichTooltip
* Create a rich tooltip with clickable actions (rust-analyzer style) * Actions are directly clickable in the tooltip using command links
extension/src/statusBar/statusBarManager.ts:60
↓ 5 callers
Method
scan_workspace
(&self)
language-server/src/backend.rs:877
↓ 5 callers
Method
testShouldDisplaySegment
(segment: CoverageSegment, editor: vscode.TextEditor)
extension/src/coverage/tests/coverageDecoration.test.ts:28
↓ 4 callers
Method
displayCoverage
* Displays code coverage information in the editor * @param {CoverageReport} coverageReport - The coverage report to display * @param {vscode.Te
extension/src/coverage/coverageDecoration.ts:55
↓ 4 callers
Method
expr_references_immutable_account
Check if an expression references an immutable account field through `ctx.accounts.<field>`. Returns the field name if it does.
extension/detectors/immutable_account_mutated/src/lib.rs:266
↓ 4 callers
Method
report
Report lint warnings: one on the mutation site, one on the field declaration
extension/detectors/immutable_account_mutated/src/lib.rs:314
↓ 4 callers
Method
run_lints
Run lints on a workspace
language-server/src/dylint_runner/runner.rs:86
↓ 4 callers
Method
selectCoverageFile
* Handles the selection of a coverage file based on available files * If no files are found, shows a file picker * If one file is found, loads i
extension/src/coverage/coverageReportLoader.ts:77
↓ 4 callers
Method
to_lsp_diagnostic
Convert to LSP Diagnostic. `workspace_root` is used to resolve relative file paths in related information.
language-server/src/dylint_runner/diagnostics.rs:32
↓ 3 callers
Method
clearCoverage
* Clears all coverage information from the editor * @param {vscode.TestController} coverageTestController - The test controller instance
extension/src/coverage/coverageDecoration.ts:67
↓ 3 callers
Method
count
(&self)
language-server/src/core/registry/detector_registry.rs:107
↓ 3 callers
Function
create_default_registry
Create a default detector registry with all available detectors
language-server/src/backend.rs:893
↓ 3 callers
Method
default_severity
(&self)
language-server/src/core/detectors/instruction_attribute_invalid.rs:261
↓ 3 callers
Method
emit
* Override emit to also emit an 'any' event with the event name * This allows the coverage manager to listen for all events with a single listener
extension/src/coverage/coverageServer.ts:36
↓ 3 callers
Function
extractCorruptedFiles
* Extracts paths of corrupted profraw files from error output * @param {string} stderr - Error output containing file corruption messages * @returns
extension/src/coverage/utils.ts:70
↓ 3 callers
Method
findCoverageFiles
* Searches for coverage report files in the parent directory of the target directory * @returns {Promise<vscode.Uri[]>} Array of URIs to found cove
extension/src/coverage/coverageReportLoader.ts:35
↓ 3 callers
Method
getCurrentState
* Get current state
extension/src/statusBar/statusBarManager.ts:244
↓ 3 callers
Function
getDirContents
* Gets the contents of a directory * @param {string} dirPath - The path to the directory * @returns {Promise<[string, vscode.FileType][]>} Array of
extension/src/coverage/utils.ts:51
↓ 3 callers
Method
id
(&self)
language-server/src/core/detectors/instruction_attribute_invalid.rs:245
↓ 3 callers
Function
readProfrawList
* Reads the list of profraw files from a list file * @param {string} profrawListPath - Path to the file containing the list of profraw files * @retu
extension/src/coverage/utils.ts:131
↓ 3 callers
Method
setupWindowChangeListener
* Sets up a listener for active editor changes to update coverage decorations * @private
extension/src/coverage/coverageManager.ts:212
↓ 3 callers
Method
testGetFilteredCoverageFiles
( dirPath: string, dirContents: [string, vscode.FileType][] )
extension/src/coverage/tests/coverageReportLoader.test.ts:7
↓ 3 callers
Method
testSetupCoverage
()
extension/src/coverage/tests/coverageManager.test.ts:11
↓ 2 callers
Method
checkRustToolchain
* Check if nightly Rust toolchain and dylint-driver are available/configured
extension/src/statusBar/statusBarManager.ts:172
↓ 2 callers
Function
check_arithmetic_op
Check if an arithmetic operation is potentially unsafe and return appropriate message
extension/detectors/unchecked_math/src/lib.rs:84
↓ 2 callers
Method
default_severity
(&self)
language-server/src/core/detectors/missing_check_comment.rs:70
↓ 2 callers
Method
disable
(&mut self, detector_id: &str)
language-server/src/core/registry/detector_registry.rs:46
↓ 2 callers
Method
displayLineCoverageDecorations
* Displays line coverage decorations in all visible editors * @param {CoverageReport} coverageReport - The coverage report to display
extension/src/coverage/coverageDecoration.ts:89
↓ 2 callers
Method
dispose
* Cleans up all resources used by the coverage manager
extension/src/coverage/coverageManager.ts:72
↓ 2 callers
Method
enable
(&mut self, detector_id: &str)
language-server/src/core/registry/detector_registry.rs:54
↓ 2 callers
Method
enabled_count
(&self)
language-server/src/core/registry/detector_registry.rs:113
↓ 2 callers
Method
files_with_issues
Get files with security issues
language-server/src/core/file_scanner/types.rs:18
↓ 2 callers
Method
handleNotification
* Handles incoming HTTP notification requests and emits appropriate events * Routes requests based on URL path and emits events for the coverage ma
extension/src/coverage/coverageServer.ts:172
↓ 2 callers
Method
isDylintDriverInstalled
* Check if dylint-driver is available
extension/src/statusBar/statusBarManager.ts:258
↓ 2 callers
Method
isNightlyRustAvailable
* Check if nightly is available
extension/src/statusBar/statusBarManager.ts:251
↓ 2 callers
Function
is_small_literal
Check if an expression is a small literal that's unlikely to overflow This helps reduce false positives for common patterns like: - Array indexing: `
extension/detectors/unchecked_math/src/lib.rs:195
↓ 2 callers
Method
is_zero_literal
Return true if expression is the integer literal 0 (possibly wrapped).
language-server/src/core/detectors/manual_lamports_zeroing.rs:78
↓ 2 callers
Method
normalize_type
Normalize type strings for comparison
language-server/src/core/detectors/instruction_attribute_invalid.rs:234
↓ 2 callers
Method
recheckRustToolchain
* Re-check Rust toolchain (useful after installing nightly)
extension/src/statusBar/statusBarManager.ts:265
↓ 2 callers
Method
set_workspace_root
Set the workspace root directory
language-server/src/core/file_scanner/scanner.rs:15
↓ 2 callers
Method
setupDynamicCoverage
* Sets up dynamic coverage by setting the coverage type * to dynamic and verifying the trident tests directory * @private
extension/src/coverage/coverageManager.ts:411
↓ 2 callers
Method
showCoverage
* Initiates coverage visualization based on selected coverage type * Handles both static coverage from files and dynamic coverage from running fuzz
extension/src/coverage/coverageManager.ts:93
↓ 2 callers
Method
showOutput
()
extension/src/detectors/detectorsManager.ts:280
↓ 2 callers
Method
strip_wrappers
Peel common wrappers so we can reason about the "real" expression: - Parentheses: ( .. ) - References: &expr - Deref: *expr - Try: expr? (Expr::Try)
language-server/src/core/detectors/manual_lamports_zeroing.rs:31
↓ 2 callers
Method
testGenerateReport
()
extension/src/coverage/tests/coverageManager.test.ts:31
↓ 2 callers
Method
testHandleProfdata
()
extension/src/coverage/tests/coverageManager.test.ts:23
↓ 2 callers
Method
testParseCoverageReport
(data: Uint8Array)
extension/src/coverage/tests/coverageReportLoader.test.ts:14
↓ 2 callers
Method
testRemoveLeftOverProfrawFiles
()
extension/src/coverage/tests/coverageManager.test.ts:27
↓ 2 callers
Method
testTransformSegment
(segmentArray: any[])
extension/src/coverage/tests/coverageReportLoader.test.ts:18
↓ 2 callers
Method
validateBinary
(binaryPath: string)
extension/src/detectors/detectorsManager.ts:124
↓ 2 callers
Function
verifyTridentTestsDirectory
* Verifies the presence of the trident tests directory * @throws {Error} If the trident tests directory is not found
extension/src/coverage/utils.ts:151
↓ 1 callers
Method
add_workspace_detectors
Add workspace detector libraries to the runner
language-server/src/dylint_runner/runner.rs:24
↓ 1 callers
Method
anchor_program_files
Get Anchor program files
language-server/src/core/file_scanner/types.rs:26
↓ 1 callers
Method
build
Build the registry
language-server/src/core/registry/detector_registry.rs:170
↓ 1 callers
Method
build_and_cache_detector
Build and cache a detector (without loading it)
language-server/src/core/dylint/manager.rs:123
↓ 1 callers
Method
cache_dir
Get the cache directory path (for external access)
language-server/src/core/dylint/cache.rs:197
↓ 1 callers
Method
cache_library
Store a compiled library in the cache The filename includes the detector name and nightly version for easy identification
language-server/src/core/dylint/cache.rs:156
↓ 1 callers
Method
calculateCoverageLevel
* Calculates the coverage level based on execution count * @param {number} count - The execution count * @returns {number} The calculated covera
extension/src/coverage/coverageDecoration.ts:241
↓ 1 callers
Method
checkDylintDriver
* Check if dylint-driver is installed
extension/src/statusBar/statusBarManager.ts:215
↓ 1 callers
Method
check_if_dylint_detector
Check if a Cargo.toml represents a dylint detector
language-server/src/core/dylint/scanner.rs:105
↓ 1 callers
Method
check_program_function
Check a program function for missing signer
extension/detectors/missing_signer/src/lib.rs:169
↓ 1 callers
Method
check_struct_has_signer
Check if a struct has a Signer field
extension/detectors/missing_signer/src/lib.rs:80
↓ 1 callers
Method
cleanup_old_cache_directories
Clean up cache directories from old extension versions
language-server/src/core/dylint/manager.rs:166
↓ 1 callers
Method
clearCoverageStatusBars
* Removes the status bars next to the file names in the sidebar * @param {vscode.TestController} coverageTestController - The test controller insta
extension/src/coverage/coverageDecoration.ts:152
↓ 1 callers
Method
clearLineCoverageDecorations
* Clears all line coverage decorations from visible editors * @private
extension/src/coverage/coverageDecoration.ts:76
↓ 1 callers
Method
closeCoverage
* Closes coverage visualization and cleans up resources * Disposes of listeners and watchers, and clears coverage display
extension/src/coverage/coverageManager.ts:197
↓ 1 callers
Method
compile_detector
Compile a dylint detector crate with the extension's required nightly Rust version All detectors must be compatible with REQUIRED_NIGHTLY_VERSION
language-server/src/core/dylint/compiler.rs:25
↓ 1 callers
Method
configure
(&mut self, detector_id: &str, config: DetectorConfig)
language-server/src/core/registry/detector_registry.rs:40
↓ 1 callers
Method
createSegmentDecoration
* Creates a decoration for a specific code segment * @param {CoverageSegment} segment - The coverage segment * @param {CoverageFileData} coverag
extension/src/coverage/coverageDecoration.ts:263
↓ 1 callers
Function
create_service
()
language-server/src/server.rs:6
↓ 1 callers
Method
default_severity
(&self)
language-server/src/core/detectors/manual_lamports_zeroing.rs:130
↓ 1 callers
Method
default_severity
(&self)
language-server/src/core/detectors/missing_initspace_detector.rs:42
↓ 1 callers
Method
default_severity
(&self)
language-server/src/core/detectors/sysvar_account_detector.rs:77
↓ 1 callers
Method
default_severity
(&self)
language-server/src/core/detectors/instruction_attribute_unused.rs:73
↓ 1 callers
Method
description
(&self)
language-server/src/core/detectors/missing_check_comment.rs:62
↓ 1 callers
Method
displayCoverageStatusBars
* Displays coverage information in the status bars next to the file names in the sidebar * @param {CoverageReport} coverageReport - The coverage re
extension/src/coverage/coverageDecoration.ts:107
↓ 1 callers
Method
displayFinalReport
* Handles display final report event from the coverage server * @private
extension/src/coverage/coverageManager.ts:382
↓ 1 callers
Method
dispose
* Disposes all line coverage decorations
extension/src/coverage/coverageDecoration.ts:31
↓ 1 callers
Function
extract_context_type
Extract the DefId of type T from a `Context<T>` parameter
extension/detectors/immutable_account_mutated/src/lib.rs:125
↓ 1 callers
Method
extract_context_type
Extract the Context<T> type from function parameters
extension/detectors/missing_signer/src/lib.rs:213
↓ 1 callers
Method
extract_crate_name
Extract crate name from Cargo.toml content
language-server/src/core/dylint/scanner.rs:139
↓ 1 callers
Method
extract_handler_parameters
Extract parameters from an instruction handler function and return (context_struct_name, parameters)
language-server/src/core/detectors/instruction_attribute_invalid.rs:28
↓ 1 callers
Method
extract_type_string
Extract a clean type string from a syn::Type
language-server/src/core/detectors/instruction_attribute_invalid.rs:76
↓ 1 callers
Method
findAvailablePort
* Finds an available port by iteratively probing upward from the starting port * @param {number} startPort - The starting port to probe from * @
extension/src/coverage/coverageServer.ts:134
↓ 1 callers
Method
find_account_field_access
Recursively walk field access expressions to find an immutable account reference. Matches patterns like: ctx.accounts.<field> ctx.accounts.<field>.som
extension/detectors/immutable_account_mutated/src/lib.rs:276
↓ 1 callers
Method
find_cargo_toml_files
Find all Cargo.toml files in the workspace
language-server/src/core/dylint/scanner.rs:66
↓ 1 callers
Method
find_cargo_toml_recursive
( &self, dir: &Path, files: &mut Vec<PathBuf>, )
language-server/src/core/dylint/scanner.rs:72
↓ 1 callers
Method
find_compiled_library
Find the compiled library file (.so on Linux, .dylib on macOS, .dll on Windows)
language-server/src/core/dylint/compiler.rs:81
next →
1–100 of 395, ranked by callers