Skip to content

Commit 33ac229

Browse files
committed
Merge pull request #463 from mousetraps/i455
fix #455 IntelliSense commits too aggressively when completion is selected
2 parents 026050a + 86d8082 commit 33ac229

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Nodejs/Product/Nodejs/Intellisense/IntellisenseController.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -647,7 +647,8 @@ public int Exec(ref Guid pguidCmdGroup, uint nCmdID, uint nCmdexecopt, IntPtr pv
647647
case VSConstants.VSStd2KCmdID.COMPLETEWORD:
648648
ForceCompletions = true;
649649
try {
650-
TriggerCompletionSession((VSConstants.VSStd2KCmdID)nCmdID == VSConstants.VSStd2KCmdID.COMPLETEWORD);
650+
TriggerCompletionSession((VSConstants.VSStd2KCmdID)nCmdID == VSConstants.VSStd2KCmdID.COMPLETEWORD
651+
&& !NodejsPackage.Instance.IntellisenseOptionsPage.OnlyTabOrEnterToCommit);
651652
} finally {
652653
ForceCompletions = false;
653654
}

0 commit comments

Comments
 (0)