Skip to content

Commit 86d8082

Browse files
committed
#455 IntelliSense commits too aggressively when completion is selected
- do not enable COMPLETEWORD when OnlyTabOrEnterToCommit option is enabled
1 parent 026050a commit 86d8082

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

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)