提交 2a4d9c38 编写于 作者: J Johannes Rieken

remove last @ts-ignore

上级 f6edaf2f
......@@ -65,8 +65,6 @@ class CodeLensContentWidget implements editorBrowser.IContentWidget {
private readonly _disposables: IDisposable[] = [];
private readonly _editor: editorBrowser.ICodeEditor;
// @ts-ignore TODO@Joh unused property
private _symbolRange: Range;
private _widgetPosition: editorBrowser.IContentWidgetPosition;
private _commands: { [id: string]: Command } = Object.create(null);
......@@ -108,7 +106,6 @@ class CodeLensContentWidget implements editorBrowser.IContentWidget {
dispose(): void {
dispose(this._disposables);
this._symbolRange = null;
}
private _updateHeight(): void {
......@@ -160,8 +157,6 @@ class CodeLensContentWidget implements editorBrowser.IContentWidget {
}
setSymbolRange(range: Range): void {
this._symbolRange = range;
const lineNumber = range.startLineNumber;
const column = this._editor.getModel().getLineFirstNonWhitespaceColumn(lineNumber);
this._widgetPosition = {
......
......@@ -21,14 +21,13 @@ export class Menu implements IMenu {
private _onDidChange = new Emitter<IMenu>();
constructor(
// @ts-ignore unused property
private _id: MenuId,
id: MenuId,
startupSignal: TPromise<boolean>,
@ICommandService private _commandService: ICommandService,
@IContextKeyService private _contextKeyService: IContextKeyService
) {
startupSignal.then(_ => {
const menuItems = MenuRegistry.getMenuItems(_id);
const menuItems = MenuRegistry.getMenuItems(id);
const keysFilter = new Set<string>();
let group: MenuItemGroup;
......
......@@ -95,17 +95,16 @@ suite('CommandService', function () {
let callCounter = 0;
let reg = CommandsRegistry.registerCommand('bar', () => callCounter += 1);
// @ts-ignore unused local
let resolve: Function;
let service = new CommandService(new InstantiationService(), new class extends SimpleExtensionService {
onReady() {
return new TPromise<boolean>(_resolve => { resolve = _resolve; });
return new TPromise<boolean>(_resolve => { /*ignore*/ });
}
}, new ContextKeyService(new SimpleConfigurationService()));
return service.executeCommand('bar').then(() => {
reg.dispose();
assert.equal(callCounter, 1);
});
});
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册