Skip to content

Commit 839094c

Browse files
authored
Merge pull request #10 from vallode/feature/imports-cpp
Feature/imports cpp
2 parents bf33821 + 3d7aa8e commit 839094c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

101 files changed

+2140
-66
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,12 @@ These definitions require [`lua-language-server`](//github.com/LuaLS/lua-languag
2323
```json
2424
{
2525
"Lua.workspace.checkThirdParty": "Ask",
26-
"Lua.workspace.checkThirdParty": [
26+
"Lua.workspace.userThirdParty": [
2727
"<library_location>"
2828
]
2929
}
3030
```
31+
- The `<library_location>` should be the _parent_ directory of the library. So if you cloned the repo it should just be the repository path and if you downloaded a release it should be the directory it was extracted to.
3132
- Restarting VSCode and entering a DFHack-related Lua file should prompt you to load the library.
3233

3334
You can also read this [well-written guide](//agnieszka.dev/dfhack/vsc/lls/#adding-dfhack-definitions) with screenshots by Discord user Agnieszka.
@@ -53,7 +54,7 @@ Reportedly working but no instructions yet.
5354
},
5455
"workspace": {
5556
"library": [
56-
"<library_location>/library"
57+
"<library_location>/dist/library"
5758
]
5859
}
5960
}

dist/config.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
"name": "DFHack Lua",
44
"words": [
55
"mkmodule(.+)",
6-
"dfhack"
6+
"dfhack",
7+
"df.global"
78
],
89
"settings": {
910
"Lua.runtime.version": "Lua 5.3",

dist/library/base.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
---@meta
1+
---@meta _
22

33
-- All structure objects inherit from this class.
44
--

dist/library/common.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
---@meta
1+
---@meta _
22

33
---@class df
44
df = {}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
-- THIS FILE WAS GENERATED AUTOMATICALLY. DO NOT EDIT.
2-
---@meta
2+
---@meta 3rdparty.alt_getopt
33

44
---@class altGetopt
55
local altGetopt
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
-- THIS FILE WAS GENERATED AUTOMATICALLY. DO NOT EDIT.
2-
---@meta
2+
---@meta argparse
33

44
---@class argparse
55
local argparse
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
-- THIS FILE WAS GENERATED AUTOMATICALLY. DO NOT EDIT.
2-
---@meta
2+
---@meta binpatch
33

44
---@class binpatch
55
---@field BinaryPatch binpatch.BinaryPatch
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
-- THIS FILE WAS GENERATED AUTOMATICALLY. DO NOT EDIT.
2-
---@meta
2+
---@meta class
33

44
---@class class
55
local class
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
-- THIS FILE WAS GENERATED AUTOMATICALLY. DO NOT EDIT.
2-
---@meta
2+
---@meta custom-raw-tokens
33

44
---@class customRawTokens
55
local customRawTokens

0 commit comments

Comments
 (0)