@@ -80,7 +80,7 @@ export class TwindPlugin {
80
80
81
81
// eslint-disable-next-line @typescript-eslint/no-explicit-any
82
82
getCompletionEntryDetails : ( fileName , position , name , ...rest : any [ ] ) => {
83
- if ( enable ) {
83
+ if ( enable && ttls . enabled ) {
84
84
const context = helper . getTemplate ( fileName , position )
85
85
86
86
if ( context ) {
@@ -97,7 +97,7 @@ export class TwindPlugin {
97
97
} ,
98
98
99
99
getCompletionsAtPosition : ( fileName , position , options ) => {
100
- if ( enable ) {
100
+ if ( enable && ttls . enabled ) {
101
101
const context = helper . getTemplate ( fileName , position )
102
102
103
103
if ( context ) {
@@ -112,7 +112,7 @@ export class TwindPlugin {
112
112
} ,
113
113
114
114
getQuickInfoAtPosition : ( fileName , position ) => {
115
- if ( enable ) {
115
+ if ( enable && ttls . enabled ) {
116
116
const context = helper . getTemplate ( fileName , position )
117
117
118
118
if ( context ) {
@@ -136,7 +136,7 @@ export class TwindPlugin {
136
136
getSemanticDiagnostics : ( fileName ) => {
137
137
const diagnostics = [ ...languageService . getSemanticDiagnostics ( fileName ) ]
138
138
139
- if ( enable ) {
139
+ if ( enable && ttls . enabled ) {
140
140
helper . getAllTemplates ( fileName ) . forEach ( ( context ) => {
141
141
for ( const diagnostic of ttls . getSemanticDiagnostics ( context ) ) {
142
142
diagnostics . push ( {
0 commit comments