GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — TypeScriptToLua.github.io/docs/editor-support.md at source · kyllf/TypeScriptToLua.github.io

Expand file tree

/

editor-support.md

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
46 lines (35 loc) · 1.61 KB
/

editor-support.md

Copy path

File metadata and controls

46 lines (35 loc) · 1.61 KB
Raw
Copy raw file
Download raw file
Outline
Edit and raw actions
title Editor Support

To have basic support for TypeScriptToLua it is enough to configure your editor for TypeScript support.

Language Service Plugin

Sometimes TypeScriptToLua has to report it's own errors during the compilation. To have the same errors displayed in your editor, you can use a language service plugin.

Autocomplete popup from Visual Studio Code with a TypescriptToLua specific error.

To use it either get a Visual Studio Code extension or add it to your project.

Build Tasks

Most of advanced code editors can build your project with npm scripts.

{
  "scripts": {
    "build": "tstl",
    "dev": "tstl --watch"
  }
}

Visual Studio Code

VSCode supports running npm scripts using tasks. To define a task, create a .vscode/tasks.json file or press F1 and run Tasks: Configure Task command. Example configuration:

{
  "version": "2.0.0",
  "tasks": [
    {
      "type": "npm",
      "script": "dev",
      "problemMatcher": "$tsc-watch",
      "isBackground": true,
      "presentation": { "reveal": "never" },
      "group": { "kind": "build", "isDefault": true }
    }
  ]
}
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.