Skip to content
This repository was archived by the owner on Dec 25, 2023. It is now read-only.

Commit 6b44cbe

Browse files
committed
Upgrade nova-extension-utils
1 parent 6a1e73f commit 6b44cbe

File tree

3 files changed

+32
-14
lines changed

3 files changed

+32
-14
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"eslint": "^7.10.0",
3838
"eslint-plugin-nova": "^1.0.0",
3939
"jest": "^26.4.2",
40-
"nova-extension-utils": "^1.0.2",
40+
"nova-extension-utils": "^1.0.3",
4141
"onchange": "^7.0.2",
4242
"prettier": "^2.1.2",
4343
"rollup": "^2.28.2",

typescript.novaextension/README.md

Lines changed: 27 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
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.
44

5-
### Editor commands:
5+
## Editor commands:
66

77
Right click source code and choose the following from the TypeScript menu.
88

@@ -12,15 +12,15 @@ Right click source code and choose the following from the TypeScript menu.
1212
- Code Actions
1313
- Offer Suggestions (experimental)
1414

15-
### Workspace commands:
15+
## Workspace commands:
1616

1717
From the menu, select Extensions > TypeScript.
1818

1919
- Find Symbol
2020

21-
### Usage
21+
## Usage
2222

23-
#### Editor functionality
23+
### Editor functionality
2424

2525
Main functionality is found inline in the editor.
2626

@@ -34,30 +34,48 @@ Inline errors can also be found in the Issues sidebar (View > Sidebars > Show Is
3434

3535
<img src="https://raw.githubusercontent.com/apexskier/nova-typescript/14378cc1fccc752cff1bceef2706f98915966a3b/typescript.novaextension/Images/README/example-typeinfo.png" width="400" alt="Example type info">
3636

37-
#### Sidebar
37+
### Sidebar
3838

3939
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.
4040

4141
<img src="https://raw.githubusercontent.com/apexskier/nova-typescript/3cbd2a83f37df63e3e249d16d741ebea82254640/typescript.novaextension/Images/README/example-sidebar.png" width="400" alt="Sidebar information">
4242

43-
#### Find Symbol
43+
### Find Symbol
4444

4545
Find Symbol performs a project search for a symbol. Results are shown in the TS/JS sidebar.
4646

4747
<img src="https://raw.githubusercontent.com/apexskier/nova-typescript/fdf669355c7ffcec4a943ebc9de76b45738f08a7/typescript.novaextension/Images/README/example-findsymbol.png" width="400" alt="Find symbol sidebar">
4848

49-
#### Find References
49+
### Find References
5050

5151
Find References shows all usages of a given variable, function, or other symbol. Results are shown in the TS/JS sidebar.
5252

5353
<img src="https://user-images.githubusercontent.com/329222/90985881-070b2680-e57f-11ea-83e6-89ab3d4df055.png" width="400" alt="Find references sidebar">
5454

55-
#### Using the workspace version of TypeScript
55+
### Using the workspace version of TypeScript
5656

5757
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.
5858

5959
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)
6060

61-
#### Enable/Disable for Javascript
61+
### Enable/Disable for Javascript
6262

6363
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.

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3232,10 +3232,10 @@ normalize-path@^3.0.0, normalize-path@~3.0.0:
32323232
resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-3.0.0.tgz#0dcd69ff23a1c9b11fd0978316644a0388216a65"
32333233
integrity sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==
32343234

3235-
nova-extension-utils@^1.0.2:
3236-
version "1.0.2"
3237-
resolved "https://registry.yarnpkg.com/nova-extension-utils/-/nova-extension-utils-1.0.2.tgz#71712e33f8d116520653d4562534ac642a8a3bc1"
3238-
integrity sha512-/YNfx/WM/eE9/JfV21VygafINR2x3kiwY/LhaS2PDv4Z8k4Ysu2PiN5hydHTBw0hqoW6HipN3HPZwuudSVR6rQ==
3235+
nova-extension-utils@^1.0.3:
3236+
version "1.0.3"
3237+
resolved "https://registry.yarnpkg.com/nova-extension-utils/-/nova-extension-utils-1.0.3.tgz#a79ae810d91dac9d4e30f33d7846507c882b1705"
3238+
integrity sha512-pr+Dy0TbEjVqzEeypyDplvMsCR4FMdwuipuZB3WiKmHncG6RXzAXsnWa1uLnVoTSmk9Zg2sTCMF1jwEqJUzNOQ==
32393239

32403240
npm-run-path@^2.0.0:
32413241
version "2.0.2"

0 commit comments

Comments
 (0)