Skip to content

Commit

Permalink
perf: Collapses C#, ruby, TS, and JS moar better
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeljolley committed Sep 25, 2023
1 parent a0f3f9e commit a5a7760
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/commands/collapseToDefinitions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,15 @@ export async function collapseToDefinitions() {
let levels = 1;

switch (language) {
case "csharp":
case "javascript":
case "typescript":
case "ruby":
levels = 2;
break;

case "csharp":
levels = 3;
break;
}

// Set position to top of editor so all regions collapse
Expand Down

0 comments on commit a5a7760

Please sign in to comment.