Skip to content

Commit

Permalink
fix formatter error
Browse files Browse the repository at this point in the history
  • Loading branch information
leftstick committed Sep 29, 2016
1 parent 533eb94 commit 6b40e95
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "vscode-esformatter",
"displayName": "esformatter",
"description": "An esformatter support plugin, which helps JavaScript developers beautify/format the code",
"version": "1.2.0",
"version": "1.2.1",
"publisher": "howardzuo",
"engines": {
"vscode": "^1.5.0"
Expand Down
7 changes: 4 additions & 3 deletions server/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,12 @@ connection.onInitialize((params) => {
});

const resolveParams = params => {
let doc = documents.get(params.textDocument.uri);
return {
uri: params.textDocument.uri,
version: params.textDocument.version,
textDocument: documents.get(params.textDocument.uri),
text: documents.get(params.textDocument.uri).getText()
version: doc.version,
textDocument: doc,
text: doc.getText()
};
};

Expand Down

0 comments on commit 6b40e95

Please sign in to comment.