diff options
author | 2021-05-26 18:31:27 +0000 | |
---|---|---|
committer | 2021-05-26 18:31:27 +0000 | |
commit | 5fa7e354b3e66ea95b2c210f51cc2517897bf8f0 (patch) | |
tree | d8bbe3764e006c147d5198d53ec1d126bde75379 /tools/astro-languageserver/src | |
parent | 643c880f280c3f571a022b6f4d40b6d5a0e911b5 (diff) | |
download | astro-5fa7e354b3e66ea95b2c210f51cc2517897bf8f0.tar.gz astro-5fa7e354b3e66ea95b2c210f51cc2517897bf8f0.tar.zst astro-5fa7e354b3e66ea95b2c210f51cc2517897bf8f0.zip |
[ci] yarn format
Diffstat (limited to 'tools/astro-languageserver/src')
-rw-r--r-- | tools/astro-languageserver/src/plugins/typescript/DocumentSnapshot.ts | 2 | ||||
-rw-r--r-- | tools/astro-languageserver/src/plugins/typescript/LanguageServiceManager.ts | 4 |
2 files changed, 2 insertions, 4 deletions
diff --git a/tools/astro-languageserver/src/plugins/typescript/DocumentSnapshot.ts b/tools/astro-languageserver/src/plugins/typescript/DocumentSnapshot.ts index 04ea170d4..9e2e778c6 100644 --- a/tools/astro-languageserver/src/plugins/typescript/DocumentSnapshot.ts +++ b/tools/astro-languageserver/src/plugins/typescript/DocumentSnapshot.ts @@ -211,7 +211,7 @@ export class TypeScriptDocumentSnapshot implements DocumentSnapshot { } async getFragment(): Promise<DocumentFragmentSnapshot> { - return (this as unknown) as any; + return this as unknown as any; } destroyFragment() { diff --git a/tools/astro-languageserver/src/plugins/typescript/LanguageServiceManager.ts b/tools/astro-languageserver/src/plugins/typescript/LanguageServiceManager.ts index d2a5cecff..3ebcfdd77 100644 --- a/tools/astro-languageserver/src/plugins/typescript/LanguageServiceManager.ts +++ b/tools/astro-languageserver/src/plugins/typescript/LanguageServiceManager.ts @@ -61,9 +61,7 @@ export class LanguageServiceManager { return tsService.updateDocument(pathOrDoc); } - async getTypeScriptDoc( - document: Document - ): Promise<{ + async getTypeScriptDoc(document: Document): Promise<{ tsDoc: DocumentSnapshot; lang: ts.LanguageService; }> { |