Skip to content

Commit

Permalink
Update src/bscPlugin/completions/CompletionsProcessor.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Bronley Plumb <bronley@gmail.com>
  • Loading branch information
markwpearce and TwitchBronBron committed Jul 8, 2024
1 parent 86d5c70 commit 6cff798
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bscPlugin/completions/CompletionsProcessor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export class CompletionsProcessor {
// always include the source scope if applicable to this file
let sourceScope = scopesForFile.find(x => x.name === 'source');
if (sourceScope && !scopesToProcess.includes(sourceScope)) {
//replace the first scope with the source scope so we always process exactly 3 scopes
//replace the first scope with the source scope so we process a consistent number of scopes if possible
scopesToProcess[0] = sourceScope;
}
return scopesToProcess;
Expand Down

0 comments on commit 6cff798

Please sign in to comment.