Skip to content

Commit

Permalink
comment: Explain why addDependencySuggestions() does not use addField()
Browse files Browse the repository at this point in the history
  • Loading branch information
claremacrae committed Aug 8, 2024
1 parent ccb01ed commit 31cc625
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Suggestor/Suggestor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,7 @@ function addDependencySuggestions(
canSaveEdits: boolean,
) {
if (includeDependencySuggestions(canSaveEdits)) {
// These don't reuse addField() because they don't have a space at the end of the appendText values.
if (!line.includes(symbols.idSymbol))
genericSuggestions.push({
displayText: `${symbols.idSymbol} id`,
Expand Down

0 comments on commit 31cc625

Please sign in to comment.