提交 09ee89ca 编写于 作者: J Johannes Rieken

remove more unused tslint directives

上级 769bbe2d
...@@ -99,7 +99,6 @@ function lazilyActivateClient( ...@@ -99,7 +99,6 @@ function lazilyActivateClient(
if (!hasActivated && isSupportedDocument(supportedLanguage, textDocument)) { if (!hasActivated && isSupportedDocument(supportedLanguage, textDocument)) {
hasActivated = true; hasActivated = true;
// Force activation // Force activation
// tslint:disable-next-line:no-unused-expression
void lazyClientHost.value; void lazyClientHost.value;
disposables.push(new ManagedFileContextManager(resource => { disposables.push(new ManagedFileContextManager(resource => {
......
...@@ -908,7 +908,6 @@ export class FindWidget extends Widget implements IOverlayWidget, IHorizontalSas ...@@ -908,7 +908,6 @@ export class FindWidget extends Widget implements IOverlayWidget, IHorizontalSas
return null; return null;
} }
try { try {
/* tslint:disable-next-line:no-unused-expression */
new RegExp(value); new RegExp(value);
return null; return null;
} catch (e) { } catch (e) {
......
...@@ -57,7 +57,6 @@ suite('ContextKeyExpr', () => { ...@@ -57,7 +57,6 @@ suite('ContextKeyExpr', () => {
}); });
test('evaluate', () => { test('evaluate', () => {
/* tslint:disable:triple-equals */
let context = createContext({ let context = createContext({
'a': true, 'a': true,
'b': false, 'b': false,
...@@ -94,7 +93,6 @@ suite('ContextKeyExpr', () => { ...@@ -94,7 +93,6 @@ suite('ContextKeyExpr', () => {
testExpression('a && b', true && false); testExpression('a && b', true && false);
testExpression('a && !b && c == 5', true && !false && '5' === '5'); testExpression('a && !b && c == 5', true && !false && '5' === '5');
testExpression('d =~ /e.*/', false); testExpression('d =~ /e.*/', false);
/* tslint:enable:triple-equals */
// precedence test: false && true || true === true because && is evaluated first // precedence test: false && true || true === true because && is evaluated first
testExpression('b && a || a', true); testExpression('b && a || a', true);
......
...@@ -21,7 +21,6 @@ class WorkbenchContribution { ...@@ -21,7 +21,6 @@ class WorkbenchContribution {
constructor( constructor(
@IKeybindingService keybindingsService: IKeybindingService, @IKeybindingService keybindingsService: IKeybindingService,
) { ) {
// tslint:disable-next-line: no-unused-expression
new CodeActionWorkbenchContribution(codeActionsExtensionPoint, keybindingsService); new CodeActionWorkbenchContribution(codeActionsExtensionPoint, keybindingsService);
} }
} }
......
...@@ -54,7 +54,6 @@ export abstract class SimpleFindWidget extends Widget { ...@@ -54,7 +54,6 @@ export abstract class SimpleFindWidget extends Widget {
return null; return null;
} }
try { try {
/* tslint:disable-next-line:no-unused-expression */
new RegExp(value); new RegExp(value);
return null; return null;
} catch (e) { } catch (e) {
......
...@@ -439,7 +439,6 @@ export class SearchWidget extends Widget { ...@@ -439,7 +439,6 @@ export class SearchWidget extends Widget {
return null; return null;
} }
try { try {
// tslint:disable-next-line: no-unused-expression
new RegExp(value, 'u'); new RegExp(value, 'u');
} catch (e) { } catch (e) {
return { content: e.message }; return { content: e.message };
......
...@@ -33,7 +33,6 @@ suite('ExtHostDiagnostics', () => { ...@@ -33,7 +33,6 @@ suite('ExtHostDiagnostics', () => {
assert.throws(() => collection.name); assert.throws(() => collection.name);
assert.throws(() => collection.clear()); assert.throws(() => collection.clear());
assert.throws(() => collection.delete(URI.parse('aa:bb'))); assert.throws(() => collection.delete(URI.parse('aa:bb')));
// tslint:disable-next-line:semicolon
assert.throws(() => collection.forEach(() => { })); assert.throws(() => collection.forEach(() => { }));
assert.throws(() => collection.get(URI.parse('aa:bb'))); assert.throws(() => collection.get(URI.parse('aa:bb')));
assert.throws(() => collection.has(URI.parse('aa:bb'))); assert.throws(() => collection.has(URI.parse('aa:bb')));
......
...@@ -61,7 +61,6 @@ suite('MainThreadDocumentsAndEditors', () => { ...@@ -61,7 +61,6 @@ suite('MainThreadDocumentsAndEditors', () => {
onAfterOperation = Event.None; onAfterOperation = Event.None;
}; };
/* tslint:disable */
new MainThreadDocumentsAndEditors( new MainThreadDocumentsAndEditors(
SingleProxyRPCProtocol(new class extends mock<ExtHostDocumentsAndEditorsShape>() { SingleProxyRPCProtocol(new class extends mock<ExtHostDocumentsAndEditorsShape>() {
$acceptDocumentsAndEditorsDelta(delta: IDocumentsAndEditorsDelta) { deltas.push(delta); } $acceptDocumentsAndEditorsDelta(delta: IDocumentsAndEditorsDelta) { deltas.push(delta); }
...@@ -86,7 +85,6 @@ suite('MainThreadDocumentsAndEditors', () => { ...@@ -86,7 +85,6 @@ suite('MainThreadDocumentsAndEditors', () => {
}, },
TestEnvironmentService TestEnvironmentService
); );
/* tslint:enable */
}); });
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册