mirror of
https://github.com/hexedtech/codemp-vscode.git
synced 2024-12-23 05:54:51 +01:00
feat: show mark in overview ruler, bigger name
This commit is contained in:
parent
e7bb5ce91f
commit
acbaab80b4
1 changed files with 7 additions and 2 deletions
|
@ -67,14 +67,19 @@ export class UserDecoration {
|
|||
borderStyle: 'solid',
|
||||
borderColor: this.color,
|
||||
backgroundColor: this.color + '44', // add alpha
|
||||
|
||||
overviewRulerColor: this.color,
|
||||
});
|
||||
}
|
||||
|
||||
const range_start: vscode.Position = new vscode.Position(event.startRow, event.startCol); // -1?
|
||||
const range_end: vscode.Position = new vscode.Position(event.endRow, event.endCol); // -1? idk if this works it's kinda funny, should test with someone with a working version of codemp
|
||||
const decorationRange = new vscode.Range(range_start, range_end);
|
||||
if(editor !== undefined) editor.setDecorations(this.decoration, [{range: decorationRange, hoverMessage: event.user || "anon"}]);
|
||||
if (editor !== undefined) {
|
||||
editor.setDecorations(
|
||||
this.decoration,
|
||||
[{ range: decorationRange, hoverMessage: new vscode.MarkdownString(`### \`${event.user}\`'s cursor`)}]
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
public clear() {
|
||||
|
|
Loading…
Reference in a new issue