forked from fabiospampinato/vscode-todo-plus
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Source : fabiospampinato#268
- Loading branch information
Showing
13 changed files
with
194 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,3 +41,7 @@ coverage | |
typings | ||
out | ||
.vscode-test | ||
|
||
# Emils changes | ||
.history/* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
/* IMPORT */ | ||
|
||
import * as vscode from "vscode"; | ||
import Consts from "../../consts"; | ||
import TodoStartedItem from "../items/todo_started"; | ||
import Line from "./line"; | ||
|
||
/* DECORATION TYPES */ | ||
|
||
const TODO_STARTED = vscode.window.createTextEditorDecorationType({ | ||
color: Consts.colors.started, | ||
rangeBehavior: vscode.DecorationRangeBehavior.ClosedOpen, | ||
dark: { | ||
color: Consts.colors.dark.started, | ||
}, | ||
light: { | ||
color: Consts.colors.light.started, | ||
}, | ||
}); | ||
|
||
/* TODO DONE */ | ||
|
||
class TodoStarted extends Line { | ||
TYPES = [TODO_STARTED]; | ||
|
||
getItemRanges( | ||
todoStarted: TodoStartedItem, | ||
negRange?: vscode.Range | vscode.Range[] | ||
) { | ||
return [ | ||
this.getRangeDifference( | ||
todoStarted.text, | ||
todoStarted.range, | ||
negRange || [Consts.regexes.tag, Consts.regexes.formattedCode] | ||
), | ||
]; | ||
} | ||
} | ||
|
||
/* EXPORT */ | ||
|
||
export default TodoStarted; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.