Skip to content

Commit 1222305

Browse files
authoredOct 6, 2023
tech(LS): re-organise language-server library (#1555)
- Encapsulated core logic inside of `/lib/`, `MessageHandler.ts` functions as the entry point here. - Tests have been updated to use the new `lib/xyz` import - Stray top-level files have been categorised - `*util` files have been removed in favour of more explicitly named files. - `/ast/` defines the logic for navigating the schema - `completions` has been broken up into constituents for the various sections of schema - `panic`, `wasm`, and `WasmPanicRegistry` were all previously separate top-level files. To reflect their coupled relation with `prisma-schema-wasm`, they have now been moved into it's new sub-dir: `error` contributes https://github.com/prisma/team-orm/issues/367
1 parent e75ded2 commit 1222305

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+2663
-2445
lines changed
 

‎packages/language-server/src/__test__/artificial-panic.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import {
55
handleCompletionRequest,
66
handleDiagnosticsRequest,
77
handleDocumentFormatting,
8-
} from '../MessageHandler'
8+
} from '../lib/MessageHandler'
99
import { CURSOR_CHARACTER, findCursorPosition, getTextDocument } from './helper'
1010

1111
import * as assert from 'assert'

‎packages/language-server/src/__test__/completion.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { TextDocument } from 'vscode-languageserver-textdocument'
2-
import { handleCompletionRequest } from '../MessageHandler'
2+
import { handleCompletionRequest } from '../lib/MessageHandler'
33
import { CompletionList, CompletionParams, CompletionItemKind, CompletionTriggerKind } from 'vscode-languageserver'
44
import assert from 'assert'
55
import dedent from 'ts-dedent'

0 commit comments

Comments
 (0)