Skip to content

Commit

Permalink
chore(language-service): remove SharedModules interface
Browse files Browse the repository at this point in the history
  • Loading branch information
johnsoncodehk committed Dec 4, 2023
1 parent 06c778d commit 007ed5a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
6 changes: 4 additions & 2 deletions packages/language-server/lib/types.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { Console, FileSystem, LanguagePlugin, LanguageService, ServicePlugin, ServiceEnvironment, SharedModules } from '@volar/language-service';
import type { Console, FileSystem, LanguagePlugin, LanguageService, ServicePlugin, ServiceEnvironment } from '@volar/language-service';
import type * as ts from 'typescript/lib/tsserverlibrary';
import type * as vscode from 'vscode-languageserver';

Expand Down Expand Up @@ -35,7 +35,9 @@ export type TypeScriptServerPlugin = SimpleServerPlugin<{
export interface SimpleServerPlugin<T = {}, K = undefined> {
(ctx: {
initializationOptions: InitializationOptions;
modules: SharedModules;
modules: {
typescript?: typeof import('typescript/lib/tsserverlibrary');
};
env: ServerRuntimeEnvironment;
}): {
watchFileExtensions?: string[];
Expand Down
4 changes: 0 additions & 4 deletions packages/language-service/lib/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@ import type { DocumentProvider } from './documents';

export type * from 'vscode-languageserver-protocol';

export interface SharedModules {
typescript?: typeof import('typescript/lib/tsserverlibrary');
}

export interface ServiceEnvironment extends RuntimeEnvironment {
workspaceFolder: {
name: string;
Expand Down

0 comments on commit 007ed5a

Please sign in to comment.