forked from CrossBreezeNL/crossmodel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmodel-module.ts
21 lines (19 loc) · 954 Bytes
/
model-module.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/********************************************************************************
* Copyright (c) 2023 CrossBreeze.
********************************************************************************/
import { TextDocument } from 'vscode-languageserver-textdocument';
import { ModelService } from './model-service.js';
import { OpenTextDocumentManager } from './open-text-document-manager.js';
import { OpenableTextDocuments } from './openable-text-documents.js';
/**
* Extension to the default shared model services by Langium.
*/
export interface AddedSharedModelServices {
workspace: {
/* override */ TextDocuments: OpenableTextDocuments<TextDocument>; // more accessible text document store
TextDocumentManager: OpenTextDocumentManager; // open text document facade used by the model service
};
model: {
ModelService: ModelService; // facade to access the Langium semantic models without being a language client
};
}