Skip to content

HappySunChild/CC-Tweaked-VSCode-Workspace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CC:Tweaked VSCode Workspace

A LuaCATS typed workspace for CC:Tweaked, as well as some integrations for Advanced Peripherals, Create, Tom's Peripherals, and Plethora.

How To Install

You will need the Lua Language Server VS Code extension by sumneko for this workspace to work. vscodeExtension

Once you download the workspace you will need to go into the extension's settings and add the path into workspace.library. Copy and pastable settings path for your leisure: @ext:sumneko.lua workspace.Library

extensionSettings

It is also recommended that you disable the built-in io and os globals that come with the extension, as CC:Tweaked adds it's own methods for these libraries. Copy and pastable settings path for your leisure: @ext:sumneko.lua Builtin

disableSettings

Type Annotations

You can specify type annotations for things explicitly by using LuaCATS. This is especially useful when wrapping peripherals:

local monitor = peripheral.wrap("top") ---@type cc.peripheral.Monitor
monitor.setTextScale(4)
monitor.write("Hello world!")

About

A typed workspace for CC:Tweaked.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages