Skip to content

Commit

Permalink
Merge pull request #63 from kasecato/#62/activateOnEnter
Browse files Browse the repository at this point in the history
Fixed #62 that cannot activate on Enter
  • Loading branch information
kasecato authored Apr 30, 2018
2 parents ea13c55 + cc6799f commit 44857a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Domain/Lang/DocommentDomainCSharp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export class DocommentDomainCSharp extends DocommentDomain {
// If the previous line was a doc comment and we hit enter.
// Extend the doc comment without generating anything else,
// even if there's a method or something next line.
if (this._isEnterKey && SyntacticAnalysisCSharp.IsDocComment(this._vsCodeApi.ReadLineAtCurrent())) {
if (!this._config.activateOnEnter && this._isEnterKey && SyntacticAnalysisCSharp.IsDocComment(this._vsCodeApi.ReadLineAtCurrent())) {
return CodeType.Comment;
}

Expand Down

0 comments on commit 44857a0

Please sign in to comment.