This repository has been archived by the owner on Jul 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 645
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Triggering autocompletion in comments if the next item is an exported…
… member #1005 (#1675) * WIP: Initial Logic to fix #1005 * Cleaning Up Logic for fixing #1005 and added test * Cleaning Up Logic for fixing #1005 and added test * Cleaning Up Logic for fixing #1005 and added test * Linting according to tslint * Added check for last line per review comments * Merging from upstream * WIP: Testing autocompletion on comments after refactoring code according to comments * WIP: Testing autocompletion on comments after refactoring code according to comments * Reverting Lint Issues * Made changes to code according to review comments and refactored tests to include test cases * Refactoring * Pass suggestion item kind to constructor
- Loading branch information
1 parent
8bb08f6
commit 82481fe
Showing
3 changed files
with
99 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package main | ||
|
||
import ( | ||
"fmt" | ||
) | ||
|
||
// L | ||
var Language = "english" // should not invoke completion since this is line comment | ||
|
||
// G | ||
const GreetingText = "Hello" | ||
|
||
// S | ||
func SayHello() { | ||
fmt.Println("Says hello!") | ||
} | ||
|
||
// HelloParams | ||
type HelloParams struct { | ||
language string | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters