cadl/packages/typespec-vs
Timothee Guerin a336c93709
Update prettier config to format trailing commas to `all` (Default) (#4457)
fix #2159 
Long standing backlog issue that was split from an upgrade of prettier
as it created too much diff. Finally doing it
2024-09-16 20:20:57 +00:00
..
scripts Update prettier config to format trailing commas to `all` (Default) (#4457) 2024-09-16 20:20:57 +00:00
src support Arm processor for vs extension (#3461) 2024-06-03 20:54:39 +00:00
CHANGELOG.json Prepare Publish for January Release (#2816) 2024-01-24 11:14:23 -08:00
CHANGELOG.md TypeSpec 0.59 - September Release branch (#4386) 2024-09-10 22:45:59 +00:00
Directory.Build.rsp 2/3 TypeSpec: Renaming files 2023-02-16 13:07:22 -08:00
LICENSE 2/3 TypeSpec: Renaming files 2023-02-16 13:07:22 -08:00
Microsoft.TypeSpec.VS.sln 2/3 TypeSpec: Renaming files 2023-02-16 13:07:22 -08:00
README.md Publish Visual Studio Extension (#2854) 2024-01-30 11:17:38 -08:00
nuget.config 2/3 TypeSpec: Renaming files 2023-02-16 13:07:22 -08:00
package.json TypeSpec 0.59 - September Release branch (#4386) 2024-09-10 22:45:59 +00:00
publishManifest.json Publish Visual Studio Extension (#2854) 2024-01-30 11:17:38 -08:00
typespec.pkgdef Adding .cadl & package.json cadlMain back compat support (#1666) 2023-02-24 14:39:43 -06:00

README.md

TypeSpec Language Support for Visual Studio

Repository | Documentation | Issues | Samples

This provides provides TypeSpec language support for Visual Studio.

Features

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

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.