@analogjs/language-server 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/out/languagePlugin.js +16 -1
- package/package.json +1 -1
package/out/languagePlugin.js
CHANGED
|
@@ -137,7 +137,22 @@ function createAnalogCode(snapshot) {
|
|
|
137
137
|
id: 'script_' + scripts++,
|
|
138
138
|
languageId: isTs ? 'typescript' : 'javascript',
|
|
139
139
|
snapshot: {
|
|
140
|
-
getText: (start, end) => text.substring(start, end)
|
|
140
|
+
getText: (start, end) => `${text.substring(start, end)}
|
|
141
|
+
/**
|
|
142
|
+
* Defines additional metadata for the component such as the
|
|
143
|
+
* selector, providers, and more.
|
|
144
|
+
*/
|
|
145
|
+
declare function defineMetadata(metadata: {}): void;
|
|
146
|
+
/**
|
|
147
|
+
* Defines the lifecycle hook(ngOnInit) that is called when the
|
|
148
|
+
* component is initialized.
|
|
149
|
+
*/
|
|
150
|
+
declare function onInit(destroyFn: () => void): void;
|
|
151
|
+
/**
|
|
152
|
+
* Defines the lifecycle hook(ngOnDestroy) that is called when the
|
|
153
|
+
* component is destroyed.
|
|
154
|
+
*/
|
|
155
|
+
declare function onDestroy(destroyFn: () => void): void;`,
|
|
141
156
|
getLength: () => text.length,
|
|
142
157
|
getChangeRange: () => undefined,
|
|
143
158
|
},
|