File tree Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change 1
1
import { createLanguageServicePlugin } from '@volar/typescript/lib/quickstart/createLanguageServicePlugin.js' ;
2
- import { createAssetLanguage } from './language-service/language .js' ;
2
+ import { createAssetLanguagePlugin } from './language-plugin .js' ;
3
3
import { getAssetPluginOptions } from './option.js' ;
4
4
5
5
export = createLanguageServicePlugin ( ( ts , info ) => {
@@ -10,7 +10,5 @@ export = createLanguageServicePlugin((ts, info) => {
10
10
return { languagePlugins : [ ] } ;
11
11
}
12
12
13
- const assetLanguage = createAssetLanguage ( ts . sys , assetPluginOptions ) ;
14
-
15
- return { languagePlugins : [ assetLanguage ] } ;
13
+ return { languagePlugins : [ createAssetLanguagePlugin ( ts . sys , assetPluginOptions ) ] } ;
16
14
} ) ;
Original file line number Diff line number Diff line change @@ -2,10 +2,13 @@ import path from 'node:path';
2
2
import type { LanguagePlugin } from '@volar/language-core' ;
3
3
import type { } from '@volar/typescript' ;
4
4
import ts from 'typescript/lib/tsserverlibrary' ;
5
- import { getDtsContent } from '.. /dts' ;
6
- import type { AssetPluginOptions } from '.. /option' ;
5
+ import { getDtsContent } from './dts' ;
6
+ import type { AssetPluginOptions } from './option' ;
7
7
8
- export function createAssetLanguage ( sys : ts . System , assetPluginOptions : AssetPluginOptions ) : LanguagePlugin < string > {
8
+ export function createAssetLanguagePlugin (
9
+ sys : ts . System ,
10
+ assetPluginOptions : AssetPluginOptions ,
11
+ ) : LanguagePlugin < string > {
9
12
return {
10
13
getLanguageId ( scriptId ) {
11
14
if ( isMatchFile ( scriptId ) ) return 'asset' ;
You can’t perform that action at this time.
0 commit comments