Comparing version 0.10.0-pre.4 to 0.10.0-pre.5
{ | ||
"name": "vscode", | ||
"version": "0.10.0-pre.4", | ||
"version": "0.10.0-pre.5", | ||
"typings": "vscode.d.ts", | ||
@@ -5,0 +5,0 @@ "dependencies": { |
declare type PropertyKey = string | number | symbol; | ||
// ### VSCode Change Start: We want PromiseLike to be Thenable | ||
interface Thenable<T> extends PromiseLike<T> {} | ||
// ### VSCode CHange End | ||
interface Symbol { | ||
@@ -4,0 +8,0 @@ /** Returns a string representation of an object. */ |
@@ -59,2 +59,9 @@ /*--------------------------------------------------------- | ||
export function executeCommand<T>(command: string, ...rest: any[]): Thenable<T>; | ||
/** | ||
* Retrieve the list of all avialable commands. | ||
* | ||
* @return Thenable that resolves to a list of command ids. | ||
*/ | ||
export function getCommands(): Thenable<string[]>; | ||
} | ||
@@ -466,7 +473,14 @@ | ||
export interface CodeActionContext { | ||
diagnostics: Diagnostic[]; | ||
} | ||
export interface CodeActionProvider { | ||
provideCodeActions(document: TextDocument, where: Range, token: CancellationToken): CommandReference[] | Thenable<CommandReference[]>; | ||
provideCodeActions(document: TextDocument, range: Range, context: CodeActionContext, token: CancellationToken): CommandReference[] | Thenable<CommandReference[]>; | ||
} | ||
export interface CodeLensProvider { | ||
provideCodeLenses(document: TextDocument, where: Range, token: CancellationToken): CommandReference[] | Thenable<CommandReference[]>; | ||
} | ||
export type Definition = Location | Location[]; | ||
@@ -577,4 +591,6 @@ | ||
export enum DiagnosticSeverity { | ||
Hint = 3, | ||
Information = 2, | ||
Warning = 1, | ||
Error = 2 | ||
Error = 0 | ||
} | ||
@@ -609,5 +625,4 @@ | ||
// TODO@api, TODO@Joh,Ben | ||
// output channels need to be known upfront (contributes in package.json) | ||
export interface OutputChannel extends Disposable { | ||
export class OutputChannel { | ||
constructor(name: string); | ||
append(value: string): void; | ||
@@ -666,4 +681,2 @@ appendLine(value: string): void; | ||
export function showInputBox(options?: InputBoxOptions): Thenable<string>; | ||
export function createOutputChannel(name: string): OutputChannel; | ||
} | ||
@@ -767,2 +780,7 @@ | ||
*/ | ||
export function registerCodeLensProvider(language: LanguageSelector, provider: CodeLensProvider): Disposable; | ||
/** | ||
* | ||
*/ | ||
export function registerDefinitionProvider(selector: LanguageSelector, provider: DefinitionProvider): Disposable; | ||
@@ -769,0 +787,0 @@ |
@@ -59,2 +59,9 @@ /*--------------------------------------------------------- | ||
export function executeCommand<T>(command: string, ...rest: any[]): Thenable<T>; | ||
/** | ||
* Retrieve the list of all avialable commands. | ||
* | ||
* @return Thenable that resolves to a list of command ids. | ||
*/ | ||
export function getCommands(): Thenable<string[]>; | ||
} | ||
@@ -466,7 +473,14 @@ | ||
export interface CodeActionContext { | ||
diagnostics: Diagnostic[]; | ||
} | ||
export interface CodeActionProvider { | ||
provideCodeActions(document: TextDocument, where: Range, token: CancellationToken): CommandReference[] | Thenable<CommandReference[]>; | ||
provideCodeActions(document: TextDocument, range: Range, context: CodeActionContext, token: CancellationToken): CommandReference[] | Thenable<CommandReference[]>; | ||
} | ||
export interface CodeLensProvider { | ||
provideCodeLenses(document: TextDocument, where: Range, token: CancellationToken): CommandReference[] | Thenable<CommandReference[]>; | ||
} | ||
export type Definition = Location | Location[]; | ||
@@ -577,4 +591,6 @@ | ||
export enum DiagnosticSeverity { | ||
Hint = 3, | ||
Information = 2, | ||
Warning = 1, | ||
Error = 2 | ||
Error = 0 | ||
} | ||
@@ -609,5 +625,4 @@ | ||
// TODO@api, TODO@Joh,Ben | ||
// output channels need to be known upfront (contributes in package.json) | ||
export interface OutputChannel extends Disposable { | ||
export class OutputChannel { | ||
constructor(name: string); | ||
append(value: string): void; | ||
@@ -666,4 +681,2 @@ appendLine(value: string): void; | ||
export function showInputBox(options?: InputBoxOptions): Thenable<string>; | ||
export function createOutputChannel(name: string): OutputChannel; | ||
} | ||
@@ -767,2 +780,7 @@ | ||
*/ | ||
export function registerCodeLensProvider(language: LanguageSelector, provider: CodeLensProvider): Disposable; | ||
/** | ||
* | ||
*/ | ||
export function registerDefinitionProvider(selector: LanguageSelector, provider: DefinitionProvider): Disposable; | ||
@@ -769,0 +787,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
412681
16
8856