Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
johnsoncodehk committed Mar 9, 2024
1 parent f11f08e commit f2ab701
Show file tree
Hide file tree
Showing 12 changed files with 987 additions and 983 deletions.
3 changes: 1 addition & 2 deletions packages/typescript-twoslash-queries/index.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
import type { InlayHint, ServicePlugin, ServicePluginInstance } from '@volar/language-service';
import type { Provide } from 'volar-service-typescript';

export function create(): ServicePlugin {
export function create(ts: typeof import('typescript')): ServicePlugin {
return {
name: 'typescript-twoslash-queries',
create(context): ServicePluginInstance {
return {
provideInlayHints(document, range) {
if (isTsDocument(document.languageId)) {

const ts = context.inject<Provide, 'typescript/typescript'>('typescript/typescript');
const languageService = context.inject<Provide, 'typescript/languageService'>('typescript/languageService');
const inlayHints: InlayHint[] = [];

Expand Down
Loading

0 comments on commit f2ab701

Please sign in to comment.