Skip to content

Commit

Permalink
Don't move worksheet decoration when adding new line
Browse files Browse the repository at this point in the history
Previously, when using worksheets, the evaluated code would move to the
next line when adding a new line. Now, the evaluated code stays on the
original line.
  • Loading branch information
Olafur Pall Geirsson committed Nov 3, 2019
1 parent 7577342 commit 2899170
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions vscode-dotty/src/worksheet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ class Worksheet implements Disposable {
private createDecoration(margin: number, text: string) {
return vscode.window.createTextEditorDecorationType({
isWholeLine: true,
rangeBehavior: vscode.DecorationRangeBehavior.OpenClosed,
after: {
contentText: text,
margin: `0px 0px 0px ${margin}ch`,
Expand Down

0 comments on commit 2899170

Please sign in to comment.