@@ -45,25 +45,26 @@ function getBranchIssueCompletion(
4545
4646 const completions : vscode . CompletionItem [ ] = [ ] ;
4747 completions . push (
48- ...getColonCompletion ( firstLine , position . character , issueId ) ,
48+ ...getInitialCompletion ( firstLine , position . character , issueId ) ,
4949 ) ;
5050 completions . push (
51- ...getBracketedCompletion ( firstLine , position . character , issueId ) ,
51+ ...getCompletionInitialBracket ( firstLine , position . character , issueId ) ,
5252 ) ;
5353
5454 return completions ;
5555}
5656
57- function getColonCompletion (
57+ function getInitialCompletion (
5858 firstLine : string ,
5959 cursorPosition : number ,
6060 issueId : string ,
6161) : vscode . CompletionItem [ ] {
6262 const issueIdColon = issueId + ": " ;
63+ const issueIdSpace = issueId + " " ;
6364 const bracketedIssueId = `[${ issueId } ] ` ;
6465
6566 if ( firstLine . length === 0 ) {
66- return [ completion ( issueIdColon , 0 , 0 ) ] ;
67+ return [ completion ( issueIdSpace , 0 , 0 ) , completion ( issueIdColon , 0 , 0 ) ] ;
6768 }
6869
6970 if ( cursorPosition !== firstLine . length ) {
@@ -80,6 +81,7 @@ function getColonCompletion(
8081 }
8182
8283 return [
84+ completion ( issueIdSpace , 0 , typedSoFar . length - 1 ) ,
8385 completion ( issueIdColon , 0 , typedSoFar . length - 1 ) ,
8486 completion ( bracketedIssueId , 0 , typedSoFar . length - 1 ) ,
8587 ] ;
@@ -88,7 +90,7 @@ function getColonCompletion(
8890 return [ ] ;
8991}
9092
91- function getBracketedCompletion (
93+ function getCompletionInitialBracket (
9294 firstLine : string ,
9395 cursorPosition : number ,
9496 issueId : string ,
0 commit comments