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
{{ message }}
This repository was archived by the owner on Dec 25, 2023. It is now read-only.
Copy file name to clipboardExpand all lines: typescript.novaextension/README.md
+27-9Lines changed: 27 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
This extension provides rich TypeScript integration through a dedicated language server for both TypeScript and javascript code. Hover over symbols to see type information, receive better autocomplete suggestions, and see type warnings and errors inline. Quickly search for symbols across your project and type dependencies using the "Find Symbol" command. Apply common code refactors with code actions.
4
4
5
-
###Editor commands:
5
+
## Editor commands:
6
6
7
7
Right click source code and choose the following from the TypeScript menu.
8
8
@@ -12,15 +12,15 @@ Right click source code and choose the following from the TypeScript menu.
12
12
- Code Actions
13
13
- Offer Suggestions (experimental)
14
14
15
-
###Workspace commands:
15
+
## Workspace commands:
16
16
17
17
From the menu, select Extensions > TypeScript.
18
18
19
19
- Find Symbol
20
20
21
-
###Usage
21
+
## Usage
22
22
23
-
####Editor functionality
23
+
### Editor functionality
24
24
25
25
Main functionality is found inline in the editor.
26
26
@@ -34,30 +34,48 @@ Inline errors can also be found in the Issues sidebar (View > Sidebars > Show Is
34
34
35
35
<imgsrc="https://raw.githubusercontent.com/apexskier/nova-typescript/14378cc1fccc752cff1bceef2706f98915966a3b/typescript.novaextension/Images/README/example-typeinfo.png"width="400"alt="Example type info">
36
36
37
-
####Sidebar
37
+
### Sidebar
38
38
39
39
The TS/JS sidebar shows status information about the extension including the version of typescript it's using and if it's started successfully. To access the sidebar, click the “All Sidebars” button or View > Sidebars > Show All Sidebars, then the TS/JS item. It can be dragged into the sidebar header for quick access.
Find Symbol performs a project search for a symbol. Results are shown in the TS/JS sidebar.
46
46
47
47
<imgsrc="https://raw.githubusercontent.com/apexskier/nova-typescript/fdf669355c7ffcec4a943ebc9de76b45738f08a7/typescript.novaextension/Images/README/example-findsymbol.png"width="400"alt="Find symbol sidebar">
48
48
49
-
####Find References
49
+
### Find References
50
50
51
51
Find References shows all usages of a given variable, function, or other symbol. Results are shown in the TS/JS sidebar.
This extension will automatically find the workspace version of TypeScript installed under `node_modules` in your workspace root. If one isn't installed it will use a recent, bundled version of typescript.
58
58
59
59
To customize this you can specify the TypeScript library location in workspace preferences (Extensions > TypeScript > Preferences > TypeScript Library) as an absolute or workspace-relative path. This should point to a directory containing the TypeScript `tsserver.js` file, generally ending with `node_modules/typescript/lib`. If installed globally, you can find the installation location using `npm list -g typescript` (e.g. "/usr/local/lib/node_modules/typescript/lib"). (You should only need this if your workspace doesn't install typescript under the workspace's root `node_modules` directory or you use a global installation of TypeScript)
60
60
61
-
####Enable/Disable for Javascript
61
+
### Enable/Disable for Javascript
62
62
63
63
In certain situations, such as when working with Flow types, you may need to disable this in javascript files. You can do this by configuring preferences per-project in Project Settings or globally in the Extension Library.
64
+
65
+
## Troubleshooting
66
+
67
+
Many issues are caused by a missing or improperly configured local node/npm installation.
68
+
69
+
Check the Extension Console by turning on extension development in Nova in Preferences > General > Extension Development, then Extensions > Show Extension Console, then filter by Source.
70
+
71
+
- Check for any warnings or errors. They might indicate a problem with your local environment or a bug with the extension.
72
+
- If you see
73
+
```
74
+
activating...
75
+
Already locked
76
+
```
77
+
and _do not see_
78
+
```
79
+
activated
80
+
```
81
+
something may have gone wrong. Try running the "Force Unlock Dependency Installation" command for this extension.
0 commit comments