We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
xbase/src/state.rs
Line 48 in 26ffb32
#[cfg(feature = "server")] impl State { /// Get [`CompilationDatabase`] for a .compile file path. /// TODO(server): support getting compile commands for header files pub fn compile_commands(&mut self, compile_filepath: &Path) -> Result<&XCCompilationDatabase> { tracing::debug!("Getting compile commands"); if self.compile_commands.contains_key(compile_filepath) { tracing::debug!("Using Cached compile database"); self.compile_commands.get(compile_filepath) } else { tracing::debug!("Reading from {compile_filepath:?}"); XCCompilationDatabase::try_from_filepath(compile_filepath)? .pipe(|cmds| self.compile_commands.insert(compile_filepath.into(), cmds)) .pipe(|_| self.compile_commands.get(compile_filepath)) }
The text was updated successfully, but these errors were encountered:
Closed in 3c53d44
Sorry, something went wrong.
No branches or pull requests
xbase/src/state.rs
Line 48 in 26ffb32
The text was updated successfully, but these errors were encountered: