You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# A Visual Studio Code extension for the [glint] language server.
1
+
# Glint VS Code Extension
2
+
3
+
A Visual Studio Code extension for the [Glint] language server.
2
4
3
5
[glint]: https://github.com/typed-ember/glint
6
+
7
+
## Setup
8
+
9
+
See the [Glint home page] for a more detailed Getting Started guide.
10
+
11
+
1. Add `@glint/core` and an appropriate environment package to your project's `devDependencies`.
12
+
1. Create a `.glintrc` file in the root of your project specifying your environment and any other relevant configuration.
13
+
1. Consider disabling the built-in `vscode.typescript-language-features` extension for any workspaces where you use Glint to avoid extraneous diagnostics. <details><summary>Screenshot</summary>
[glint home page]: https://github.com/typed-ember/glint
18
+
19
+
## Usage
20
+
21
+
The Glint language server incorporates Glimmer templates into TypeScript-powered tooling for a project, enabling them to participate in rich editor features such as:
22
+
23
+
- Quickinfo on hover:
24
+
<br>
25
+
<imgsrc="https://user-images.githubusercontent.com/108688/111069238-6eada280-84cc-11eb-9abb-c2d3af5e8976.png"width="590"alt="Signature information being shown on hover for a component's named block">
26
+
- Go to definition:
27
+
<br>
28
+
<imgsrc="https://user-images.githubusercontent.com/108688/111069304-b6ccc500-84cc-11eb-83b2-49681b248cbe.png"width="912"alt="The definition for a component being shown from the site of its invocation in a template">
29
+
- Symbol renaming:
30
+
<br>
31
+
<imgsrc="https://user-images.githubusercontent.com/108688/111070668-ff877c80-84d2-11eb-9a5a-57ae9be7fe2a.gif"width="447"alt="Fields on an object being renamed and having their other uses updated to match">
32
+
- Find references:
33
+
<br>
34
+
<imgsrc="https://user-images.githubusercontent.com/108688/111070826-c6034100-84d3-11eb-9c12-e8e80e168940.png"width="931"alt="Template snippets where a component is used being shown from the site of its declaration">
35
+
- Completions:
36
+
<br>
37
+
<imgsrc="https://user-images.githubusercontent.com/108688/111070948-3f9b2f00-84d4-11eb-9eaa-077cadf6f380.png"width="1010"alt="Component arguments being suggested with type information and documentation">
0 commit comments