History

Remove dbg! calls

Piotr Osiewicz committed 3 years ago

Commit 8642a1d1 parent ee9123a2 files · +0 −6Browse files

Unified · Split

2 files
  1. crates/language/src/language.rs +0 −5
  2. crates/project/src/project.rs +0 −1
crates/language/src/language.rs+0−5
@@ -285,8 +285,6 @@ pub trait LspAdapter: 'static + Send + Sync { · 284 unmodified lines
285285 kind: lsp::SymbolKind,
286286 _: &Arc<Language>,
287287 ) -> Option<CodeLabel> {
288− dbg!(name);
289− dbg!(kind);
290288 None
291289 }
292290
@@ -829,7 +827,6 @@ impl LanguageRegistry { · 536 unmodified lines
829827 .spawn(async move {
830828 let id = language.id;
831829 let queries = (language.get_queries)(&language.path);
832− dbg!(&language.path);
833830 let language =
834831 Language::new(language.config, Some(language.grammar))
835832 .with_lsp_adapters(language.lsp_adapters)
@@ -843,7 +840,6 @@ impl LanguageRegistry { · 7 unmodified lines
843840 state.add(language.clone());
844841 state.mark_language_loaded(id);
845842 if let Some(mut txs) = state.loading_languages.remove(&id) {
846− dbg!(&name);
847843 for tx in txs.drain(..) {
848844 let _ = tx.send(Ok(language.clone()));
849845 }
@@ -851,7 +847,6 @@ impl LanguageRegistry { · 1 unmodified line
851847 }
852848 Err(err) => {
853849 log::error!("failed to load language {name} - {err}");
854− dbg!(&name);
855850 let mut state = this.state.write();
856851 state.mark_language_loaded(id);
857852 if let Some(mut txs) = state.loading_languages.remove(&id) {
crates/project/src/project.rs+0−1
@@ -2695,7 +2695,6 @@ impl Project { · 2694 unmodified lines
26952695 key: (WorktreeId, LanguageServerName),
26962696 cx: &mut AsyncAppContext,
26972697 ) -> Result<Option<Arc<LanguageServer>>> {
2698− dbg!(language.name());
26992698 let setup = Self::setup_pending_language_server(
27002699 this,
27012700 initialization_options,

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t