Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
umpox committed Feb 14, 2025
1 parent a2c42ed commit 247d708
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 247 deletions.
8 changes: 3 additions & 5 deletions vscode/src/autoedits/renderer/decorators/default-decorator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -382,9 +382,7 @@ export class DefaultDecorator implements AutoEditsDecorator {
const { dark, light } = generateSuggestionAsImage({
decorations: blockifiedAddedLines,
lang: this.editor.document.languageId,
config: {
pixelRatio: pixelRatio,
},
config: { pixelRatio },
})
const startLineEndColumn = this.getEndColumn(this.editor.document.lineAt(startLine))

Expand All @@ -398,8 +396,8 @@ export class DefaultDecorator implements AutoEditsDecorator {
position: 'absolute',
// Make sure the decoration is rendered on top of other decorations
'z-index': '9999',
// // Scale to decoration to the correct size (upscaled to boost resolution)
scale: String(0.9 * (1 / pixelRatio)),
// Scale the decoration to the correct size (upscaled to boost resolution)
scale: String(1 / pixelRatio),
'transform-origin': '0px 0px',
height: 'auto',
// The decoration will be entirely taken up by the image.
Expand Down
242 changes: 0 additions & 242 deletions vscode/src/autoedits/renderer/image-gen/canvas/draw-decorations.ts

This file was deleted.

0 comments on commit 247d708

Please sign in to comment.