-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixup IntelliSense-related behavior (#368)
* Fixup typo in 3.3.0 changelog * Remove space from trigger char list (#110) * Remove unused code in completionProvider.ts * Replace Method.document with Method.uriString * Refactor completion items for methods * Refactor `preChar` calc and add comments * Cleanup completionProvider so it's testable * Fix parser casing * Document buildScript and Script * Fixup provideCompletionItemsInner docs * Update settings descriptions * prefer const * cleanup debug dispatcher start * WIP deep pick and basic tests * Change Omit to Pick * Fixup completionProvider test * Cleanup API for completion items * Fixup types * a * fixup comments * wip second test * fixup intellisense settings * note outer tests TBD * Remove unnecessary async/await * Improve docs for Method class * Show comma-space separated params in IntelliSense * Simplify PartialMethod type, removing DeepPick * More tests * Finalize provideCompletionItemsInner * Remove console log * Run all tests, not just new ones! * Mark format tests for consolidation * Fixup provideDocumentFormattingEdits unused param * Add manual tests to repo, update demo * fixup demos * Add completion provider manual tests * Change `SharpDirective` to `IfDirective` for clarity * Fixup manual tests
- Loading branch information
1 parent
0a96c03
commit 761d758
Showing
37 changed files
with
998 additions
and
267 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
This file was deleted.
Oops, something went wrong.
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,27 @@ | ||
#Requires AutoHotkey 1.1.33+ | ||
#SingleInstance force | ||
|
||
; Completion provider manual tests | ||
; Use Ctrl+Space to trigger suggestions | ||
|
||
; compTest comment | ||
compTest(p1, p2) { | ||
p3 := 1 | ||
; Suggestions within method include locals | ||
p | ||
} | ||
|
||
; Suggestions outside of method exclude locals | ||
p | ||
|
||
; Default settings (enabled IntelliSense, enabled parsing) shows suggestions | ||
c | ||
|
||
; Disabled IntelliSense with enabled parsing shows no suggestions | ||
c | ||
|
||
; Enabled IntelliSense with disabled parsing shows no suggestions | ||
c | ||
|
||
; Disabled IntelliSense with disabled parsing shows no suggestions | ||
c |
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,12 @@ | ||
#Requires AutoHotkey 1.1.33+ | ||
#SingleInstance force | ||
|
||
; Basic debugger test | ||
; Ensure you've run `npm i` before running this test | ||
; 1. Stop on breakpoint | ||
; 2. Step forward works -- Global variables updates | ||
; 3. No errors in Debug Console | ||
|
||
x := 1 | ||
y := 2 ; Breakpoint here | ||
z := 3 |
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,7 @@ | ||
/* | ||
I'm collapsible! | ||
*/ | ||
|
||
/* | ||
So am I | ||
*/ |
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,5 @@ | ||
; I show up in IntelliSense when hovering only when parsing is enabled | ||
hoverOverMePlease() | ||
{ | ||
|
||
} |
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,10 @@ | ||
#Requires AutoHotkey 1.1.33+ | ||
#SingleInstance force | ||
|
||
; Select the following line and hit `Ctrl + F8` to run selection | ||
f1:: MsgBox, You hit F1 | ||
|
||
; Now press F1 and you should see a message box. | ||
|
||
; The F2 hotkey will not work because it was not part of the selection | ||
f2:: MsgBox, You hit F2 |
Oops, something went wrong.