Skip to content

Commit

Permalink
[css/json/html] update lsp, services & dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
aeschli committed Jun 13, 2019
1 parent 51e5a19 commit a84c301
Show file tree
Hide file tree
Showing 19 changed files with 947 additions and 259 deletions.
4 changes: 2 additions & 2 deletions extensions/css-language-features/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -733,8 +733,8 @@
]
},
"dependencies": {
"vscode-languageclient": "^5.2.1",
"vscode-nls": "^4.0.0"
"vscode-languageclient": "^5.3.0-next.6",
"vscode-nls": "^4.1.1"
},
"devDependencies": {
"@types/node": "^10.14.8",
Expand Down
10 changes: 5 additions & 5 deletions extensions/css-language-features/server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@
},
"main": "./out/cssServerMain",
"dependencies": {
"vscode-css-languageservice": "^4.0.2-next.4",
"vscode-languageserver": "^5.3.0-next.2"
"vscode-css-languageservice": "^4.0.2",
"vscode-languageserver": "^5.3.0-next.8"
},
"devDependencies": {
"@types/mocha": "2.2.33",
"@types/node": "^10.14.8",
"glob": "^7.1.2",
"mocha": "^5.2.0",
"mocha-junit-reporter": "^1.17.0",
"glob": "^7.1.4",
"mocha": "^6.1.4",
"mocha-junit-reporter": "^1.23.0",
"mocha-multi-reporters": "^1.1.7"
},
"scripts": {
Expand Down
7 changes: 3 additions & 4 deletions extensions/css-language-features/server/src/cssServerMain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*--------------------------------------------------------------------------------------------*/

import {
createConnection, IConnection, TextDocuments, InitializeParams, InitializeResult, ServerCapabilities, ConfigurationRequest, WorkspaceFolder
createConnection, IConnection, TextDocuments, InitializeParams, InitializeResult, ServerCapabilities, ConfigurationRequest, WorkspaceFolder, TextDocumentSyncKind
} from 'vscode-languageserver';
import URI from 'vscode-uri';
import { TextDocument, CompletionList, Position } from 'vscode-languageserver-types';
Expand Down Expand Up @@ -32,9 +32,8 @@ process.on('unhandledRejection', (e: any) => {
connection.console.error(formatError(`Unhandled exception`, e));
});

// Create a simple text document manager. The text document manager
// supports full document sync only
const documents: TextDocuments = new TextDocuments();
// Create a text document manager.
const documents: TextDocuments = new TextDocuments(TextDocumentSyncKind.Incremental);
// Make the text document manager listen on the connection
// for open, change and close text document events
documents.listen(connection);
Expand Down
Loading

0 comments on commit a84c301

Please sign in to comment.