Skip to content

Commit

Permalink
Update languageserver types
Browse files Browse the repository at this point in the history
  • Loading branch information
1aron committed Mar 21, 2024
1 parent f18dd19 commit 4e3266b
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 9 deletions.
3 changes: 1 addition & 2 deletions packages/language-service/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion packages/language-service/src/constant.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { CompletionItem } from 'vscode-languageserver-types'
import type { CompletionItem } from 'vscode-languageserver'

interface MasterCssKey {
key: string[];
Expand Down
5 changes: 2 additions & 3 deletions packages/language-service/src/features/edit-syntax-colors.ts
Original file line number Diff line number Diff line change
@@ -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(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion packages/language-service/src/features/inspect-syntax.ts
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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'
Expand Down

0 comments on commit 4e3266b

Please sign in to comment.