remove lerna and update lsp deps

master
Brad Cornes 2020-11-03 11:02:30 +00:00
parent 8aca9fcd37
commit 33523b3f11
8 changed files with 26728 additions and 9143 deletions

23631
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,9 +1,7 @@
{
"name": "vscode-tailwindcss",
"private": true,
"scripts": {
"bootstrap": "lerna clean && lerna bootstrap --hoist"
},
"devDependencies": {
"lerna": "^3.22.1"
}
"workspaces": [
"packages/*"
]
}

View File

@ -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=="
}
}
}

View File

@ -196,14 +196,15 @@
"rimraf": "^3.0.2",
"semver": "^7.3.2",
"stack-trace": "0.0.10",
"tailwindcss-language-service": "0.0.1",
"tailwindcss-language-service": "0.0.3",
"terser": "^4.6.12",
"tiny-invariant": "^1.1.0",
"tslint": "^5.16.0",
"typescript": "^3.8.3",
"vsce": "^1.76.1",
"vscode-languageclient": "^5.2.1",
"vscode-languageserver": "^5.2.1",
"vscode-languageclient": "^6.1.3",
"vscode-languageserver": "^6.1.1",
"vscode-languageserver-textdocument": "^1.0.1",
"vscode-uri": "^2.1.1"
}
}

View File

@ -36,10 +36,11 @@ import {
} from './providers/diagnostics/diagnosticsProvider'
import { createEmitter } from '../lib/emitter'
import { registerDocumentColorProvider } from './providers/documentColorProvider'
import { TextDocument } from 'vscode-languageserver-textdocument'
let connection = createConnection(ProposedFeatures.all)
const state: State = { enabled: false, emitter: createEmitter(connection) }
let documents = new TextDocuments()
let documents = new TextDocuments(TextDocument)
let workspaceFolder: string | null
const defaultSettings: Settings = {
@ -139,11 +140,7 @@ connection.onInitialize(
return {
capabilities: {
// textDocumentSync: {
// openClose: true,
// change: TextDocumentSyncKind.None
// },
textDocumentSync: documents.syncKind,
textDocumentSync: TextDocumentSyncKind.Full,
completionProvider: {
resolveProvider: true,
triggerCharacters: [

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,6 @@
{
"name": "tailwindcss-language-service",
"version": "0.0.2",
"version": "0.0.3",
"main": "dist/index.js",
"typings": "dist/index.d.ts",
"files": [
@ -28,7 +28,8 @@
"tslib": "^2.0.1",
"typescript": "^4.0.2",
"vscode-emmet-helper-bundled": "^0.0.1",
"vscode-languageclient": "^5.2.1",
"vscode-languageserver": "^5.2.1"
"vscode-languageclient": "^6.1.3",
"vscode-languageserver": "^6.1.1",
"vscode-languageserver-textdocument": "^1.0.1"
}
}

View File

@ -1,4 +1,5 @@
import type { TextDocuments, Connection, Range } from 'vscode-languageserver'
import type { TextDocument } from 'vscode-languageserver-textdocument'
export type ClassNamesTree = {
[key: string]: ClassNamesTree
@ -15,7 +16,7 @@ export type ClassNames = {
export type EditorState = {
connection: Connection
documents: TextDocuments
documents: TextDocuments<TextDocument>
documentSettings: Map<string, Settings>
globalSettings: Settings
userLanguages: Record<string, string>