|
4 | 4 | * terms of the MIT License, which is available in the project root. |
5 | 5 | ******************************************************************************/ |
6 | 6 |
|
7 | | -import type { CompletionItem, CompletionList, Diagnostic, DocumentSymbol, FoldingRange, FormattingOptions, Range, ReferenceParams, SemanticTokensParams, SemanticTokenTypes, TextDocumentIdentifier, TextDocumentPositionParams, WorkspaceSymbol } from 'vscode-languageserver'; |
| 7 | +import type { CompletionItem, CompletionList, Diagnostic, DocumentSymbol, FoldingRange, FormattingOptions, Range, ReferenceParams, SemanticTokensParams, SemanticTokenTypes, TextDocumentIdentifier, TextDocumentPositionParams, WorkspaceSymbol } from 'vscode-languageserver-protocol'; |
8 | 8 | import type { LangiumCoreServices, LangiumSharedCoreServices } from '../services.js'; |
9 | 9 | import type { AstNode, CstNode, Properties } from '../syntax-tree.js'; |
10 | | -import type { LangiumDocument } from '../workspace/documents.js'; |
| 10 | +import { type LangiumDocument, TextDocument } from '../workspace/documents.js'; |
11 | 11 | import type { BuildOptions } from '../workspace/document-builder.js'; |
12 | | -import { DiagnosticSeverity, MarkupContent } from 'vscode-languageserver'; |
| 12 | +import { DiagnosticSeverity, MarkupContent } from 'vscode-languageserver-types'; |
13 | 13 | import { escapeRegExp } from '../utils/regexp-utils.js'; |
14 | 14 | import { URI } from '../utils/uri-utils.js'; |
15 | 15 | import { findNodeForProperty } from '../utils/grammar-utils.js'; |
16 | 16 | import { SemanticTokensDecoder } from '../lsp/semantic-token-provider.js'; |
17 | | -import { TextDocument } from 'vscode-languageserver-textdocument'; |
18 | 17 | import * as assert from 'node:assert'; |
19 | 18 | import { stream } from '../utils/stream.js'; |
20 | 19 | import type { AsyncDisposable } from '../utils/disposable.js'; |
|
0 commit comments