Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Commit

Permalink
Merge pull request #120 from YuichiNukiyama/support_javascript
Browse files Browse the repository at this point in the history
Support javascript files
  • Loading branch information
egamma authored Nov 13, 2016
2 parents 4ffc673 + 3277d54 commit e05a502
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tslint/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export function activate(context: ExtensionContext) {
}

function isTypeScriptDocument(languageId) {
return languageId === 'typescript' || languageId === 'typescriptreact';
return languageId === 'typescript' || languageId === 'typescriptreact' || languageId === 'javascript';
}

function udpateStatusBarVisibility(editor: TextEditor): void {
Expand Down Expand Up @@ -127,7 +127,7 @@ export function activate(context: ExtensionContext) {
};

let clientOptions: LanguageClientOptions = {
documentSelector: ['typescript', 'typescriptreact'],
documentSelector: ['typescript', 'typescriptreact', 'javascript'],
synchronize: {
configurationSection: 'tslint',
fileEvents: workspace.createFileSystemWatcher('**/tslint.json')
Expand Down

0 comments on commit e05a502

Please sign in to comment.