0.3.38 • Published 17 days ago

typescript-svelte-plugin v0.3.38

Weekly downloads
-
License
MIT
Repository
-
Last release
17 days ago

A TypeScript plugin for Svelte intellisense

This plugin provides intellisense for interacting with Svelte files. It is in a very early stage, so expect bugs. So far the plugin supports

  • Rename
  • Find Usages
  • Go To Definition
  • Diagnostics

Note that these features are only available within TS/JS files. Intellisense within Svelte files is provided by the svelte-language-server.

Usage

The plugin comes packaged with the Svelte for VS Code extension. If you are using that one, you don't need to add it manually.

Adding it manually:

npm install --save-dev typescript-svelte-plugin

Then add it to your tsconfig.json or jsconfig.json:

{
    "compilerOptions": {
        ...
        "plugins": [{
            "name": "typescript-svelte-plugin",
            // the following options can be set additionally; they are optional; their default values are listed here
            "enabled": true, // enables this plugin
            "assumeIsSvelteProject": false // if true, skip detection and always assume it's a Svelte project
        }]
    }
}

Limitations

Changes to Svelte files are only recognized after they are saved to disk.

Credits

  • pushkine for his initial POC and the inspiration/discussion that stemmed from it
0.3.38

17 days ago

0.3.37

4 months ago

0.3.36

6 months ago

0.3.35

6 months ago

0.3.31

9 months ago

0.3.30

9 months ago

0.3.34

7 months ago

0.3.33

8 months ago

0.3.32

8 months ago

0.3.29

10 months ago

0.3.28

10 months ago

0.3.27

11 months ago

0.3.26

12 months ago

0.3.17

1 year ago

0.3.16

1 year ago

0.3.15

1 year ago

0.3.20

1 year ago

0.3.25

1 year ago

0.3.24

1 year ago

0.3.23

1 year ago

0.3.22

1 year ago

0.3.21

1 year ago

0.3.19

1 year ago

0.3.18

1 year ago

0.3.14

1 year ago

0.3.13

1 year ago

0.3.12

1 year ago

0.3.11

1 year ago

0.3.9

2 years ago

0.3.10

2 years ago

0.3.8

2 years ago

0.3.6

2 years ago

0.3.5

2 years ago

0.3.7

2 years ago

0.3.4

2 years ago

0.3.3

2 years ago

0.3.2

2 years ago

0.3.1

2 years ago

0.3.0

2 years ago

0.2.5

3 years ago

0.2.4

3 years ago

0.2.3

3 years ago

0.2.2

3 years ago

0.2.1

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago