vscode-languageclient
Advanced tools
Comparing version 0.10.0-pre.17 to 0.10.0-pre.18
@@ -235,5 +235,7 @@ /*--------------------------------------------------------- | ||
connection.onDiagnostics(function (params) { return _this.handleDiagnostics(params); }); | ||
vscode_1.workspace.onDidOpenTextDocument(function (t) { return _this.onDidOpenTextDoument(connection, t); }, null, _this._listeners); | ||
vscode_1.workspace.onDidChangeTextDocument(function (t) { return _this.onDidChangeTextDocument(connection, t); }, null, _this._listeners); | ||
vscode_1.workspace.onDidCloseTextDocument(function (t) { return _this.onDidCloseTextDoument(connection, t); }, null, _this._listeners); | ||
if (_this._capabilites.textDocumentSync !== protocol_1.TextDocumentSync.None) { | ||
vscode_1.workspace.onDidOpenTextDocument(function (t) { return _this.onDidOpenTextDoument(connection, t); }, null, _this._listeners); | ||
vscode_1.workspace.onDidChangeTextDocument(function (t) { return _this.onDidChangeTextDocument(connection, t); }, null, _this._listeners); | ||
vscode_1.workspace.onDidCloseTextDocument(function (t) { return _this.onDidCloseTextDoument(connection, t); }, null, _this._listeners); | ||
} | ||
_this.hookFileEvents(connection); | ||
@@ -320,3 +322,3 @@ _this.hookConfigurationChanged(connection); | ||
var uri = event.document.uri.toString(); | ||
if (this._capabilites.incrementalTextDocumentSync) { | ||
if (this._capabilites.textDocumentSync === protocol_1.TextDocumentSync.Incremental) { | ||
converters_1.asChangeTextDocumentParams(event).forEach(function (param) { return connection.didChangeTextDocument(param); }); | ||
@@ -323,0 +325,0 @@ } |
import { RequestType, NotificationType } from 'vscode-jsonrpc'; | ||
export interface HostCapabilities { | ||
} | ||
export declare namespace TextDocumentSync { | ||
const None: number; | ||
const Full: number; | ||
const Incremental: number; | ||
} | ||
export interface ServerCapabilities { | ||
incrementalTextDocumentSync?: boolean; | ||
textDocumentSync?: number; | ||
hoverProvider?: boolean; | ||
@@ -7,0 +12,0 @@ } |
@@ -5,2 +5,8 @@ /*--------------------------------------------------------- | ||
'use strict'; | ||
var TextDocumentSync; | ||
(function (TextDocumentSync) { | ||
TextDocumentSync.None = 0; | ||
TextDocumentSync.Full = 1; | ||
TextDocumentSync.Incremental = 2; | ||
})(TextDocumentSync = exports.TextDocumentSync || (exports.TextDocumentSync = {})); | ||
/** | ||
@@ -7,0 +13,0 @@ * The initialize command is send from the client to the worker. |
{ | ||
"name": "vscode-languageclient", | ||
"description": "VSCode Language client implementation", | ||
"version": "0.10.0-pre.17", | ||
"version": "0.10.0-pre.18", | ||
"author": "Visual Studio Code Team", | ||
@@ -6,0 +6,0 @@ "license": "MIT", |
62892
1522