remove lerna and update lsp deps
parent
8aca9fcd37
commit
33523b3f11
File diff suppressed because it is too large
Load Diff
10
package.json
10
package.json
|
@ -1,9 +1,7 @@
|
||||||
{
|
{
|
||||||
|
"name": "vscode-tailwindcss",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"workspaces": [
|
||||||
"bootstrap": "lerna clean && lerna bootstrap --hoist"
|
"packages/*"
|
||||||
},
|
]
|
||||||
"devDependencies": {
|
|
||||||
"lerna": "^3.22.1"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,18 +0,0 @@
|
||||||
{
|
|
||||||
"name": "vscode-tailwindcss",
|
|
||||||
"version": "0.4.3",
|
|
||||||
"lockfileVersion": 1,
|
|
||||||
"requires": true,
|
|
||||||
"dependencies": {
|
|
||||||
"mitt": {
|
|
||||||
"version": "1.2.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/mitt/-/mitt-1.2.0.tgz",
|
|
||||||
"integrity": "sha512-r6lj77KlwqLhIUku9UWYes7KJtsczvolZkzp8hbaDPPaE24OmWl5s539Mytlj22siEQKosZ26qCBgda2PKwoJw=="
|
|
||||||
},
|
|
||||||
"typescript": {
|
|
||||||
"version": "3.8.3",
|
|
||||||
"resolved": "https://registry.npmjs.org/typescript/-/typescript-3.8.3.tgz",
|
|
||||||
"integrity": "sha512-MYlEfn5VrLNsgudQTVJeNaQFUAI7DkhnOjdpAp4T+ku1TfQClewlbSuTVHiA+8skNBgaf02TL/kLOvig4y3G8w=="
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -196,14 +196,15 @@
|
||||||
"rimraf": "^3.0.2",
|
"rimraf": "^3.0.2",
|
||||||
"semver": "^7.3.2",
|
"semver": "^7.3.2",
|
||||||
"stack-trace": "0.0.10",
|
"stack-trace": "0.0.10",
|
||||||
"tailwindcss-language-service": "0.0.1",
|
"tailwindcss-language-service": "0.0.3",
|
||||||
"terser": "^4.6.12",
|
"terser": "^4.6.12",
|
||||||
"tiny-invariant": "^1.1.0",
|
"tiny-invariant": "^1.1.0",
|
||||||
"tslint": "^5.16.0",
|
"tslint": "^5.16.0",
|
||||||
"typescript": "^3.8.3",
|
"typescript": "^3.8.3",
|
||||||
"vsce": "^1.76.1",
|
"vsce": "^1.76.1",
|
||||||
"vscode-languageclient": "^5.2.1",
|
"vscode-languageclient": "^6.1.3",
|
||||||
"vscode-languageserver": "^5.2.1",
|
"vscode-languageserver": "^6.1.1",
|
||||||
|
"vscode-languageserver-textdocument": "^1.0.1",
|
||||||
"vscode-uri": "^2.1.1"
|
"vscode-uri": "^2.1.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -36,10 +36,11 @@ import {
|
||||||
} from './providers/diagnostics/diagnosticsProvider'
|
} from './providers/diagnostics/diagnosticsProvider'
|
||||||
import { createEmitter } from '../lib/emitter'
|
import { createEmitter } from '../lib/emitter'
|
||||||
import { registerDocumentColorProvider } from './providers/documentColorProvider'
|
import { registerDocumentColorProvider } from './providers/documentColorProvider'
|
||||||
|
import { TextDocument } from 'vscode-languageserver-textdocument'
|
||||||
|
|
||||||
let connection = createConnection(ProposedFeatures.all)
|
let connection = createConnection(ProposedFeatures.all)
|
||||||
const state: State = { enabled: false, emitter: createEmitter(connection) }
|
const state: State = { enabled: false, emitter: createEmitter(connection) }
|
||||||
let documents = new TextDocuments()
|
let documents = new TextDocuments(TextDocument)
|
||||||
let workspaceFolder: string | null
|
let workspaceFolder: string | null
|
||||||
|
|
||||||
const defaultSettings: Settings = {
|
const defaultSettings: Settings = {
|
||||||
|
@ -139,11 +140,7 @@ connection.onInitialize(
|
||||||
|
|
||||||
return {
|
return {
|
||||||
capabilities: {
|
capabilities: {
|
||||||
// textDocumentSync: {
|
textDocumentSync: TextDocumentSyncKind.Full,
|
||||||
// openClose: true,
|
|
||||||
// change: TextDocumentSyncKind.None
|
|
||||||
// },
|
|
||||||
textDocumentSync: documents.syncKind,
|
|
||||||
completionProvider: {
|
completionProvider: {
|
||||||
resolveProvider: true,
|
resolveProvider: true,
|
||||||
triggerCharacters: [
|
triggerCharacters: [
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "tailwindcss-language-service",
|
"name": "tailwindcss-language-service",
|
||||||
"version": "0.0.2",
|
"version": "0.0.3",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"typings": "dist/index.d.ts",
|
"typings": "dist/index.d.ts",
|
||||||
"files": [
|
"files": [
|
||||||
|
@ -28,7 +28,8 @@
|
||||||
"tslib": "^2.0.1",
|
"tslib": "^2.0.1",
|
||||||
"typescript": "^4.0.2",
|
"typescript": "^4.0.2",
|
||||||
"vscode-emmet-helper-bundled": "^0.0.1",
|
"vscode-emmet-helper-bundled": "^0.0.1",
|
||||||
"vscode-languageclient": "^5.2.1",
|
"vscode-languageclient": "^6.1.3",
|
||||||
"vscode-languageserver": "^5.2.1"
|
"vscode-languageserver": "^6.1.1",
|
||||||
|
"vscode-languageserver-textdocument": "^1.0.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
import type { TextDocuments, Connection, Range } from 'vscode-languageserver'
|
import type { TextDocuments, Connection, Range } from 'vscode-languageserver'
|
||||||
|
import type { TextDocument } from 'vscode-languageserver-textdocument'
|
||||||
|
|
||||||
export type ClassNamesTree = {
|
export type ClassNamesTree = {
|
||||||
[key: string]: ClassNamesTree
|
[key: string]: ClassNamesTree
|
||||||
|
@ -15,7 +16,7 @@ export type ClassNames = {
|
||||||
|
|
||||||
export type EditorState = {
|
export type EditorState = {
|
||||||
connection: Connection
|
connection: Connection
|
||||||
documents: TextDocuments
|
documents: TextDocuments<TextDocument>
|
||||||
documentSettings: Map<string, Settings>
|
documentSettings: Map<string, Settings>
|
||||||
globalSettings: Settings
|
globalSettings: Settings
|
||||||
userLanguages: Record<string, string>
|
userLanguages: Record<string, string>
|
||||||
|
|
Loading…
Reference in New Issue