Skip to content

Files

Latest commit

dd0ccee · Mar 14, 2023

History

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

typespec-vs

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Feb 16, 2023
Feb 24, 2023
Mar 14, 2023
Mar 14, 2023
Feb 16, 2023
Feb 16, 2023
Feb 16, 2023
Feb 16, 2023
Feb 16, 2023
Mar 14, 2023
Feb 24, 2023

TypeSpec Language Support for Visual Studio

This package provides TypeSpec language support for Visual Studio 2019 and 2022.

See https://github.com/microsoft/typespec#installing-visual-studio-extension for installation instructions.

NOTE: The npm package is used as an implementation detail of the tsp vs command that installs the Visual Studio TypeSpec extension, and not intended to be used for other purposes.

Configure TYPESPEC Visual Studio Extension

  1. Create a file .vs/VSWorkspaceSettings.json at the root of the project.
  2. Add configuration as key value pair in this file. Example:
{
  "typespec.tsp-server.path": "${workspaceFolder}/my-nested-project/node_modules/@typespec/compiler"
}

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

Available variables:

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