Skip to content

Commit

Permalink
change: width=0 (new line and EOF)
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshi389111 committed Mar 26, 2023
1 parent 2d2ffb1 commit 2a195b7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Change Log

## 2023-03-28, 0.0.2 release

* Change width=0 of text representing new line and EOF.

## 2023-03-27, 0.0.1 release

* First release.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"displayName": "Visible Whitespace",
"description": "Make whitespace visible.",
"publisher": "yoshi389111",
"version": "0.0.1",
"version": "0.0.2",
"license": "MIT",
"repository": {
"type": "git",
Expand Down
4 changes: 3 additions & 1 deletion src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ export const activate = (context: vscode.ExtensionContext): void => {
// for New Line (U+000A)
const decoLf = vscode.window.createTextEditorDecorationType({
before: {
width: "0",
contentText: config.get<string>('newLine.lf', "\u2193"),
color: newLineColor,
},
Expand All @@ -57,6 +58,7 @@ export const activate = (context: vscode.ExtensionContext): void => {
// for Carriage Return (U+000D) + New Line (U+000A)
const decoCrLf = vscode.window.createTextEditorDecorationType({
before: {
width: "0",
contentText: config.get<string>('newLine.crLf', "\u21b2"),
color: newLineColor,
},
Expand Down Expand Up @@ -96,7 +98,6 @@ export const activate = (context: vscode.ExtensionContext): void => {
const decoWideSpace = vscode.window.createTextEditorDecorationType({
before: {
width: "0",
// contentText: config.get<string>('wideSpace', "\u303c"),
contentText: config.get<string>('wideSpace', "\u2395"),
color: overlayColor,
},
Expand All @@ -122,6 +123,7 @@ export const activate = (context: vscode.ExtensionContext): void => {
// for End of File
const decoEof = vscode.window.createTextEditorDecorationType({
after: {
width: "0",
contentText: config.get<string>('eof.text', "[EOF]"),
color: config.get<string>('eof.color', "rgba(128,128,128,1)"),
},
Expand Down

0 comments on commit 2a195b7

Please sign in to comment.