diff --git a/ahk2 b/ahk2 index 53d6b48f..cec559a9 160000 --- a/ahk2 +++ b/ahk2 @@ -1 +1 @@ -Subproject commit 53d6b48fb1c037dc7aced039dd27e53dc5aaf356 +Subproject commit cec559a9d0b6698c3b33f3ac88701e1d375a096f diff --git a/demos/manualTests/definitionProvider/included.ahk1 b/demos/manualTests/definitionProvider/included.ahk1 new file mode 100644 index 00000000..3c3cbf77 --- /dev/null +++ b/demos/manualTests/definitionProvider/included.ahk1 @@ -0,0 +1,9 @@ +#NoEnv +#SingleInstance, Force +SendMode, Input +SetBatchLines, -1 +SetWorkingDir, %A_ScriptDir% + +MyDefProviderFunc() { + MsgBox % "Hi from MyDefProviderFunc" +} \ No newline at end of file diff --git a/demos/manualTests/definitionProvider/main.ahk1 b/demos/manualTests/definitionProvider/main.ahk1 new file mode 100644 index 00000000..f5b5a0bd --- /dev/null +++ b/demos/manualTests/definitionProvider/main.ahk1 @@ -0,0 +1,10 @@ +#NoEnv +#SingleInstance, Force +SendMode, Input +SetBatchLines, -1 +SetWorkingDir, %A_ScriptDir% + +#Include ./included.ahk1 + +;* Should be able to ctrl+click to jump to `included.ahk1` +MyDefProviderFunc() \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index b8651f3d..96add50f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -29,7 +29,7 @@ "@types/xml2js": "^0.4.11", "@vscode/test-cli": "^0.0.10", "@vscode/test-electron": "^2.3.10", - "@vscode/vsce": "^3.1.1", + "@vscode/vsce": "^3.2.1", "del-cli": "^6.0.0", "esbuild": "0.24.0", "eslint": "^9.9.0", @@ -1642,9 +1642,9 @@ } }, "node_modules/@vscode/vsce": { - "version": "3.2.0", - "resolved": "https://registry.npmmirror.com/@vscode/vsce/-/vsce-3.2.0.tgz", - "integrity": "sha512-c/AId5Lp50HTszCBDfXfD/Go2djm6qO/WfedP2Y3BpRP+V+ttr8T0mTvZ8WEyTiBp2EfrYnzYUCx0ocB9mHy4Q==", + "version": "3.2.1", + "resolved": "https://registry.npmmirror.com/@vscode/vsce/-/vsce-3.2.1.tgz", + "integrity": "sha512-AY9vBjwExakK1c0cI/3NN2Ey0EgiKLBye/fxl/ue+o4q6RZ7N+xzd1jAD6eI6eBeMVANi617+V2rxIAkDPco2Q==", "dev": true, "license": "MIT", "dependencies": { @@ -7203,9 +7203,9 @@ } }, "@vscode/vsce": { - "version": "3.2.0", - "resolved": "https://registry.npmmirror.com/@vscode/vsce/-/vsce-3.2.0.tgz", - "integrity": "sha512-c/AId5Lp50HTszCBDfXfD/Go2djm6qO/WfedP2Y3BpRP+V+ttr8T0mTvZ8WEyTiBp2EfrYnzYUCx0ocB9mHy4Q==", + "version": "3.2.1", + "resolved": "https://registry.npmmirror.com/@vscode/vsce/-/vsce-3.2.1.tgz", + "integrity": "sha512-AY9vBjwExakK1c0cI/3NN2Ey0EgiKLBye/fxl/ue+o4q6RZ7N+xzd1jAD6eI6eBeMVANi617+V2rxIAkDPco2Q==", "dev": true, "requires": { "@azure/identity": "^4.1.0", diff --git a/package.json b/package.json index f2fe8372..f27bd1d0 100644 --- a/package.json +++ b/package.json @@ -1167,7 +1167,7 @@ "@types/xml2js": "^0.4.11", "@vscode/test-cli": "^0.0.10", "@vscode/test-electron": "^2.3.10", - "@vscode/vsce": "^3.1.1", + "@vscode/vsce": "^3.2.1", "del-cli": "^6.0.0", "esbuild": "0.24.0", "eslint": "^9.9.0", diff --git a/src/parser/parser.ts b/src/parser/parser.ts index 873b3d01..ef15c20f 100644 --- a/src/parser/parser.ts +++ b/src/parser/parser.ts @@ -54,8 +54,9 @@ export class Parser { options: BuildScriptOptions = {}, ): Promise