Skip to content

Commit

Permalink
Hotfix 2.7.0 (#53)
Browse files Browse the repository at this point in the history
- Some pre-release fixes. No feature changes or bugfixes.
  • Loading branch information
mark-wiemer authored Feb 22, 2021
1 parent 8ab96bc commit 26e5dba
Show file tree
Hide file tree
Showing 6 changed files with 65 additions and 65 deletions.
94 changes: 47 additions & 47 deletions demos/demo_for_ahk_v2.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -4,59 +4,59 @@ function()
return
function()
{
globalVar := "Local"
SuperGlobalVar := "Local"
bool := true
str := "string"
if (str == "str") {
MsgBox("Overwrite primitive variable!")
}
str_multiline := "
(LTrim
line 1
line 2
line 3
)"
int := 123
float := 123.456
globalVar := "Local"
SuperGlobalVar := "Local"
bool := true
str := "string"
if (str == "str") {
MsgBox("Overwrite primitive variable!")
}
str_multiline := "
(LTrim
line 1
line 2
line 3
)"
int := 123
float := 123.456

emptyArray := []
smallArray := [1, 2, { str: "string" }]
emptyArray := []
smallArray := [1, 2, { str: "string" }]
sparseArray := { 1: 1, 3: 3 }
arrayLike := { 1: 1, 2: 2, 3: 3, length: 3 }
bigArray := []
Loop 150 {
bigArray.push(A_Index)
}
if (bigArray == "str") {
MsgBox("Overwrite object variable!")
}
arrayLike := { 1: 1, 2: 2, 3: 3, length: 3 }
bigArray := []
Loop 150 {
bigArray.push(A_Index)
}
if (bigArray == "str") {
MsgBox("Overwrite object variable!")
}

obj := { str: str, int: int, float: float }
objobj := { str: str, obj: obj }
objobjobj := { str: str, int: int, obj: { str: str, obj: obj } }
obj := { str: str, int: int, float: float }
objobj := { str: str, obj: obj }
objobjobj := { str: str, int: int, obj: { str: str, obj: obj } }

circular := {}
circular.circular := circular
instance := Cls.new()
circular := {}
circular.circular := circular
instance := Cls.new()

enum := obj.ownProps()
enum := obj.ownProps()
}
class Cls
{
str := "string"
num := 123
static obj := { str: "string", num: 123 }
propertyName[] {
set {
this.propertyName_ := value
}
get {
return this.propertyName_
}
}
method() {
}
static staticMethod() {
}
str := "string"
num := 123
static obj := { str: "string", num: 123 }
propertyName[] {
set {
this.propertyName_ := value
}
get {
return this.propertyName_
}
}
method() {
}
static staticMethod() {
}
}
22 changes: 11 additions & 11 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -266,15 +266,15 @@
},
"dependencies": {
"get-port": "^5.1.1",
"vscode-debugadapter": "1.40.0-pre.1",
"vscode-debugadapter": "^1.44.0",
"xml2js": "^0.4.23"
},
"devDependencies": {
"@types/fs-extra": "^9.0.7",
"@types/glob": "^7.1.3",
"@types/mocha": "^8.2.1",
"@types/node": "^8.10.66",
"@types/vscode": "^1.53.0",
"@types/node": "^14.14.31",
"@types/vscode": "^1.30.0",
"fs-extra": "^9.1.0",
"glob": "^7.1.6",
"mocha": "^8.3.0",
Expand Down
2 changes: 1 addition & 1 deletion src/debugger/struct/dbgpResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export interface DbgpProperty {
pagesize?: string;
children?: string;
numchildren?: string;
encoding?: string;
encoding?: BufferEncoding;
};
content?: string;
property?: DbgpProperty | DbgpProperty[];
Expand Down
2 changes: 1 addition & 1 deletion src/providers/ahkHoverProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ export class AhkHoverProvider implements HoverProvider {
const ahk = JSON.parse(
readFileSync(
join(context.extensionPath, 'snippets', 'ahk.json'),
'UTF8',
'utf8',
),
);
this.snippetCache = new Map<string, Snippet>();
Expand Down
4 changes: 2 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"compilerOptions": {
"module": "commonjs",
"target": "es6",
"target": "es2016",
"outDir": "out",
"lib": ["es6"],
"lib": ["es2016"],
"sourceMap": true,
"rootDir": "src"
},
Expand Down

0 comments on commit 26e5dba

Please sign in to comment.