summaryrefslogtreecommitdiff
path: root/tools/language-server/src/plugins/interfaces.ts
diff options
context:
space:
mode:
authorGravatar Matthew Phillips <matthew@matthewphillips.info> 2021-08-10 09:30:02 -0400
committerGravatar GitHub <noreply@github.com> 2021-08-10 09:30:02 -0400
commit2c5380a26631f720bfbbcec78295c71b562e647d (patch)
tree40ead718c2d817265a8d40bb04d099aae507c4a7 /tools/language-server/src/plugins/interfaces.ts
parent1339d5e36bdaae1eeea6bf9d99b2bdf4d69d604a (diff)
downloadastro-2c5380a26631f720bfbbcec78295c71b562e647d.tar.gz
astro-2c5380a26631f720bfbbcec78295c71b562e647d.tar.zst
astro-2c5380a26631f720bfbbcec78295c71b562e647d.zip
Add support for Astro.* completion and Hover help (#1068)
* Add support for Astro.* completion and Hover help * Allow providing a generic type to fetchContent
Diffstat (limited to 'tools/language-server/src/plugins/interfaces.ts')
-rw-r--r--tools/language-server/src/plugins/interfaces.ts6
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/language-server/src/plugins/interfaces.ts b/tools/language-server/src/plugins/interfaces.ts
index b68100de1..84e4cbda3 100644
--- a/tools/language-server/src/plugins/interfaces.ts
+++ b/tools/language-server/src/plugins/interfaces.ts
@@ -164,4 +164,8 @@ export interface LSPProviderConfig {
definitionLinkSupport: boolean;
}
-export type Plugin = Partial<ProviderBase & DefinitionsProvider & OnWatchFileChanges & SelectionRangeProvider & UpdateTsOrJsFile>;
+interface NamedPlugin {
+ pluginName: string;
+}
+
+export type Plugin = Partial<NamedPlugin & ProviderBase & DefinitionsProvider & OnWatchFileChanges & SelectionRangeProvider & UpdateTsOrJsFile>;