wurstscript / wurst4vscode

Wurst extension for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=peterzeller.wurst
Apache License 2.0
24 stars 2 forks source link

how to inject compiletime objects using vscode without WurstWE? #22

Closed vitalexbel closed 7 years ago

vitalexbel commented 7 years ago

thx

Frotty commented 7 years ago

add

-runcompiletimefunctions
-injectobjects

to your wurst_run.args file next to your map.

Cokemonkey11 commented 7 years ago

@Frotty is this feature documented?

Frotty commented 7 years ago

it will be in the new manual

peq commented 7 years ago

There will be a new manual?

On Jun 28, 2017 13:15, "Frotty" notifications@github.com wrote:

it will be in the new manual

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/peq/wurst4vscode/issues/22#issuecomment-311630104, or mute the thread https://github.com/notifications/unsubscribe-auth/ABBakgAxWhUYk9QVNhVeC3pwq_gZQ2vPks5sIjW_gaJpZM4OG7fp .

vitalexbel commented 7 years ago

I dont know why but when I run a map with VSCode, it injects nothing and ignores compiletime funcs. wurst_run.args contains

-runcompiletimefunctions
-injectobjects

and is in the same folder as a map. screenshot_1 When I use Sharpcraft World editor and save map with: screenshot_2 it adds import and does compiletime funcs. And I dont undesrtand why I can do it with Sharpcraft WE but cant do it with VSCode plz help me