diff --git a/packages/language-service/package.json b/packages/language-service/package.json index 05b8b8cac..58ebeaf8f 100644 --- a/packages/language-service/package.json +++ b/packages/language-service/package.json @@ -36,8 +36,7 @@ "@types/culori": "^2.1.0", "@types/vscode": "^1.86.0", "vscode-languageserver": "^7.0.0", - "vscode-languageserver-textdocument": "^1.0.11", - "vscode-languageserver-types": "^3.17.5" + "vscode-languageserver-textdocument": "^1.0.11" }, "sideEffects": false, "main": "./dist/index.cjs", diff --git a/packages/language-service/src/constant.ts b/packages/language-service/src/constant.ts index d824e1cd0..52100dbb0 100644 --- a/packages/language-service/src/constant.ts +++ b/packages/language-service/src/constant.ts @@ -1,4 +1,4 @@ -import type { CompletionItem } from 'vscode-languageserver-types' +import type { CompletionItem } from 'vscode-languageserver' interface MasterCssKey { key: string[]; diff --git a/packages/language-service/src/features/edit-syntax-colors.ts b/packages/language-service/src/features/edit-syntax-colors.ts index 4e9e8b188..da0ac08cf 100644 --- a/packages/language-service/src/features/edit-syntax-colors.ts +++ b/packages/language-service/src/features/edit-syntax-colors.ts @@ -1,7 +1,6 @@ -import { TextDocument } from 'vscode-languageserver-textdocument' +import type { TextDocument } from 'vscode-languageserver-textdocument' import CSSLanguageService from '../core' -import { ColorPresentation } from 'vscode-languageserver-types' -import { ColorPresentationParams } from 'vscode-languageserver/node' +import type { ColorPresentationParams, ColorPresentation } from 'vscode-languageserver' import convertColor from '../utils/convert-color' export default function editSyntaxColors( diff --git a/packages/language-service/src/features/hint-syntax-completions.ts b/packages/language-service/src/features/hint-syntax-completions.ts index 0dff5f804..84d2c14c3 100644 --- a/packages/language-service/src/features/hint-syntax-completions.ts +++ b/packages/language-service/src/features/hint-syntax-completions.ts @@ -8,7 +8,7 @@ import { masterCssCommonValues } from '../constant' -import type { CompletionItem, CompletionItemKind } from 'vscode-languageserver-types' +import type { CompletionItem, CompletionItemKind } from 'vscode-languageserver' import type { Position, TextDocument } from 'vscode-languageserver-textdocument' import { MasterCSS } from '@master/css' // @ts-expect-error diff --git a/packages/language-service/src/features/inspect-syntax.ts b/packages/language-service/src/features/inspect-syntax.ts index 58320a36e..6ad4dca50 100644 --- a/packages/language-service/src/features/inspect-syntax.ts +++ b/packages/language-service/src/features/inspect-syntax.ts @@ -1,4 +1,4 @@ -import type { Hover, Range } from 'vscode-languageserver-types' +import type { Hover, Range } from 'vscode-languageserver' import { Layer } from '@master/css' import { getCssEntryMarkdownDescription } from '../utils/get-css-entry-markdown-description' // @ts-expect-error diff --git a/packages/language-service/src/features/render-syntax-colors.ts b/packages/language-service/src/features/render-syntax-colors.ts index 6762c958e..40f720873 100644 --- a/packages/language-service/src/features/render-syntax-colors.ts +++ b/packages/language-service/src/features/render-syntax-colors.ts @@ -1,4 +1,4 @@ -import type { ColorInformation } from 'vscode-languageserver-types' +import type { ColorInformation } from 'vscode-languageserver' import { instancePattern } from '../utils/regex' import CSSLanguageService from '../core' import { TextDocument } from 'vscode-languageserver-textdocument'