Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change where defs live for MQ scripts #38

Conversation

projecteon
Copy link
Contributor

Adding library path to the MQ install will give definitions, then the definitiosn live with the code

Adding library path to the MQ install will give definitions, then the definitiosn live with the code
@johnfking johnfking merged commit fc9701a into macroquest:master Feb 26, 2023
Copy link
Contributor

@brainiac brainiac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

An important thing to note, is that if your workspace root is set as your lua folder, you don't need to add the lua folder as a library path, so I think this should be mentioned and the path to the lua folder should be an optional step, should you chose to set it up that way (at least explain why you need it)

i want to get @johnfking 's opinion as well

],
}
```

Adding the absolute path to the macroquest binary lua folder will give type definitions for lua files shipped with Macroquest.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i'm worred that the word binary here can be misconstrued. This just needs to be the path to the lua folder, and its only necessary if you are developing from outside of lua folder tree.

I'd separate this out to be more clearly labeled an optional step, and why you'd need it.

@@ -15,10 +15,14 @@ The extension can also be installed directly from within VSCode. Search Extensi
"Lua.runtime.version": "LuaJIT",
"Lua.workspace.library": [
"./relative/path/to/mq-definitions",
"absolute/path/to/macroquest/lua",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know this is a placeholder, but this placeholder isn't an absolute path either. absolute starts with a drive letter.

@projecteon projecteon deleted the master-handle-mq-script-defs-diffrently branch March 27, 2024 09:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants