Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
k--kato committed Jan 3, 2016
1 parent f357271 commit 5a50aa3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Controller/DocomentController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ export class DocomentController implements IDocommentController {
this._docommentDomain = docommentDomain;

const subscriptions: Disposable[] = [];
const activeEditor: TextEditor = window.activeTextEditor;

/* Add Text Change Event */
workspace.onDidChangeTextDocument(event => {
const activeEditor: TextEditor = window.activeTextEditor;
if (activeEditor && event.document === activeEditor.document) {
this._onEvent(activeEditor, event.contentChanges[0]);
}
Expand Down

0 comments on commit 5a50aa3

Please sign in to comment.