Everlaw / nbts

NetBeans TypeScript editor plugin
282 stars 46 forks source link

TS should be recognized inside vue files #126

Open Chris2011 opened 6 years ago

Chris2011 commented 6 years ago

In vue, it is possible to have TS inside a .vue file, when you do this:

<script name="ts">
import Vue from 'vue';

export default class LanguageTypeListComponent extends Vue {
}
</script>

So please parse a vue file e.g. that everything is working well inside this script tag.

Cheers

Chris

Chris2011 commented 6 years ago

Such a functionality was already asked for HTML files, but with this piece of code:

<script type="text/typescript"></script>

It is not official yet, but they think about it: https://github.com/Microsoft/TypeScript/issues/12874

But this will be an other topic, only to let you know this.

Chris2011 commented 5 years ago

We need this support, to support vue in NetBeans to parse such a block of code which is TypeScript and not JS. Atm only for *.vue files.