forked from mark-wiemer/ahkpp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
v2 support preview (mark-wiemer#378)
* begin v2 support: blue icon for v2 scripts * Change to GPL license * Add v2 grammar * Note grammar contributor * Clarify extensions * Revert license change * Update changelog * Update compiler error message * Remove unused vars * Rename settings and uncomment changelog * Add basic compiler test * Update icons * Update icon size * Add v2 base path for compilation * Note v1-limited settings * Change runnerPath to interpreterPath * Add basic run test * Update run selection test * Fixup help test * Fixup compile tests * Update to interpreterPathV1 * Add help for v2 * Move useMpress to end of list * Remove old comment * Update known issues * Update metadata for v2 support * Add basic debug and run v2 tests * Remove unused readme * Add template snippet for v2 * Add issue template for v2 * Move help service back to main folder * Update changelog and v2 template * Add language version service and update metadata * Add runSelection.ahk2 * Fixup documentation * Update template service * Update langaugeVersionService
- Loading branch information
1 parent
aaba491
commit e124efd
Showing
70 changed files
with
2,059 additions
and
147 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 |
---|---|---|
|
@@ -10,4 +10,5 @@ out | |
# Files | ||
.vscode/settings.json | ||
*.vsix | ||
language/*.json | ||
language/*.tmLanguage.json | ||
*.exe |
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 |
---|---|---|
|
@@ -10,4 +10,5 @@ out | |
# Files | ||
.vscode/settings.json | ||
*.vsix | ||
language/*.json | ||
language/*.tmLanguage.json | ||
*.exe |
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 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,14 @@ | ||
#Requires AutoHotkey 1.1.33+ | ||
#SingleInstance force | ||
|
||
MsgBox % "Hello world!" | ||
ExitApp | ||
|
||
; Settings: No compile base file v1 | ||
; Open Ahk2Exe.exe and set base file to a v1 interpreter. Save as default. | ||
; Ctrl+Shift+F9 to compile this script | ||
|
||
; Settings: Compile base file v1 set to v1 interpreter. | ||
; C:/Program Files/AutoHotkey/v1.1.37.01/AutoHotkeyU64.exe | ||
; Open Ahk2Exe.exe and set base file to a v2 interpreter. Save as default. | ||
; Ctrl+Shift+F9 to compile this script |
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,14 @@ | ||
#Requires AutoHotkey 2+ | ||
#SingleInstance force | ||
|
||
MsgBox("Hello world v2!") | ||
ExitApp() | ||
|
||
; Settings: No base file v2. | ||
; Open Ahk2Exe.exe and set base file to a v2 interpreter. Save as default. | ||
; Ctrl+Shift+F9 to compile this script | ||
|
||
; Settings: Base file v2 set to v2 interpreter: | ||
; C:/Program Files/AutoHotkey/v2/AutoHotkey64.exe | ||
; Open Ahk2Exe.exe and set base file to a v1 interpreter. Save as default. | ||
; Ctrl+Shift+F9 to compile this script |
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,13 @@ | ||
#Requires AutoHotkey 2+ | ||
#SingleInstance | ||
|
||
; Basic debugger test | ||
; Ensure you've run `npm i` before running this test | ||
; 0. Debug button should appear in title bar | ||
; 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
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 2+ | ||
#SingleInstance | ||
|
||
; Select a word and use Ctrl+F1 to open help | ||
; Click on a word (but don't select it), open help should still search that word | ||
; Use open help when your cursor is on a blank line--no errors should occur | ||
|
||
"potato" ; selecting that value (including quotes) should not cause an error | ||
|
||
; Try 10 different words to ensure values load consistently |
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 @@ | ||
; #Requires AutoHotkey v1 ; ignores commented directives | ||
#Requires AutoHotkey v2 | ||
|
||
; When opening this file, language should be set to AHK v2 with info message | ||
; Changing the Requires directive should not cause language to switch back until extension is restarted. |
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,2 @@ | ||
; No directives--no attempt to switch to undefined. | ||
; This file should stay with its default language version |
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,13 @@ | ||
#Requires AutoHotkey v2 | ||
; Pick an extension from below | ||
; Change requires version to opposite of that extension | ||
; Then change file name to end with that extension | ||
; Extensions: | ||
; ahk | ||
; ext | ||
; ah1 | ||
; ah2 | ||
; ahk1 | ||
; ahk2 | ||
; | ||
; Repeat for every extension, it should work every time |
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,13 @@ | ||
#Requires AutoHotkey v2 | ||
; Pick an extension from below | ||
; Change requires version to opposite of that extension | ||
; Then change file name to end with that extension | ||
; Extensions: | ||
; ahk | ||
; ext | ||
; ah1 | ||
; ah2 | ||
; ahk1 | ||
; ahk2 | ||
; | ||
; Repeat for every extension, it should work every time |
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,13 @@ | ||
#Requires AutoHotkey v2 | ||
; Pick an extension from below | ||
; Change requires version to opposite of that extension | ||
; Then change file name to end with that extension | ||
; Extensions: | ||
; ahk | ||
; ext | ||
; ah1 | ||
; ah2 | ||
; ahk1 | ||
; ahk2 | ||
; | ||
; Repeat for every extension, it should work every time |
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,13 @@ | ||
#Requires AutoHotkey v1 | ||
; Pick an extension from below | ||
; Change requires version to opposite of that extension | ||
; Then change file name to end with that extension | ||
; Extensions: | ||
; ahk | ||
; ext | ||
; ah1 | ||
; ah2 | ||
; ahk1 | ||
; ahk2 | ||
; | ||
; Repeat for every extension, it should work every time |
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,13 @@ | ||
#Requires AutoHotkey v2 | ||
; Pick an extension from below | ||
; Change requires version to opposite of that extension | ||
; Then change file name to end with that extension | ||
; Extensions: | ||
; ahk | ||
; ext | ||
; ah1 | ||
; ah2 | ||
; ahk1 | ||
; ahk2 | ||
; | ||
; Repeat for every extension, it should work every time |
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,13 @@ | ||
#Requires AutoHotkey v1 | ||
; Pick an extension from below | ||
; Change requires version to opposite of that extension | ||
; Then change file name to end with that extension | ||
; Extensions: | ||
; ahk | ||
; ext | ||
; ah1 | ||
; ah2 | ||
; ahk1 | ||
; ahk2 | ||
; | ||
; Repeat for every extension, it should work every time |
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,8 @@ | ||
#Requires AutoHotkey 1.1.33+ | ||
#SingleInstance force | ||
|
||
; Ctrl+F9 to run | ||
|
||
MsgBox % "You did it!" | ||
|
||
ExitApp |
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,8 @@ | ||
#Requires AutoHotkey 2+ | ||
#SingleInstance | ||
|
||
; Ctrl+F9 to run | ||
|
||
MsgBox("You did it!") | ||
|
||
ExitApp() |
Oops, something went wrong.