Skip to content

Commit

Permalink
chore: replace type import to triple-slash directives for `@volar/typ…
Browse files Browse the repository at this point in the history
…escript`
  • Loading branch information
johnsoncodehk committed Jul 5, 2024
1 parent 1d0f674 commit 36cef92
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
11 changes: 6 additions & 5 deletions packages/language-core/lib/languageModule.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
/// <reference types="@volar/typescript" />

import { forEachEmbeddedCode, type LanguagePlugin } from '@volar/language-core';
import * as CompilerDOM from '@vue/compiler-dom';
import type * as ts from 'typescript';
import { getBasePlugins } from './plugins';
import type { VueCompilerOptions, VueLanguagePlugin } from './types';
import { VueVirtualCode } from './virtualFile/vueFile';
import * as CompilerDOM from '@vue/compiler-dom';
import * as CompilerVue2 from './utils/vue2TemplateCompiler';
import useHtmlFilePlugin from './plugins/file-html';
import useMdFilePlugin from './plugins/file-md';
import useVueFilePlugin from './plugins/file-vue';
import type * as _ from '@volar/typescript';
import type { VueCompilerOptions, VueLanguagePlugin } from './types';
import * as CompilerVue2 from './utils/vue2TemplateCompiler';
import { VueVirtualCode } from './virtualFile/vueFile';

const normalFileRegistries: {
key: string;
Expand Down
2 changes: 2 additions & 0 deletions packages/language-service/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/// <reference types="@volar/typescript" />

export * from '@volar/language-service';
export * from '@vue/language-core';
export * from './lib/ideFeatures/nameCasing';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { hyphenateAttr } from '@vue/language-core';
import type * as ts from 'typescript';
import type { TextDocument } from 'vscode-languageserver-textdocument';
import { URI } from 'vscode-uri';
import * as _ from '@volar/typescript';

const asts = new WeakMap<ts.IScriptSnapshot, ts.SourceFile>();

Expand Down

0 comments on commit 36cef92

Please sign in to comment.