cadl/packages/typespec-vscode
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
..
icons Add icon to website and vscode extension (#2829) 2024-01-25 11:25:28 -08:00
scripts Update prettier config to format trailing commas to `all` (Default) (#4457) 2024-09-16 20:20:57 +00:00
src Update prettier config to format trailing commas to `all` (Default) (#4457) 2024-09-16 20:20:57 +00:00
.npmignore Update dependencies (#3948) 2024-07-23 21:02:34 +00:00
.vscodeignore Add icon to website and vscode extension (#2829) 2024-01-25 11:25:28 -08: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
LICENSE
README.md Add gif to vscode readme and rerelease (#3003) 2024-03-07 15:46:27 -08:00
ThirdPartyNotices.txt Update dependencies (#3948) 2024-07-23 21:02:34 +00:00
markdown-typespec.json Adding .cadl & package.json cadlMain back compat support (#1666) 2023-02-24 14:39:43 -06:00
package.json Bump dependencies - Sep 2024 (#4424) 2024-09-13 15:50:22 +00:00
rollup.config.ts VSCode extension: Use rollup for dev build too (#2730) 2023-12-14 10:04:01 -08:00
tsconfig.build.json VSCode extension: Use rollup for dev build too (#2730) 2023-12-14 10:04:01 -08:00
tsconfig.config.json Vitest improvements: vitest-ui, watch mode for deps, debug config (#2791) 2024-01-22 09:56:55 -08:00
tsconfig.json Migrate test framework to vitest (#2769) 2024-01-02 11:40:29 -08:00
vitest.config.ts Vitest improvements: vitest-ui, watch mode for deps, debug config (#2791) 2024-01-22 09:56:55 -08:00

README.md

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"
}