Skip to content

Commit

Permalink
[ci] format
Browse files Browse the repository at this point in the history
  • Loading branch information
Princesseuh authored and astrobot-houston committed Aug 15, 2024
1 parent d624646 commit 9b6c8b3
Show file tree
Hide file tree
Showing 10 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion packages/language-server/src/core/frontmatterHolders.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { yaml2ts, VIRTUAL_CODE_ID } from '@astrojs/yaml2ts';
import { VIRTUAL_CODE_ID, yaml2ts } from '@astrojs/yaml2ts';
import {
type CodeMapping,
type LanguagePlugin,
Expand Down
4 changes: 2 additions & 2 deletions packages/language-server/src/languageServerPlugin.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import {
MessageType,
ShowMessageNotification,
type Connection,
type LanguagePlugin,
type LanguageServiceEnvironment,
MessageType,
ShowMessageNotification,
} from '@volar/language-server/node';
import { URI } from 'vscode-uri';
import { getAstroLanguagePlugin } from './core';
Expand Down
2 changes: 1 addition & 1 deletion packages/language-server/src/nodeServer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import {
} from '@volar/language-server/node';
import { URI, Utils } from 'vscode-uri';
import {
SUPPORTED_FRONTMATTER_EXTENSIONS_KEYS,
type CollectionConfig,
SUPPORTED_FRONTMATTER_EXTENSIONS_KEYS,
} from './core/frontmatterHolders.js';
import { getLanguagePlugins, getLanguageServicePlugins } from './languageServerPlugin.js';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
---
type:
type:
---
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
---
title: "Article Title"
title: 'Article Title'
---
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
---
title: "A title"
title: 'A title'
---
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
---
title: "Hello"
title: 'Hello'
---
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
---
title: 0
description: "Description!"
description: 'Description!'
---
4 changes: 2 additions & 2 deletions packages/ts-plugin/src/frontmatter.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { yaml2ts, VIRTUAL_CODE_ID } from '@astrojs/yaml2ts';
import { pathToFileURL } from 'node:url';
import { VIRTUAL_CODE_ID, yaml2ts } from '@astrojs/yaml2ts';
import {
type CodeMapping,
type LanguagePlugin,
type VirtualCode,
forEachEmbeddedCode,
} from '@volar/language-core';
import { pathToFileURL } from 'node:url';
import type ts from 'typescript';

const SUPPORTED_FRONTMATTER_EXTENSIONS = { md: 'markdown', mdx: 'mdx', mdoc: 'mdoc' };
Expand Down
2 changes: 1 addition & 1 deletion packages/ts-plugin/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import type { LanguagePlugin } from '@volar/language-core';
import { createLanguageServicePlugin } from '@volar/typescript/lib/quickstart/createLanguageServicePlugin.js';
import type { CollectionConfig } from './frontmatter.js';
import { getFrontmatterLanguagePlugin } from './frontmatter.js';
import { getLanguagePlugin } from './language.js';
import type { LanguagePlugin } from '@volar/language-core';

export = createLanguageServicePlugin((ts, info) => {
let collectionConfig = undefined;
Expand Down

0 comments on commit 9b6c8b3

Please sign in to comment.