Skip to content

Files

Latest commit

e316792 · May 20, 2024

History

History
This branch is 1264 commits behind microsoft/typespec:main.

typespec-vscode

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Jan 25, 2024
Feb 16, 2023
May 17, 2024
Jan 25, 2024
Jan 24, 2024
May 8, 2024
Feb 16, 2023
Mar 7, 2024
May 20, 2024
Feb 24, 2023
May 20, 2024
Dec 14, 2023
Dec 14, 2023
Jan 22, 2024
Jan 2, 2024
Jan 22, 2024

TypeSpec Language Support for VS Code

Repository | Documentation | Issues | Samples

This provides provides TypeSpec language support for VS Code.

Features

  • Live diagnostic reporting
  • Syntax highlighting
  • Code completion
  • Code folding
  • Formatting
  • Hover info
  • Rename refactoring
  • Go to definition

Configure

TypeSpec wil interpolate a few variables using this pattern ${<name>}. For example ${workspaceFolder}.

Available variables:

  • workspaceFolder: Corespond to the root of your Visual Studio workspace.

typespec.tsp-server.path: Configure the server path

There are cases where the TypeSpec project is located in a subfolder. In such cases, the TypeSpec extension is not able to find the tsp compiler automatically and needs a little guidance. This setting provides the ability to configure where the tsp compiler is located.

{
  "typespec.tsp-server.path": "${workspaceFolder}/my-nested-project/node_modules/@typespec/compiler"
}