Skip to content

Latest commit

 

History

45 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages