Skip to content

Commit 69f49c4

Browse files
authored
Merge pull request #861 from posit-dev/feature/workspace-symbols-r6class
Emit R6Class methods as workspace symbols
2 parents bff2232 + 95bf05d commit 69f49c4

11 files changed

+707
-89
lines changed

crates/ark/src/lsp/completions/sources/composite/call.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,7 @@ fn completions_from_workspace_arguments(
267267
return Ok(None);
268268
},
269269
indexer::IndexEntryData::Variable { .. } => return Ok(None),
270+
indexer::IndexEntryData::Method { .. } => return Ok(None),
270271
}
271272

272273
// Only 1 call worth of arguments are added to the completion set.

crates/ark/src/lsp/completions/sources/composite/workspace.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,9 @@ fn completions_from_workspace(
125125
};
126126
completions.push(completion);
127127
},
128+
129+
// Methods are currently only indexed for workspace symbols
130+
indexer::IndexEntryData::Method { .. } => {},
128131
}
129132
});
130133

0 commit comments

Comments
 (0)