Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export function activate(context: vscode.ExtensionContext) {

const tabmix_color = vscode.workspace.getConfiguration('indentRainbow')['tabmixColor'] || "";
const tabmix_decoration_type = "" !== tabmix_color ? vscode.window.createTextEditorDecorationType({
backgroundColor: tabmix_color
backgroundColor: tabmix_color
}) : null;

const ignoreLinePatterns = vscode.workspace.getConfiguration('indentRainbow')['ignoreLinePatterns'] || [];
Expand Down Expand Up @@ -203,7 +203,7 @@ export function activate(context: vscode.ExtensionContext) {
const pos = activeEditor.document.positionAt(match.index);
const line = activeEditor.document.lineAt(pos).lineNumber;
let skip = skipAllErrors || ignoreLines.indexOf(line) !== -1; // true if the lineNumber is in ignoreLines.
var thematch = match[0];
var thematch = match[0];
var ma = (match[0].replace(re, tabs)).length;
/**
* Error handling.
Expand All @@ -228,7 +228,7 @@ export function activate(context: vscode.ExtensionContext) {
if(m[n] === "\t") {
n++;
} else {
n+=tabSize;
n += tabSize;
}
if (colorOnWhiteSpaceOnly && n > l) {
n = l
Expand Down
5 changes: 3 additions & 2 deletions tests/5_jsdoc_indent.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@ class testClass {
test() {
//
}
error() {

error() {
// this should contain indent errors
// ignore // lines
}
}
}