mirror of
https://github.com/microsoft/vscode.git
synced 2026-08-11 08:16:42 +01:00
Enabled the noUnusedLocals and added @tsignore
This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
"experimentalDecorators": true,
|
||||
"declaration": true,
|
||||
"noImplicitReturns": true,
|
||||
"noUnusedLocals": true,
|
||||
"baseUrl": ".",
|
||||
"typeRoots": [
|
||||
"typings"
|
||||
|
||||
@@ -50,6 +50,7 @@ export function renderFormattedText(formattedText: string, options: RenderOption
|
||||
export function renderMarkdown(markdown: IMarkdownString, options: RenderOptions = {}): HTMLElement {
|
||||
const element = createElement(options);
|
||||
|
||||
//@ts-ignore unused local
|
||||
const { codeBlockRenderer, actionCallback } = options;
|
||||
|
||||
// signal to code-block render that the
|
||||
|
||||
@@ -90,6 +90,7 @@ export class InputBox extends Widget {
|
||||
private placeholder: string;
|
||||
private ariaLabel: string;
|
||||
private validation: IInputValidator;
|
||||
// @ts-ignore unused property
|
||||
private showValidationMessage: boolean;
|
||||
private state = 'idle';
|
||||
private cachedHeight: number;
|
||||
|
||||
@@ -52,6 +52,7 @@ interface IRenderedElement {
|
||||
index: number;
|
||||
}
|
||||
|
||||
// @ts-ignore unused generic parameter
|
||||
class TraitRenderer<T, D> implements IRenderer<T, ITraitTemplateData>
|
||||
{
|
||||
private rendered: IRenderedElement[] = [];
|
||||
|
||||
@@ -40,6 +40,7 @@ export class ProgressBar {
|
||||
private toUnbind: IDisposable[];
|
||||
private workedVal: number;
|
||||
private element: Builder;
|
||||
// @ts-ignore unused property
|
||||
private animationRunning: boolean;
|
||||
private bit: HTMLElement;
|
||||
private totalWork: number;
|
||||
|
||||
@@ -51,6 +51,7 @@ export enum Orientation {
|
||||
export class Sash extends EventEmitter {
|
||||
|
||||
private $e: Builder;
|
||||
// @ts-ignore unused property
|
||||
private gesture: Gesture;
|
||||
private layoutProvider: ISashLayoutProvider;
|
||||
private isDisabled: boolean;
|
||||
@@ -140,8 +141,9 @@ export class Sash extends EventEmitter {
|
||||
|
||||
let $window = $(window);
|
||||
let containerCSSClass = `${this.getOrientation()}-cursor-container${isMacintosh ? '-mac' : ''}`;
|
||||
|
||||
// @ts-ignore unused local
|
||||
let lastCurrentX = startX;
|
||||
// @ts-ignore unused local
|
||||
let lastCurrentY = startY;
|
||||
|
||||
$window.on('mousemove', (e) => {
|
||||
@@ -191,7 +193,9 @@ export class Sash extends EventEmitter {
|
||||
currentY: startY
|
||||
});
|
||||
|
||||
// @ts-ignore unused local
|
||||
let lastCurrentX = startX;
|
||||
// @ts-ignore unused local
|
||||
let lastCurrentY = startY;
|
||||
|
||||
listeners.push(DOM.addDisposableListener(this.$e.getHTMLElement(), EventType.Change, (event: GestureEvent) => {
|
||||
|
||||
@@ -36,6 +36,7 @@ export class SelectBox extends Widget {
|
||||
private selectElement: HTMLSelectElement;
|
||||
private options: string[];
|
||||
private selected: number;
|
||||
// @ts-ignore unused property
|
||||
private container: HTMLElement;
|
||||
private _onDidSelect: Emitter<ISelectData>;
|
||||
private toDispose: IDisposable[];
|
||||
|
||||
@@ -338,6 +338,7 @@ export class PanelView implements IDisposable {
|
||||
|
||||
readonly onDidSashChange: Event<void>;
|
||||
|
||||
// @ts-ignore unused property
|
||||
constructor(private container: HTMLElement, options: IPanelViewOptions = {}) {
|
||||
this.dnd = !!options.dnd;
|
||||
this.el = append(container, $('.monaco-panel-view'));
|
||||
|
||||
@@ -76,7 +76,7 @@ export class SplitView implements IDisposable {
|
||||
get length(): number {
|
||||
return this.viewItems.length;
|
||||
}
|
||||
|
||||
// @ts-ignore unused property
|
||||
constructor(private container: HTMLElement, options: ISplitViewOptions = {}) {
|
||||
this.orientation = types.isUndefined(options.orientation) ? Orientation.VERTICAL : options.orientation;
|
||||
|
||||
|
||||
@@ -510,6 +510,7 @@ export class Queue<T> extends Limiter<T> {
|
||||
* A helper to organize queues per resource. The ResourceQueue makes sure to manage queues per resource
|
||||
* by disposing them once the queue is empty.
|
||||
*/
|
||||
// @ts-ignore unused generic parameter
|
||||
export class ResourceQueue<T> {
|
||||
private queues: { [path: string]: Queue<void> };
|
||||
|
||||
|
||||
@@ -57,6 +57,7 @@ export class LcsDiff2 {
|
||||
private ids_for_x: number[];
|
||||
private ids_for_y: number[];
|
||||
|
||||
// @ts-ignore unused property
|
||||
private hashFunc: IHashFunction;
|
||||
|
||||
private resultX: boolean[];
|
||||
|
||||
@@ -51,6 +51,7 @@ export class PagedModel<T> implements IPagedModel<T> {
|
||||
|
||||
get length(): number { return this.pager.total; }
|
||||
|
||||
// @ts-ignore unused property
|
||||
constructor(private arg: IPager<T> | T[], private pageTimeout: number = 500) {
|
||||
this.pager = isArray(arg) ? singlePagePager<T>(arg) : arg;
|
||||
|
||||
|
||||
@@ -163,6 +163,7 @@ export abstract class AbstractSystemVariables implements ISystemVariables {
|
||||
}
|
||||
|
||||
resolveAny<T>(value: T): T;
|
||||
// @ts-ignore unused generic parameter
|
||||
resolveAny<T>(value: any): any {
|
||||
if (Types.isString(value)) {
|
||||
return this.resolveString(value);
|
||||
@@ -197,6 +198,7 @@ export abstract class AbstractSystemVariables implements ISystemVariables {
|
||||
}
|
||||
|
||||
private __resolveAnyLiteral<T>(values: T): T;
|
||||
// @ts-ignore unused generic parameter
|
||||
private __resolveAnyLiteral<T>(values: any): any {
|
||||
let result: IStringDictionary<string | IStringDictionary<string> | string[]> = Object.create(null);
|
||||
Object.keys(values).forEach(key => {
|
||||
|
||||
@@ -18,6 +18,7 @@ export class Protocol implements IMessagePassingProtocol {
|
||||
private _onMessage: Event<any>;
|
||||
get onMessage(): Event<any> { return this._onMessage; }
|
||||
|
||||
// @ts-ignore unused property
|
||||
constructor(private sender: Sender, private onMessageEvent: Event<any>) {
|
||||
const emitter = new Emitter<any>();
|
||||
onMessageEvent(msg => emitter.fire(msg));
|
||||
|
||||
@@ -352,6 +352,7 @@ export function scoreItem<T>(item: T, query: IPreparedQuery, fuzzy: boolean, acc
|
||||
return itemScore;
|
||||
}
|
||||
|
||||
// @ts-ignore unused generic parameter
|
||||
function doScoreItem<T>(label: string, description: string, path: string, query: IPreparedQuery, fuzzy: boolean): IItemScore {
|
||||
|
||||
// 1.) treat identity matches on full path highest
|
||||
|
||||
@@ -64,6 +64,7 @@ const defaultStyles: _.ITreeStyles = {
|
||||
export class Tree extends Events.EventEmitter implements _.ITree {
|
||||
|
||||
private container: HTMLElement;
|
||||
// @ts-ignore unused property
|
||||
private configuration: _.ITreeConfiguration;
|
||||
private options: _.ITreeOptions;
|
||||
|
||||
|
||||
@@ -205,7 +205,7 @@ export class Item extends Events.EventEmitter {
|
||||
public next: Item;
|
||||
public firstChild: Item;
|
||||
public lastChild: Item;
|
||||
|
||||
// @ts-ignore unused property
|
||||
private userContent: HTMLElement;
|
||||
|
||||
private height: number;
|
||||
|
||||
@@ -392,7 +392,7 @@ export class TreeView extends HeightMap {
|
||||
|
||||
private isRefreshing = false;
|
||||
private refreshingPreviousChildrenIds: { [id: string]: string[] } = {};
|
||||
|
||||
// @ts-ignore unused property
|
||||
private dragAndDropListeners: { (): void; }[];
|
||||
private currentDragAndDropData: _.IDragAndDropData;
|
||||
private currentDropElement: any;
|
||||
|
||||
@@ -1439,7 +1439,7 @@ suite('TreeModel - Dynamic data model', () => {
|
||||
|
||||
var gotTimes = 0;
|
||||
var gotListener = dataModel.addListener('gotChildren', (element) => { gotTimes++; });
|
||||
|
||||
// @ts-ignore unused local
|
||||
var p1, p2;
|
||||
|
||||
var p1Completes = [];
|
||||
@@ -1517,7 +1517,7 @@ suite('TreeModel - Dynamic data model', () => {
|
||||
var gotTimes = 0;
|
||||
var getListener = dataModel.addListener('getChildren', (element) => { getTimes++; });
|
||||
var gotListener = dataModel.addListener('gotChildren', (element) => { gotTimes++; });
|
||||
|
||||
// @ts-ignore unused local
|
||||
var p1, p2;
|
||||
|
||||
var p1Complete;
|
||||
|
||||
@@ -13,6 +13,7 @@ import { IEnvironmentService } from 'vs/platform/environment/common/environment'
|
||||
import product from 'vs/platform/node/product';
|
||||
|
||||
declare type OnNodeCachedDataArgs = [{ errorCode: string, path: string, detail?: string }, { path: string, length: number }];
|
||||
// @ts-ignore unused local
|
||||
declare const MonacoEnvironment: { onNodeCachedData: OnNodeCachedDataArgs[] };
|
||||
|
||||
export class NodeCachedDataCleaner {
|
||||
|
||||
@@ -76,6 +76,7 @@ export class CodeApplication {
|
||||
@ILogService private logService: ILogService,
|
||||
@IEnvironmentService private environmentService: IEnvironmentService,
|
||||
@ILifecycleService private lifecycleService: ILifecycleService,
|
||||
// @ts-ignore unused injected service
|
||||
@IConfigurationService private configurationService: ConfigurationService,
|
||||
@IStorageService private storageService: IStorageService,
|
||||
@IHistoryMainService private historyService: IHistoryMainService
|
||||
|
||||
@@ -72,6 +72,7 @@ export class CodeMenu {
|
||||
@IEnvironmentService private environmentService: IEnvironmentService,
|
||||
@ITelemetryService private telemetryService: ITelemetryService,
|
||||
@IHistoryMainService private historyService: IHistoryMainService,
|
||||
// @ts-ignore unused injected service
|
||||
@IWorkspacesMainService private workspacesService: IWorkspacesMainService
|
||||
) {
|
||||
this.extensionViewlets = [];
|
||||
|
||||
@@ -143,6 +143,7 @@ export class WindowsManager implements IWindowsMainService {
|
||||
@IEnvironmentService private environmentService: IEnvironmentService,
|
||||
@ILifecycleService private lifecycleService: ILifecycleService,
|
||||
@IBackupMainService private backupService: IBackupMainService,
|
||||
// @ts-ignore unused injected service
|
||||
@ITelemetryService private telemetryService: ITelemetryService,
|
||||
@IConfigurationService private configurationService: IConfigurationService,
|
||||
@IHistoryMainService private historyService: IHistoryMainService,
|
||||
@@ -1672,6 +1673,7 @@ class WorkspacesManager {
|
||||
|
||||
constructor(
|
||||
private workspacesService: IWorkspacesMainService,
|
||||
// @ts-ignore unused injected service
|
||||
private lifecycleService: ILifecycleService,
|
||||
private backupService: IBackupMainService,
|
||||
private environmentService: IEnvironmentService,
|
||||
|
||||
@@ -54,7 +54,7 @@ export class TextAreaHandler extends ViewPart {
|
||||
|
||||
private readonly _viewController: ViewController;
|
||||
private readonly _viewHelper: ITextAreaHandlerHelper;
|
||||
|
||||
// @ts-ignore unused property
|
||||
private _pixelRatio: number;
|
||||
private _accessibilitySupport: platform.AccessibilitySupport;
|
||||
private _contentLeft: number;
|
||||
|
||||
@@ -90,6 +90,7 @@ export class View extends ViewEventHandler {
|
||||
private overflowGuardContainer: FastDomNode<HTMLElement>;
|
||||
|
||||
// Actual mutable state
|
||||
// @ts-ignore unused property
|
||||
private _isDisposed: boolean;
|
||||
|
||||
private _renderAnimationFrame: IDisposable;
|
||||
|
||||
@@ -16,6 +16,7 @@ import { editorLineHighlight, editorLineHighlightBorder } from 'vs/editor/common
|
||||
export class CurrentLineHighlightOverlay extends DynamicViewOverlay {
|
||||
private _context: ViewContext;
|
||||
private _lineHeight: number;
|
||||
// @ts-ignore unused property
|
||||
private _readOnly: boolean;
|
||||
private _renderLineHighlight: 'none' | 'gutter' | 'line' | 'all';
|
||||
private _selectionIsEmpty: boolean;
|
||||
|
||||
@@ -20,6 +20,7 @@ export class Rulers extends ViewPart {
|
||||
public domNode: FastDomNode<HTMLElement>;
|
||||
private _renderedRulers: FastDomNode<HTMLElement>[];
|
||||
private _rulers: number[];
|
||||
// @ts-ignore unused property
|
||||
private _height: number;
|
||||
private _typicalHalfwidthCharacterWidth: number;
|
||||
|
||||
|
||||
@@ -764,6 +764,7 @@ registerThemingParticipant((theme, collector) => {
|
||||
});
|
||||
|
||||
@editorAction
|
||||
// @ts-ignore @editorAction uses the class
|
||||
class DiffReviewNext extends EditorAction {
|
||||
constructor() {
|
||||
super({
|
||||
@@ -787,6 +788,7 @@ class DiffReviewNext extends EditorAction {
|
||||
}
|
||||
|
||||
@editorAction
|
||||
// @ts-ignore @editorAction uses the class
|
||||
class DiffReviewPrev extends EditorAction {
|
||||
constructor() {
|
||||
super({
|
||||
|
||||
@@ -1036,7 +1036,7 @@ export abstract class CommonCodeEditor extends Disposable implements editorCommo
|
||||
class EditorContextKeysManager extends Disposable {
|
||||
|
||||
private _editor: CommonCodeEditor;
|
||||
|
||||
// @ts-ignore unused property
|
||||
private _editorId: IContextKey<string>;
|
||||
private _editorFocus: IContextKey<boolean>;
|
||||
private _editorTextFocus: IContextKey<boolean>;
|
||||
|
||||
@@ -1650,7 +1650,7 @@ export namespace CoreEditingCommands {
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
// @ts-ignore unused namespace
|
||||
namespace Config {
|
||||
|
||||
function findFocusedEditor(accessor: ServicesAccessor): editorCommon.ICommonCodeEditor {
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
export class Uint8Matrix {
|
||||
|
||||
private _data: Uint8Array;
|
||||
// @ts-ignore unused property
|
||||
private _rows: number;
|
||||
private _cols: number;
|
||||
|
||||
|
||||
@@ -24,6 +24,7 @@ interface IProcessedBracketPair {
|
||||
export class OnEnterSupport {
|
||||
|
||||
private readonly _brackets: IProcessedBracketPair[];
|
||||
// @ts-ignore unused property
|
||||
private readonly _indentationRules: IndentationRule;
|
||||
private readonly _regExpRules: OnEnterRule[];
|
||||
|
||||
|
||||
@@ -114,6 +114,7 @@ class WordBasedCompletionItemProvider implements modes.ISuggestSupport {
|
||||
|
||||
private readonly _workerManager: WorkerManager;
|
||||
private readonly _configurationService: ITextResourceConfigurationService;
|
||||
// @ts-ignore unused injected service
|
||||
private readonly _modeService: IModeService;
|
||||
private readonly _modelService: IModelService;
|
||||
|
||||
|
||||
@@ -618,6 +618,7 @@ function _renderLine(input: ResolvedRenderLineInput, sb: IStringBuilder): Render
|
||||
{
|
||||
let _charIndex = charIndex;
|
||||
let _tabsCharDelta = tabsCharDelta;
|
||||
// @ts-ignore unused local
|
||||
let _charOffsetInPart = charOffsetInPart;
|
||||
|
||||
for (; _charIndex < partEndIndex; _charIndex++) {
|
||||
|
||||
@@ -20,6 +20,7 @@ import { editorBracketMatchBackground, editorBracketMatchBorder } from 'vs/edito
|
||||
import { ModelDecorationOptions } from 'vs/editor/common/model/textModelWithDecorations';
|
||||
|
||||
@editorAction
|
||||
// @ts-ignore @editorAction uses the class
|
||||
class SelectBracketAction extends EditorAction {
|
||||
constructor() {
|
||||
super({
|
||||
|
||||
@@ -36,6 +36,7 @@ class MoveCaretAction extends EditorAction {
|
||||
}
|
||||
|
||||
@editorAction
|
||||
// @ts-ignore @editorAction uses the class
|
||||
class MoveCaretLeftAction extends MoveCaretAction {
|
||||
constructor() {
|
||||
super(true, {
|
||||
@@ -48,6 +49,7 @@ class MoveCaretLeftAction extends MoveCaretAction {
|
||||
}
|
||||
|
||||
@editorAction
|
||||
// @ts-ignore @editorAction uses the class
|
||||
class MoveCaretRightAction extends MoveCaretAction {
|
||||
constructor() {
|
||||
super(false, {
|
||||
|
||||
@@ -13,6 +13,7 @@ import { editorAction, EditorAction, ServicesAccessor } from 'vs/editor/common/e
|
||||
import { ReplaceCommand } from 'vs/editor/common/commands/replaceCommand';
|
||||
|
||||
@editorAction
|
||||
// @ts-ignore @editorAction uses the class
|
||||
class TransposeLettersAction extends EditorAction {
|
||||
|
||||
constructor() {
|
||||
|
||||
@@ -64,6 +64,7 @@ abstract class ExecCommandAction extends EditorAction {
|
||||
}
|
||||
|
||||
@conditionalEditorAction(supportsCut)
|
||||
// @ts-ignore @editorAction uses the class
|
||||
class ExecCommandCutAction extends ExecCommandAction {
|
||||
|
||||
constructor() {
|
||||
@@ -102,6 +103,7 @@ class ExecCommandCutAction extends ExecCommandAction {
|
||||
}
|
||||
|
||||
@conditionalEditorAction(supportsCopy)
|
||||
// @ts-ignore @editorAction uses the class
|
||||
class ExecCommandCopyAction extends ExecCommandAction {
|
||||
|
||||
constructor() {
|
||||
@@ -141,6 +143,7 @@ class ExecCommandCopyAction extends ExecCommandAction {
|
||||
}
|
||||
|
||||
@conditionalEditorAction(supportsPaste)
|
||||
// @ts-ignore @editorAction uses the class
|
||||
class ExecCommandPasteAction extends ExecCommandAction {
|
||||
|
||||
constructor() {
|
||||
@@ -170,6 +173,7 @@ class ExecCommandPasteAction extends ExecCommandAction {
|
||||
}
|
||||
|
||||
@conditionalEditorAction(supportsCopyWithSyntaxHighlighting)
|
||||
// @ts-ignore @editorAction uses the class
|
||||
class ExecCommandCopyWithSyntaxHighlightingAction extends ExecCommandAction {
|
||||
|
||||
constructor() {
|
||||
|
||||
@@ -65,6 +65,7 @@ class CodeLensContentWidget implements editorBrowser.IContentWidget {
|
||||
private readonly _disposables: IDisposable[] = [];
|
||||
private readonly _editor: editorBrowser.ICodeEditor;
|
||||
|
||||
// @ts-ignore unused property
|
||||
private _symbolRange: Range;
|
||||
private _widgetPosition: editorBrowser.IContentWidgetPosition;
|
||||
private _commands: { [id: string]: Command } = Object.create(null);
|
||||
|
||||
@@ -66,7 +66,7 @@ export class ColorPickerBody extends Disposable {
|
||||
private saturationBox: SaturationBox;
|
||||
private hueStrip: Strip;
|
||||
private opacityStrip: Strip;
|
||||
|
||||
// @ts-ignore unused property
|
||||
constructor(private container: HTMLElement, private model: ColorPickerModel, private pixelRatio: number) {
|
||||
super();
|
||||
|
||||
|
||||
@@ -43,6 +43,7 @@ abstract class CommentLineAction extends EditorAction {
|
||||
}
|
||||
|
||||
@editorAction
|
||||
// @ts-ignore @editorAction uses the class
|
||||
class ToggleCommentLineAction extends CommentLineAction {
|
||||
constructor() {
|
||||
super(Type.Toggle, {
|
||||
@@ -59,6 +60,7 @@ class ToggleCommentLineAction extends CommentLineAction {
|
||||
}
|
||||
|
||||
@editorAction
|
||||
// @ts-ignore @editorAction uses the class
|
||||
class AddLineCommentAction extends CommentLineAction {
|
||||
constructor() {
|
||||
super(Type.ForceAdd, {
|
||||
@@ -75,6 +77,7 @@ class AddLineCommentAction extends CommentLineAction {
|
||||
}
|
||||
|
||||
@editorAction
|
||||
// @ts-ignore @editorAction uses the class
|
||||
class RemoveLineCommentAction extends CommentLineAction {
|
||||
constructor() {
|
||||
super(Type.ForceRemove, {
|
||||
@@ -91,6 +94,7 @@ class RemoveLineCommentAction extends CommentLineAction {
|
||||
}
|
||||
|
||||
@editorAction
|
||||
// @ts-ignore @editorAction uses the class
|
||||
class BlockCommentAction extends EditorAction {
|
||||
|
||||
constructor() {
|
||||
|
||||
@@ -218,6 +218,7 @@ export class ContextMenuController implements IEditorContribution {
|
||||
}
|
||||
|
||||
@editorAction
|
||||
// @ts-ignore @editorAction uses the class
|
||||
class ShowContextMenu extends EditorAction {
|
||||
|
||||
constructor() {
|
||||
|
||||
@@ -363,6 +363,7 @@ function foldingArgumentsConstraint(args: any) {
|
||||
}
|
||||
|
||||
@editorAction
|
||||
// @ts-ignore @editorAction uses the class
|
||||
class UnfoldAction extends FoldingAction<FoldingArguments> {
|
||||
|
||||
constructor() {
|
||||
@@ -407,6 +408,7 @@ class UnfoldAction extends FoldingAction<FoldingArguments> {
|
||||
}
|
||||
|
||||
@editorAction
|
||||
// @ts-ignore @editorAction uses the class
|
||||
class UnFoldRecursivelyAction extends FoldingAction<void> {
|
||||
|
||||
constructor() {
|
||||
@@ -428,6 +430,7 @@ class UnFoldRecursivelyAction extends FoldingAction<void> {
|
||||
}
|
||||
|
||||
@editorAction
|
||||
// @ts-ignore @editorAction uses the class
|
||||
class FoldAction extends FoldingAction<FoldingArguments> {
|
||||
|
||||
constructor() {
|
||||
@@ -472,6 +475,7 @@ class FoldAction extends FoldingAction<FoldingArguments> {
|
||||
}
|
||||
|
||||
@editorAction
|
||||
// @ts-ignore @editorAction uses the class
|
||||
class FoldRecursivelyAction extends FoldingAction<void> {
|
||||
|
||||
constructor() {
|
||||
@@ -498,6 +502,7 @@ class FoldRecursivelyAction extends FoldingAction<void> {
|
||||
}
|
||||
|
||||
@editorAction
|
||||
// @ts-ignore @editorAction uses the class
|
||||
class FoldAllAction extends FoldingAction<void> {
|
||||
|
||||
constructor() {
|
||||
@@ -519,6 +524,7 @@ class FoldAllAction extends FoldingAction<void> {
|
||||
}
|
||||
|
||||
@editorAction
|
||||
// @ts-ignore @editorAction uses the class
|
||||
class UnfoldAllAction extends FoldingAction<void> {
|
||||
|
||||
constructor() {
|
||||
|
||||
@@ -54,6 +54,7 @@ function alertFormattingEdits(edits: editorCommon.ISingleEditOperation[]): void
|
||||
}
|
||||
|
||||
@commonEditorContribution
|
||||
// @ts-ignore @editorAction uses the class
|
||||
class FormatOnType implements editorCommon.IEditorContribution {
|
||||
|
||||
private static ID = 'editor.contrib.autoFormat';
|
||||
@@ -180,6 +181,7 @@ class FormatOnType implements editorCommon.IEditorContribution {
|
||||
}
|
||||
|
||||
@commonEditorContribution
|
||||
// @ts-ignore @editorAction uses the class
|
||||
class FormatOnPaste implements editorCommon.IEditorContribution {
|
||||
|
||||
private static ID = 'editor.contrib.formatOnPaste';
|
||||
|
||||
@@ -27,6 +27,7 @@ import { DefinitionAction, DefinitionActionConfig } from './goToDeclarationComma
|
||||
import { ClickLinkGesture, ClickLinkMouseEvent, ClickLinkKeyboardEvent } from 'vs/editor/contrib/goToDeclaration/browser/clickLinkGesture';
|
||||
|
||||
@editorContribution
|
||||
// @ts-ignore @editorAction uses the class
|
||||
class GotoDefinitionWithMouseEditorContribution implements editorCommon.IEditorContribution {
|
||||
|
||||
private static ID = 'editor.contrib.gotodefinitionwithmouse';
|
||||
|
||||
@@ -504,6 +504,7 @@ class MarkerController implements editorCommon.IEditorContribution {
|
||||
}
|
||||
|
||||
@editorAction
|
||||
// @ts-ignore @editorAction uses the class
|
||||
class NextMarkerAction extends MarkerNavigationAction {
|
||||
constructor() {
|
||||
super(true, {
|
||||
@@ -520,6 +521,7 @@ class NextMarkerAction extends MarkerNavigationAction {
|
||||
}
|
||||
|
||||
@editorAction
|
||||
// @ts-ignore @editorAction uses the class
|
||||
class PrevMarkerAction extends MarkerNavigationAction {
|
||||
constructor() {
|
||||
super(false, {
|
||||
|
||||
@@ -170,6 +170,7 @@ export class ModesHoverController implements editorCommon.IEditorContribution {
|
||||
}
|
||||
|
||||
@editorAction
|
||||
// @ts-ignore @editorAction uses the class
|
||||
class ShowHoverAction extends EditorAction {
|
||||
|
||||
constructor() {
|
||||
|
||||
@@ -34,6 +34,7 @@ class InPlaceReplaceController implements IEditorContribution {
|
||||
});
|
||||
|
||||
private editor: ICommonCodeEditor;
|
||||
// @ts-ignore unused property
|
||||
private requestIdPool: number;
|
||||
private currentRequest: TPromise<IInplaceReplaceSupportResult>;
|
||||
private decorationRemover: TPromise<void>;
|
||||
@@ -141,6 +142,7 @@ class InPlaceReplaceController implements IEditorContribution {
|
||||
}
|
||||
|
||||
@editorAction
|
||||
// @ts-ignore @editorAction uses the class
|
||||
class InPlaceReplaceUp extends EditorAction {
|
||||
|
||||
constructor() {
|
||||
@@ -166,6 +168,7 @@ class InPlaceReplaceUp extends EditorAction {
|
||||
}
|
||||
|
||||
@editorAction
|
||||
// @ts-ignore @editorAction uses the class
|
||||
class InPlaceReplaceDown extends EditorAction {
|
||||
|
||||
constructor() {
|
||||
|
||||
@@ -333,6 +333,7 @@ export class ReindentLinesAction extends EditorAction {
|
||||
export class AutoIndentOnPasteCommand implements ICommand {
|
||||
|
||||
private _edits: TextEdit[];
|
||||
// @ts-ignore @editorAction unused property
|
||||
private _newEol: EndOfLineSequence;
|
||||
|
||||
private _initialSelection: Selection;
|
||||
|
||||
@@ -49,6 +49,7 @@ abstract class AbstractCopyLinesAction extends EditorAction {
|
||||
}
|
||||
|
||||
@editorAction
|
||||
// @ts-ignore @editorAction uses the class
|
||||
class CopyLinesUpAction extends AbstractCopyLinesAction {
|
||||
constructor() {
|
||||
super(false, {
|
||||
@@ -66,6 +67,7 @@ class CopyLinesUpAction extends AbstractCopyLinesAction {
|
||||
}
|
||||
|
||||
@editorAction
|
||||
// @ts-ignore @editorAction uses the class
|
||||
class CopyLinesDownAction extends AbstractCopyLinesAction {
|
||||
constructor() {
|
||||
super(true, {
|
||||
@@ -110,6 +112,7 @@ abstract class AbstractMoveLinesAction extends EditorAction {
|
||||
}
|
||||
|
||||
@editorAction
|
||||
// @ts-ignore @editorAction uses the class
|
||||
class MoveLinesUpAction extends AbstractMoveLinesAction {
|
||||
constructor() {
|
||||
super(false, {
|
||||
@@ -127,6 +130,7 @@ class MoveLinesUpAction extends AbstractMoveLinesAction {
|
||||
}
|
||||
|
||||
@editorAction
|
||||
// @ts-ignore @editorAction uses the class
|
||||
class MoveLinesDownAction extends AbstractMoveLinesAction {
|
||||
constructor() {
|
||||
super(true, {
|
||||
@@ -166,6 +170,7 @@ abstract class AbstractSortLinesAction extends EditorAction {
|
||||
}
|
||||
|
||||
@editorAction
|
||||
// @ts-ignore @editorAction uses the class
|
||||
class SortLinesAscendingAction extends AbstractSortLinesAction {
|
||||
constructor() {
|
||||
super(false, {
|
||||
@@ -178,6 +183,7 @@ class SortLinesAscendingAction extends AbstractSortLinesAction {
|
||||
}
|
||||
|
||||
@editorAction
|
||||
// @ts-ignore @editorAction uses the class
|
||||
class SortLinesDescendingAction extends AbstractSortLinesAction {
|
||||
constructor() {
|
||||
super(true, {
|
||||
@@ -276,6 +282,7 @@ abstract class AbstractRemoveLinesAction extends EditorAction {
|
||||
}
|
||||
|
||||
@editorAction
|
||||
// @ts-ignore @editorAction uses the class
|
||||
class DeleteLinesAction extends AbstractRemoveLinesAction {
|
||||
|
||||
constructor() {
|
||||
@@ -329,6 +336,7 @@ export class IndentLinesAction extends EditorAction {
|
||||
}
|
||||
|
||||
@editorAction
|
||||
// @ts-ignore @editorAction uses the class
|
||||
class OutdentLinesAction extends EditorAction {
|
||||
constructor() {
|
||||
super({
|
||||
|
||||
@@ -148,6 +148,7 @@ class LinkDetector implements editorCommon.IEditorContribution {
|
||||
private activeLinkDecorationId: string;
|
||||
private openerService: IOpenerService;
|
||||
private messageService: IMessageService;
|
||||
// @ts-ignore unused injected service
|
||||
private editorWorkerService: IEditorWorkerService;
|
||||
private currentOccurrences: { [decorationId: string]: LinkOccurrence; };
|
||||
|
||||
@@ -389,6 +390,7 @@ class LinkDetector implements editorCommon.IEditorContribution {
|
||||
}
|
||||
|
||||
@editorAction
|
||||
// @ts-ignore @editorAction uses the class
|
||||
class OpenLinkAction extends EditorAction {
|
||||
|
||||
constructor() {
|
||||
|
||||
@@ -105,6 +105,7 @@ export class InsertCursorBelow extends EditorAction {
|
||||
}
|
||||
|
||||
@editorAction
|
||||
// @ts-ignore @editorAction uses the class
|
||||
class InsertCursorAtEndOfEachLineSelected extends EditorAction {
|
||||
|
||||
constructor() {
|
||||
|
||||
@@ -164,6 +164,7 @@ abstract class AbstractSmartSelect extends EditorAction {
|
||||
}
|
||||
|
||||
@editorAction
|
||||
// @ts-ignore @editorAction uses the class
|
||||
class GrowSelectionAction extends AbstractSmartSelect {
|
||||
constructor() {
|
||||
super(true, {
|
||||
@@ -181,6 +182,7 @@ class GrowSelectionAction extends AbstractSmartSelect {
|
||||
}
|
||||
|
||||
@editorAction
|
||||
// @ts-ignore @editorAction uses the class
|
||||
class ShrinkSelectionAction extends AbstractSmartSelect {
|
||||
constructor() {
|
||||
super(false, {
|
||||
|
||||
@@ -207,6 +207,7 @@ class SuggestionDetails {
|
||||
private widget: SuggestWidget,
|
||||
private editor: ICodeEditor,
|
||||
private markdownRenderer: MarkdownRenderer,
|
||||
// @ts-ignore unused property
|
||||
private triggerKeybindingLabel: string
|
||||
) {
|
||||
this.disposables = [];
|
||||
|
||||
@@ -491,6 +491,7 @@ class WordHighlightNavigationAction extends EditorAction {
|
||||
}
|
||||
|
||||
@editorAction
|
||||
// @ts-ignore @editorAction uses the class
|
||||
class NextWordHighlightAction extends WordHighlightNavigationAction {
|
||||
constructor() {
|
||||
super(true, {
|
||||
@@ -507,6 +508,7 @@ class NextWordHighlightAction extends WordHighlightNavigationAction {
|
||||
}
|
||||
|
||||
@editorAction
|
||||
// @ts-ignore @editorAction uses the class
|
||||
class PrevWordHighlightAction extends WordHighlightNavigationAction {
|
||||
constructor() {
|
||||
super(false, {
|
||||
|
||||
@@ -335,6 +335,7 @@ class AccessibilityHelpWidget extends Widget implements IOverlayWidget {
|
||||
}
|
||||
|
||||
@editorAction
|
||||
// @ts-ignore @editorAction uses the class
|
||||
class ShowAccessibilityHelpAction extends EditorAction {
|
||||
constructor() {
|
||||
super({
|
||||
|
||||
@@ -83,6 +83,7 @@ class InspectTokensController extends Disposable implements IEditorContribution
|
||||
}
|
||||
|
||||
@editorAction
|
||||
// @ts-ignore @editorAction uses the class
|
||||
class InspectTokens extends EditorAction {
|
||||
|
||||
constructor() {
|
||||
@@ -169,6 +170,7 @@ class InspectTokensWidget extends Disposable implements IContentWidget {
|
||||
public allowEditorOverflow = true;
|
||||
|
||||
private _editor: ICodeEditor;
|
||||
// @ts-ignore unused injected service
|
||||
private _standaloneThemeService: IStandaloneThemeService;
|
||||
private _modeService: IModeService;
|
||||
private _tokenizationSupport: ITokenizationSupport;
|
||||
|
||||
@@ -306,6 +306,8 @@ export class StandaloneEditor extends StandaloneCodeEditor implements IStandalon
|
||||
export class StandaloneDiffEditor extends DiffEditorWidget implements IStandaloneDiffEditor {
|
||||
|
||||
private _contextViewService: IEditorContextViewService;
|
||||
|
||||
// @ts-ignore unused injected service
|
||||
private _standaloneKeybindingService: StandaloneKeybindingService;
|
||||
|
||||
constructor(
|
||||
|
||||
@@ -10,6 +10,7 @@ import { editorAction, EditorAction, ServicesAccessor } from 'vs/editor/common/e
|
||||
import { IStandaloneThemeService } from 'vs/editor/standalone/common/standaloneThemeService';
|
||||
|
||||
@editorAction
|
||||
// @ts-ignore @editorAction uses the class
|
||||
class ToggleHighContrast extends EditorAction {
|
||||
|
||||
private _originalThemeName: string;
|
||||
|
||||
@@ -17,6 +17,7 @@ import * as browser from 'vs/base/browser/browser';
|
||||
class SingleLineTestModel implements ISimpleModel {
|
||||
|
||||
private _line: string;
|
||||
// @ts-ignore unused property
|
||||
private _eol: string;
|
||||
|
||||
constructor(line: string) {
|
||||
|
||||
@@ -588,6 +588,7 @@ suite('TextAreaState', () => {
|
||||
});
|
||||
});
|
||||
|
||||
// @ts-ignore unused class
|
||||
class SimpleModel implements ISimpleModel {
|
||||
|
||||
private _lines: string[];
|
||||
|
||||
@@ -25,21 +25,8 @@ suite('ViewModelDecorations', () => {
|
||||
assert.equal(viewModel.getLineContent(4), 'will be ');
|
||||
assert.equal(viewModel.getLineContent(5), 'wrapped');
|
||||
|
||||
let dec1: string;
|
||||
let dec2: string;
|
||||
let dec3: string;
|
||||
let dec4: string;
|
||||
let dec5: string;
|
||||
let dec6: string;
|
||||
let dec7: string;
|
||||
let dec8: string;
|
||||
let dec9: string;
|
||||
let dec10: string;
|
||||
let dec11: string;
|
||||
let dec12: string;
|
||||
let dec13: string;
|
||||
let dec14: string;
|
||||
let dec15: string;
|
||||
//@ts-ignore
|
||||
let dec1, dec2, dec3, dec4, dec5, dec6, dec7, dec8, dec9, dec10, dec11, dec12, dec13, dec14, dec15: string;
|
||||
model.changeDecorations((accessor) => {
|
||||
let createOpts = (id: string) => {
|
||||
return {
|
||||
@@ -280,6 +267,7 @@ suite('ViewModelDecorations', () => {
|
||||
assert.equal(viewModel.getLineContent(4), 'will be ');
|
||||
assert.equal(viewModel.getLineContent(5), 'wrapped');
|
||||
|
||||
// @ts-ignore unused local
|
||||
let dec1: string;
|
||||
model.changeDecorations((accessor) => {
|
||||
dec1 = accessor.addDecoration(
|
||||
|
||||
@@ -21,6 +21,7 @@ export class Menu implements IMenu {
|
||||
private _onDidChange = new Emitter<IMenu>();
|
||||
|
||||
constructor(
|
||||
// @ts-ignore unused property
|
||||
private _id: MenuId,
|
||||
startupSignal: TPromise<boolean>,
|
||||
@ICommandService private _commandService: ICommandService,
|
||||
|
||||
@@ -29,6 +29,7 @@ export class BackupMainService implements IBackupMainService {
|
||||
@IEnvironmentService environmentService: IEnvironmentService,
|
||||
@IConfigurationService private configurationService: IConfigurationService,
|
||||
@ILogService private logService: ILogService,
|
||||
// @ts-ignore unused injected service
|
||||
@IWorkspacesMainService private workspacesService: IWorkspacesMainService
|
||||
) {
|
||||
this.backupHome = environmentService.backupHome;
|
||||
|
||||
@@ -95,6 +95,7 @@ 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() {
|
||||
|
||||
@@ -55,6 +55,7 @@ export class ConfigurationModel implements IConfigurationModel {
|
||||
addToValueTree(override.contents, key, value, e => { throw new Error(e); });
|
||||
}
|
||||
|
||||
// @ts-ignore unused generic parameter
|
||||
public override<V>(identifier: string): ConfigurationModel {
|
||||
const overrideContents = this.getContentsForOverrideIdentifer(identifier);
|
||||
|
||||
@@ -385,6 +386,7 @@ export class Configuration {
|
||||
});
|
||||
}
|
||||
|
||||
// @ts-ignore unused generic parameter
|
||||
private getConsolidateConfigurationModel<C>(overrides: IConfigurationOverrides, workspace: Workspace): ConfigurationModel {
|
||||
let configurationModel = this.getConsolidatedConfigurationModelForResource(overrides, workspace);
|
||||
return overrides.overrideIdentifier ? configurationModel.override(overrides.overrideIdentifier) : configurationModel;
|
||||
|
||||
@@ -29,6 +29,7 @@ export class ExtensionEnablementService implements IExtensionEnablementService {
|
||||
@IStorageService private storageService: IStorageService,
|
||||
@IWorkspaceContextService private contextService: IWorkspaceContextService,
|
||||
@IEnvironmentService private environmentService: IEnvironmentService,
|
||||
// @ts-ignore unused injected service
|
||||
@IExtensionManagementService private extensionManagementService: IExtensionManagementService
|
||||
) {
|
||||
extensionManagementService.onDidUninstallExtension(this.onDidUninstallExtension, this, this.disposables);
|
||||
|
||||
@@ -292,6 +292,7 @@ export class ExtensionGalleryService implements IExtensionGalleryService {
|
||||
@IRequestService private requestService: IRequestService,
|
||||
@IEnvironmentService private environmentService: IEnvironmentService,
|
||||
@ITelemetryService private telemetryService: ITelemetryService,
|
||||
// @ts-ignore unused injected service
|
||||
@IConfigurationService private configurationService: IConfigurationService
|
||||
) {
|
||||
const config = product.extensionsGallery;
|
||||
|
||||
@@ -101,6 +101,7 @@ export class ExtensionManagementService implements IExtensionManagementService {
|
||||
onDidUninstallExtension: Event<DidUninstallExtensionEvent> = this._onDidUninstallExtension.event;
|
||||
|
||||
constructor(
|
||||
// @ts-ignore unused injected service
|
||||
@IEnvironmentService private environmentService: IEnvironmentService,
|
||||
@IChoiceService private choiceService: IChoiceService,
|
||||
@IExtensionGalleryService private galleryService: IExtensionGalleryService
|
||||
|
||||
@@ -62,6 +62,7 @@ export class InstantiationService implements IInstantiationService {
|
||||
}
|
||||
}
|
||||
|
||||
// @ts-ignore unused generic parameter
|
||||
createInstance<T>(param: any, ...rest: any[]): any {
|
||||
|
||||
if (param instanceof SyncDescriptor) {
|
||||
|
||||
@@ -73,6 +73,7 @@ export class TestInstantiationService extends InstantiationService {
|
||||
public stubPromise<T>(service?: ServiceIdentifier<T>, fnProperty?: string, value?: any): T | sinon.SinonStub;
|
||||
public stubPromise<T>(service?: ServiceIdentifier<T>, ctor?: any, fnProperty?: string, value?: any): sinon.SinonStub;
|
||||
public stubPromise<T>(service?: ServiceIdentifier<T>, obj?: any, fnProperty?: string, value?: any): sinon.SinonStub;
|
||||
// @ts-ignore unused generic parameter
|
||||
public stubPromise<T>(arg1?: any, arg2?: any, arg3?: any, arg4?: any): sinon.SinonStub {
|
||||
arg3 = typeof arg2 === 'string' ? TPromise.as(arg3) : arg3;
|
||||
arg4 = typeof arg2 !== 'string' && typeof arg3 === 'string' ? TPromise.as(arg4) : arg4;
|
||||
@@ -87,6 +88,7 @@ export class TestInstantiationService extends InstantiationService {
|
||||
|
||||
private _create<T>(serviceMock: IServiceMock<T>, options: SinonOptions, reset?: boolean): any;
|
||||
private _create<T>(ctor: any, options: SinonOptions): any;
|
||||
// @ts-ignore unused generic parameter
|
||||
private _create<T>(arg1: any, options: SinonOptions, reset: boolean = false): any {
|
||||
if (this.isServiceMock(arg1)) {
|
||||
let service = this._getOrCreateService(arg1, options, reset);
|
||||
|
||||
@@ -14,6 +14,7 @@ import { OS } from 'vs/base/common/platform';
|
||||
import { ResolvedKeybindingItem } from 'vs/platform/keybinding/common/resolvedKeybindingItem';
|
||||
|
||||
class MockKeybindingContextKey<T> implements IContextKey<T> {
|
||||
// @ts-ignore unused property
|
||||
private _key: string;
|
||||
private _defaultValue: T;
|
||||
private _value: T;
|
||||
|
||||
@@ -94,6 +94,7 @@ export class LifecycleService implements ILifecycleService {
|
||||
onBeforeWindowUnload: Event<IWindowUnloadEvent> = this._onBeforeWindowUnload.event;
|
||||
|
||||
constructor(
|
||||
// @ts-ignore unused injected service
|
||||
@IEnvironmentService private environmentService: IEnvironmentService,
|
||||
@ILogService private logService: ILogService,
|
||||
@IStorageService private storageService: IStorageService
|
||||
|
||||
@@ -11,6 +11,7 @@ import { extHostNamedCustomer } from 'vs/workbench/api/electron-browser/extHostC
|
||||
@extHostNamedCustomer(MainContext.MainThreadCredentials)
|
||||
export class MainThreadCredentials implements MainThreadCredentialsShape {
|
||||
|
||||
// @ts-ignore unused property
|
||||
private _proxy: ExtHostCredentialsShape;
|
||||
|
||||
constructor(
|
||||
|
||||
@@ -66,6 +66,7 @@ export class BoundModelReferenceCollection {
|
||||
export class MainThreadDocuments implements MainThreadDocumentsShape {
|
||||
|
||||
private _modelService: IModelService;
|
||||
// @ts-ignore unused injected service
|
||||
private _modeService: IModeService;
|
||||
private _textModelResolverService: ITextModelService;
|
||||
private _textFileService: ITextFileService;
|
||||
|
||||
@@ -69,6 +69,7 @@ export class HeapService implements IHeapService {
|
||||
|
||||
trackRecursive<T>(p: TPromise<T>): TPromise<T>;
|
||||
trackRecursive<T>(obj: T): T;
|
||||
// @ts-ignore unused generic parameter
|
||||
trackRecursive<T>(obj: any): any {
|
||||
if (TPromise.is(obj)) {
|
||||
return obj.then(result => this.trackRecursive(result));
|
||||
|
||||
@@ -18,6 +18,7 @@ export class MainThreadMessageService implements MainThreadMessageServiceShape {
|
||||
|
||||
constructor(
|
||||
extHostContext: IExtHostContext,
|
||||
// @ts-ignore unused injected service
|
||||
@IExtensionService private readonly _extensionService: IExtensionService,
|
||||
@IMessageService private readonly _messageService: IMessageService,
|
||||
@IChoiceService private readonly _choiceService: IChoiceService
|
||||
|
||||
@@ -121,6 +121,7 @@ class MainThreadSCMProvider implements ISCMProvider {
|
||||
private _label: string,
|
||||
private _rootUri: URI | undefined,
|
||||
@ISCMService scmService: ISCMService,
|
||||
// @ts-ignore unused injected service
|
||||
@ICommandService private commandService: ICommandService
|
||||
) { }
|
||||
|
||||
@@ -256,6 +257,7 @@ export class MainThreadSCM implements MainThreadSCMShape {
|
||||
|
||||
constructor(
|
||||
extHostContext: IExtHostContext,
|
||||
// @ts-ignore unused injected service
|
||||
@IInstantiationService private instantiationService: IInstantiationService,
|
||||
@ISCMService private scmService: ISCMService,
|
||||
@ICommandService private commandService: ICommandService
|
||||
|
||||
@@ -103,6 +103,7 @@ class TreeViewDataProvider implements ITreeViewDataProvider {
|
||||
this._onDispose.fire();
|
||||
}
|
||||
|
||||
// @ts-ignore unused property
|
||||
private clearChildren(treeItemHandle: TreeItemHandle): void {
|
||||
const children = this.childrenMap.get(treeItemHandle);
|
||||
if (children) {
|
||||
@@ -132,6 +133,7 @@ class TreeViewDataProvider implements ITreeViewDataProvider {
|
||||
}
|
||||
}
|
||||
|
||||
// @ts-ignore unused property
|
||||
private populateElementsToExpand(elements: ITreeItem[], toExpand: ITreeItem[]) {
|
||||
for (const element of elements) {
|
||||
if (element.collapsibleState === TreeItemCollapsibleState.Expanded) {
|
||||
|
||||
@@ -31,7 +31,9 @@ export class MainThreadWorkspace implements MainThreadWorkspaceShape {
|
||||
@IWorkspaceContextService private readonly _contextService: IWorkspaceContextService,
|
||||
@ITextFileService private readonly _textFileService: ITextFileService,
|
||||
@IConfigurationService private _configurationService: IConfigurationService,
|
||||
// @ts-ignore unused injected service
|
||||
@IFileService private readonly _fileService: IFileService,
|
||||
// @ts-ignore unused injected service
|
||||
@IWorkspaceEditingService private _workspaceEditingService: IWorkspaceEditingService
|
||||
) {
|
||||
this._proxy = extHostContext.get(ExtHostContext.ExtHostWorkspace);
|
||||
|
||||
@@ -142,6 +142,7 @@ export function createApiFactory(
|
||||
|
||||
// namespace: commands
|
||||
const commands: typeof vscode.commands = {
|
||||
// @ts-ignore unused generic parameter
|
||||
registerCommand<T>(id: string, command: <T>(...args: any[]) => T | Thenable<T>, thisArgs?: any): vscode.Disposable {
|
||||
return extHostCommands.registerCommand(id, command, thisArgs);
|
||||
},
|
||||
|
||||
@@ -707,8 +707,10 @@ class LinkProviderAdapter {
|
||||
class ColorProviderAdapter {
|
||||
|
||||
constructor(
|
||||
// @ts-ignore unused property
|
||||
private _proxy: MainThreadLanguageFeaturesShape,
|
||||
private _documents: ExtHostDocuments,
|
||||
// @ts-ignore unused property
|
||||
private _colorFormatCache: Map<string, number>,
|
||||
private _provider: vscode.DocumentColorProvider
|
||||
) { }
|
||||
|
||||
@@ -10,6 +10,7 @@ import { MainContext, MainThreadMessageServiceShape, MainThreadMessageOptions, I
|
||||
import { IExtensionDescription } from 'vs/platform/extensions/common/extensions';
|
||||
|
||||
|
||||
// @ts-ignore unused generic parameter
|
||||
function isMessageItem<T>(item: any): item is vscode.MessageItem {
|
||||
return item && item.title;
|
||||
}
|
||||
|
||||
@@ -19,6 +19,8 @@ import * as types from 'vs/workbench/api/node/extHostTypes';
|
||||
import { ExtHostWorkspace } from 'vs/workbench/api/node/extHostWorkspace';
|
||||
import * as vscode from 'vscode';
|
||||
|
||||
|
||||
// @ts-ignore unused type
|
||||
interface StringMap<V> {
|
||||
[key: string]: V;
|
||||
}
|
||||
|
||||
@@ -1131,6 +1131,7 @@ export enum TaskPanelKind {
|
||||
export class TaskGroup implements vscode.TaskGroup {
|
||||
|
||||
private _id: string;
|
||||
// @ts-ignore unused property
|
||||
private _label: string;
|
||||
|
||||
public static Clean: TaskGroup = new TaskGroup('clean', 'Clean');
|
||||
|
||||
@@ -204,6 +204,7 @@ export class AddRootFolderAction extends BaseWorkspacesAction {
|
||||
@IWindowService windowService: IWindowService,
|
||||
@IWorkspaceContextService contextService: IWorkspaceContextService,
|
||||
@IEnvironmentService environmentService: IEnvironmentService,
|
||||
// @ts-ignore unused injected service
|
||||
@IInstantiationService private instantiationService: IInstantiationService,
|
||||
@IWorkspaceEditingService private workspaceEditingService: IWorkspaceEditingService,
|
||||
@IViewletService private viewletService: IViewletService,
|
||||
|
||||
@@ -111,6 +111,7 @@ const TITLE_HEIGHT = 35;
|
||||
|
||||
export class PartLayout {
|
||||
|
||||
// @ts-ignore unused property
|
||||
constructor(private container: Builder, private options: IPartOptions, private titleArea: Builder, private contentArea: Builder) {
|
||||
}
|
||||
|
||||
|
||||
@@ -54,7 +54,9 @@ export class ActivitybarPart extends Part {
|
||||
constructor(
|
||||
id: string,
|
||||
@IViewletService private viewletService: IViewletService,
|
||||
// @ts-ignore unused injected service
|
||||
@IExtensionService private extensionService: IExtensionService,
|
||||
// @ts-ignore unused injected service
|
||||
@IStorageService private storageService: IStorageService,
|
||||
@IContextMenuService private contextMenuService: IContextMenuService,
|
||||
@IInstantiationService private instantiationService: IInstantiationService,
|
||||
|
||||
@@ -291,7 +291,9 @@ export class CompositeOverflowActivityAction extends ActivityAction {
|
||||
}
|
||||
|
||||
export class CompositeOverflowActivityActionItem extends ActivityActionItem {
|
||||
// @ts-ignore unused property
|
||||
private name: string;
|
||||
// @ts-ignore unused property
|
||||
private cssClass: string;
|
||||
private actions: Action[];
|
||||
|
||||
@@ -302,6 +304,7 @@ export class CompositeOverflowActivityActionItem extends ActivityActionItem {
|
||||
private getBadge: (compositeId: string) => IBadge,
|
||||
private getCompositeOpenAction: (compositeId: string) => Action,
|
||||
colors: ICompositeBarColors,
|
||||
// @ts-ignore unused injected service
|
||||
@IInstantiationService private instantiationService: IInstantiationService,
|
||||
@IContextMenuService private contextMenuService: IContextMenuService,
|
||||
@IThemeService themeService: IThemeService
|
||||
|
||||
@@ -113,6 +113,7 @@ export class JoinTwoGroupsAction extends Action {
|
||||
constructor(
|
||||
id: string,
|
||||
label: string,
|
||||
// @ts-ignore unused injected service
|
||||
@IWorkbenchEditorService private editorService: IWorkbenchEditorService,
|
||||
@IEditorGroupService private editorGroupService: IEditorGroupService
|
||||
) {
|
||||
|
||||
@@ -91,6 +91,7 @@ export abstract class BaseEditorPicker extends QuickOpenHandler {
|
||||
|
||||
constructor(
|
||||
@IInstantiationService protected instantiationService: IInstantiationService,
|
||||
// @ts-ignore unused injected service
|
||||
@IWorkspaceContextService private contextService: IWorkspaceContextService,
|
||||
@IWorkbenchEditorService protected editorService: IWorkbenchEditorService,
|
||||
@IEditorGroupService protected editorGroupService: IEditorGroupService
|
||||
|
||||
@@ -795,6 +795,7 @@ export class ChangeModeAction extends Action {
|
||||
@IQuickOpenService private quickOpenService: IQuickOpenService,
|
||||
@IPreferencesService private preferencesService: IPreferencesService,
|
||||
@IInstantiationService private instantiationService: IInstantiationService,
|
||||
// @ts-ignore unused injected service
|
||||
@ICommandService private commandService: ICommandService,
|
||||
@IUntitledEditorService private untitledEditorService: IUntitledEditorService
|
||||
) {
|
||||
|
||||
@@ -32,6 +32,7 @@ import { IEditorOptions } from 'vs/editor/common/config/editorOptions';
|
||||
|
||||
const TEXT_EDITOR_VIEW_STATE_PREFERENCE_KEY = 'textEditorViewState';
|
||||
|
||||
// @ts-ignore unused type
|
||||
interface ITextEditorViewState {
|
||||
0?: IEditorViewState;
|
||||
1?: IEditorViewState;
|
||||
@@ -60,6 +61,7 @@ export abstract class BaseTextEditor extends BaseEditor {
|
||||
@IStorageService private storageService: IStorageService,
|
||||
@ITextResourceConfigurationService private _configurationService: ITextResourceConfigurationService,
|
||||
@IThemeService protected themeService: IThemeService,
|
||||
// @ts-ignore unused injected service
|
||||
@IModeService private modeService: IModeService,
|
||||
@ITextFileService private _textFileService: ITextFileService,
|
||||
@IEditorGroupService protected editorGroupService: IEditorGroupService
|
||||
|
||||
@@ -14,6 +14,7 @@ export interface HtmlPreviewEditorViewState {
|
||||
scrollYPercentage: number;
|
||||
}
|
||||
|
||||
// @ts-ignore unused type
|
||||
interface HtmlPreviewEditorViewStates {
|
||||
0?: HtmlPreviewEditorViewState;
|
||||
1?: HtmlPreviewEditorViewState;
|
||||
|
||||
@@ -98,6 +98,7 @@ export class QuickOpenController extends Component implements IQuickOpenService
|
||||
private promisesToCompleteOnHide: ValueCallback[];
|
||||
private previousActiveHandlerDescriptor: QuickOpenHandlerDescriptor;
|
||||
private actionProvider = new ContributableActionProvider();
|
||||
// @ts-ignore unused property
|
||||
private previousValue = '';
|
||||
private visibilityChangeTimeoutHandle: number;
|
||||
private closeOnFocusLost: boolean;
|
||||
@@ -107,9 +108,11 @@ export class QuickOpenController extends Component implements IQuickOpenService
|
||||
@IWorkbenchEditorService private editorService: IWorkbenchEditorService,
|
||||
@IMessageService private messageService: IMessageService,
|
||||
@ITelemetryService private telemetryService: ITelemetryService,
|
||||
// @ts-ignore unused injected service
|
||||
@IWorkspaceContextService private contextService: IWorkspaceContextService,
|
||||
@IContextKeyService private contextKeyService: IContextKeyService,
|
||||
@IConfigurationService private configurationService: IConfigurationService,
|
||||
// @ts-ignore unused injected service
|
||||
@IHistoryService private historyService: IHistoryService,
|
||||
@IInstantiationService private instantiationService: IInstantiationService,
|
||||
@IPartService private partService: IPartService,
|
||||
@@ -1176,6 +1179,7 @@ class EditorHistoryHandler {
|
||||
constructor(
|
||||
@IHistoryService private historyService: IHistoryService,
|
||||
@IInstantiationService private instantiationService: IInstantiationService,
|
||||
// @ts-ignore unused injected service
|
||||
@IWorkspaceContextService private contextService: IWorkspaceContextService,
|
||||
@IFileService private fileService: IFileService
|
||||
) {
|
||||
@@ -1265,6 +1269,7 @@ export class EditorHistoryEntry extends EditorQuickOpenEntry {
|
||||
@IWorkspaceContextService contextService: IWorkspaceContextService,
|
||||
@IConfigurationService private configurationService: IConfigurationService,
|
||||
@IEnvironmentService environmentService: IEnvironmentService,
|
||||
// @ts-ignore unused injected service
|
||||
@IFileService private fileService: IFileService
|
||||
) {
|
||||
super(editorService);
|
||||
|
||||
@@ -41,6 +41,7 @@ export class TreeView extends ViewsViewletPanel {
|
||||
private dataProviderElementChangeListener: IDisposable;
|
||||
|
||||
constructor(
|
||||
// @ts-ignore unused property
|
||||
private options: IViewletViewOptions,
|
||||
@IMessageService private messageService: IMessageService,
|
||||
@IKeybindingService keybindingService: IKeybindingService,
|
||||
|
||||
@@ -122,6 +122,7 @@ export const ViewsRegistry: IViewsRegistry = new class {
|
||||
this._onViewsDeregistered.fire(viewsToDeregister);
|
||||
}
|
||||
|
||||
// @ts-ignore unused generic parameter
|
||||
registerTreeViewDataProvider<T>(id: string, factory: ITreeViewDataProvider) {
|
||||
if (!this.isDataProviderRegistered(id)) {
|
||||
// TODO: throw error
|
||||
|
||||
@@ -323,6 +323,7 @@ export interface ICommand {
|
||||
icon?: string;
|
||||
}
|
||||
|
||||
// @ts-ignore unused type
|
||||
class CommandEntry extends QuickOpenEntry {
|
||||
|
||||
constructor(private quickOpenService: IQuickOpenService, private prefix: string, private command: ICommand, highlights: IHighlight[]) {
|
||||
|
||||
@@ -156,6 +156,7 @@ export class ToggleMenuBarAction extends Action {
|
||||
constructor(
|
||||
id: string,
|
||||
label: string,
|
||||
// @ts-ignore unused injected service
|
||||
@IMessageService private messageService: IMessageService,
|
||||
@IConfigurationService private configurationService: IConfigurationService
|
||||
) {
|
||||
@@ -341,6 +342,7 @@ export class ShowStartupPerformance extends Action {
|
||||
console.log(`Empty Workspace: ${metrics.emptyWorkbench}`);
|
||||
|
||||
let nodeModuleLoadTime: number;
|
||||
// @ts-ignore unused local
|
||||
let nodeModuleLoadDetails: any[];
|
||||
if (this.environmentService.performance) {
|
||||
const nodeModuleTimes = this.analyzeNodeModulesLoadTimes();
|
||||
|
||||
@@ -86,12 +86,15 @@ export class ElectronWindow extends Themable {
|
||||
@IViewletService private viewletService: IViewletService,
|
||||
@IContextMenuService private contextMenuService: IContextMenuService,
|
||||
@IKeybindingService private keybindingService: IKeybindingService,
|
||||
// @ts-ignore unused injected service
|
||||
@IEnvironmentService private environmentService: IEnvironmentService,
|
||||
@ITelemetryService private telemetryService: ITelemetryService,
|
||||
// @ts-ignore unused injected service
|
||||
@IWorkspaceContextService private contextService: IWorkspaceContextService,
|
||||
@IWorkspaceEditingService private workspaceEditingService: IWorkspaceEditingService,
|
||||
@IFileService private fileService: IFileService,
|
||||
@IMenuService private menuService: IMenuService,
|
||||
// @ts-ignore unused injected service
|
||||
@IContextKeyService private contextKeyService: IContextKeyService
|
||||
) {
|
||||
super(themeService);
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user