Skip to content

Commit 9ea21b1

Browse files
author
Deyan Totev
committed
chore@small
1 parent 7145d89 commit 9ea21b1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Differences:
1010
- no change of decorations on unsaved changes; only on save event.
1111
- hide decorations when file is dirty, i.e. changed but not yet saved. This helps with hanging decorations(decorations on wrong lines), but also to optimize performance.
1212
- using latest dependencies - main reason for the fork was to be able to update dependencies
13-
- different color sets depending if current theme is dark or light
13+
- limit to 50 decorations per file due to performance reasons
1414
- no lua/vue/html support
1515
- no second decoration, `CodeLensEnabled` is not used
1616

Diff for: src/editordecoration/EditorDecoration.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ export class EditorDecoration implements Disposable {
134134
const decorations = complexityAndModel.map((p) => ({
135135
decorationStyle: toDecoration(p.model),
136136
complexity: p.complexity,
137-
}));
137+
})).slice(0, 50);
138138

139139
// need to reset all decorations before setting new ones
140140
this.decoratorInstances.forEach((decorator) => {

0 commit comments

Comments
 (0)