Skip to content

Commit

Permalink
Fixes microsoft#138: Error in package.json?
Browse files Browse the repository at this point in the history
  • Loading branch information
dbaeumer committed Sep 14, 2016
1 parent 6d51204 commit 23d1ff4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions eslint-server/src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,11 @@ let settings: Settings = null;
let options: any = null;
let documents: TextDocuments = new TextDocuments();

let supportedLanguages: Map<boolean> = {
'javascript': true,
'javascriptreact': true
}

// The documents manager listen for text document create, change
// and close on the connection
documents.listen(connection);
Expand Down Expand Up @@ -359,6 +364,9 @@ const singleErrorHandlers: ((error: any, document: TextDocument) => Status)[] =
];

function validateSingle(document: TextDocument): void {
if (!supportedLanguages[document.languageId]) {
return;
}
try {
validate(document);
connection.sendNotification(StatusNotification.type, { state: Status.ok });
Expand Down
2 changes: 1 addition & 1 deletion eslint/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "vscode-eslint",
"displayName": "ESLint",
"description": "Integrates ESLint into VS Code.",
"version": "1.0.3",
"version": "1.0.4",
"author": "Microsoft Corporation",
"license": "MIT",
"repository": {
Expand Down

0 comments on commit 23d1ff4

Please sign in to comment.