提交 336eb73c 编写于 作者: J Johannes Rieken

unused imports et al

上级 7dbc878a
...@@ -5,8 +5,7 @@ ...@@ -5,8 +5,7 @@
'use strict'; 'use strict';
import URI from 'vs/base/common/uri'; import URI from 'vs/base/common/uri';
import {illegalArgument, illegalState, readonly, onUnexpectedError} from 'vs/base/common/errors'; import {illegalArgument} from 'vs/base/common/errors';
import {TextEditorOptions} from 'vscode';
export class Disposable { export class Disposable {
...@@ -165,8 +164,8 @@ export class Range { ...@@ -165,8 +164,8 @@ export class Range {
} }
constructor(start: Position, end: Position); constructor(start: Position, end: Position);
constructor(startLine: number, startColumn: number, endLine:number, endColumn:number); constructor(startLine: number, startColumn: number, endLine: number, endColumn: number);
constructor(startLineOrStart: number|Position, startColumnOrEnd: number|Position, endLine?:number, endColumn?:number) { constructor(startLineOrStart: number|Position, startColumnOrEnd: number|Position, endLine?: number, endColumn?: number) {
let start: Position; let start: Position;
let end: Position; let end: Position;
...@@ -266,8 +265,8 @@ export class Selection extends Range { ...@@ -266,8 +265,8 @@ export class Selection extends Range {
} }
constructor(anchor: Position, active: Position); constructor(anchor: Position, active: Position);
constructor(anchorLine: number, anchorColumn: number, activeLine:number, activeColumn:number); constructor(anchorLine: number, anchorColumn: number, activeLine: number, activeColumn: number);
constructor(anchorLineOrAnchor: number|Position, anchorColumnOrActive: number|Position, activeLine?:number, activeColumn?:number) { constructor(anchorLineOrAnchor: number|Position, anchorColumnOrActive: number|Position, activeLine?: number, activeColumn?: number) {
let anchor: Position; let anchor: Position;
let active: Position; let active: Position;
...@@ -434,7 +433,7 @@ export class Hover { ...@@ -434,7 +433,7 @@ export class Hover {
public contents: vscode.MarkedString[]; public contents: vscode.MarkedString[];
public range: Range; public range: Range;
constructor(contents: vscode.MarkedString | vscode.MarkedString[], range?:Range) { constructor(contents: vscode.MarkedString | vscode.MarkedString[], range?: Range) {
if (!contents) { if (!contents) {
throw new Error('Illegal argument'); throw new Error('Illegal argument');
} }
...@@ -598,4 +597,4 @@ export enum ViewColumn { ...@@ -598,4 +597,4 @@ export enum ViewColumn {
export enum StatusBarAlignment { export enum StatusBarAlignment {
Left = 1, Left = 1,
Right = 2 Right = 2
} }
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册