mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-24 17:31:37 +01:00
tslint
This commit is contained in:
@@ -6,11 +6,9 @@
|
||||
|
||||
import nls = require('vs/nls');
|
||||
import URI from 'vs/base/common/uri';
|
||||
import strings = require('vs/base/common/strings');
|
||||
import EditorCommon = require('vs/editor/common/editorCommon');
|
||||
import Modes = require('vs/editor/common/modes');
|
||||
import winjs = require('vs/base/common/winjs.base');
|
||||
import paths = require('vs/base/common/paths');
|
||||
import http = require('vs/base/common/http');
|
||||
import {IFileService} from 'vs/platform/files/common/files';
|
||||
import {IRequestService} from 'vs/platform/request/common/request';
|
||||
|
||||
@@ -72,16 +72,16 @@ export class EmptyBlocksWithoutComment implements rules.IStyleRule<ts.Block> {
|
||||
context.reportError(node, this.name, this.code);
|
||||
}
|
||||
|
||||
private _hasComment(block: ts.Node): boolean {
|
||||
var insideBlock = block.getChildAt(1);
|
||||
if (insideBlock) {
|
||||
var text = ts.getTextOfNode(insideBlock);
|
||||
if (text && text.trim().length > 0) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
// private _hasComment(block: ts.Node): boolean {
|
||||
// var insideBlock = block.getChildAt(1);
|
||||
// if (insideBlock) {
|
||||
// var text = ts.getTextOfNode(insideBlock);
|
||||
// if (text && text.trim().length > 0) {
|
||||
// return true;
|
||||
// }
|
||||
// }
|
||||
|
||||
return false;
|
||||
}
|
||||
// return false;
|
||||
// }
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user