Skip to content

Commit

Permalink
Better decoration style.
Browse files Browse the repository at this point in the history
  • Loading branch information
aioutecism committed Jan 3, 2016
1 parent 1fc8c64 commit c3ddaad
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/Actions/Decorate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@ import {window, Selection, Range, TextEditor, TextEditorDecorationType} from 'vs
export class ActionDecorate {

private static decoration = window.createTextEditorDecorationType({
borderStyle: 'solid',
borderWidth: '0 0 0 1ch',
borderColor: 'rgba(128, 128, 128, 0.7)',
backgroundColor: 'rgba(128, 128, 128, 0.7)',
borderRadius: '2px',
});

Expand All @@ -19,12 +17,6 @@ export class ActionDecorate {
return Promise.resolve(true);
}

static seletions(textEditor: TextEditor, selections: Selection[]): Thenable<boolean> {
textEditor.setDecorations(ActionDecorate.decoration, selections);

return Promise.resolve(true);
}

static remove(textEditor: TextEditor): Thenable<boolean> {
textEditor.setDecorations(ActionDecorate.decoration, []);

Expand Down

0 comments on commit c3ddaad

Please sign in to comment.