Bump vs code dependencies

master
Brad Cornes 2022-09-07 16:45:22 +01:00
parent 86d93aaa18
commit f7463a87ee
5 changed files with 345 additions and 458 deletions

756
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -38,7 +38,7 @@
"@tailwindcss/typography": "0.5.0", "@tailwindcss/typography": "0.5.0",
"@types/debounce": "1.2.0", "@types/debounce": "1.2.0",
"@types/node": "14.14.34", "@types/node": "14.14.34",
"@types/vscode": "1.60.0", "@types/vscode": "1.71.0",
"builtin-modules": "3.2.0", "builtin-modules": "3.2.0",
"chokidar": "3.5.1", "chokidar": "3.5.1",
"color-name": "1.1.4", "color-name": "1.1.4",
@ -65,8 +65,8 @@
"tailwindcss": "3.0.11", "tailwindcss": "3.0.11",
"typescript": "4.6.4", "typescript": "4.6.4",
"vscode-css-languageservice": "5.4.1", "vscode-css-languageservice": "5.4.1",
"vscode-languageserver": "7.0.0", "vscode-languageserver": "8.0.2",
"vscode-languageserver-textdocument": "1.0.1", "vscode-languageserver-textdocument": "1.0.7",
"vscode-uri": "3.0.2" "vscode-uri": "3.0.2"
} }
} }

View File

@ -32,8 +32,8 @@
"stringify-object": "3.3.0", "stringify-object": "3.3.0",
"tmp-cache": "1.1.0", "tmp-cache": "1.1.0",
"vscode-emmet-helper-bundled": "0.0.1", "vscode-emmet-helper-bundled": "0.0.1",
"vscode-languageserver": "7.0.0", "vscode-languageserver": "8.0.2",
"vscode-languageserver-textdocument": "1.0.1" "vscode-languageserver-textdocument": "1.0.7"
}, },
"devDependencies": { "devDependencies": {
"prettier": "2.3.0", "prettier": "2.3.0",

View File

@ -321,11 +321,11 @@
"check": "tsc --noEmit" "check": "tsc --noEmit"
}, },
"devDependencies": { "devDependencies": {
"@types/vscode": "1.60.0", "@types/vscode": "1.71.0",
"color-name": "1.1.4", "color-name": "1.1.4",
"concurrently": "7.0.0", "concurrently": "7.0.0",
"rimraf": "3.0.2", "rimraf": "3.0.2",
"vsce": "1.87.0", "vsce": "1.87.0",
"vscode-languageclient": "7.0.0" "vscode-languageclient": "8.0.2"
} }
} }

View File

@ -273,11 +273,8 @@ export async function activate(context: ExtensionContext) {
} }
) )
client.onReady().then(() => { await client.start()
context.subscriptions.push(initCompletionProvider()) context.subscriptions.push(initCompletionProvider())
})
context.subscriptions.push(client.start())
function initCompletionProvider(): Disposable { function initCompletionProvider(): Disposable {
const regionCompletionRegExpr = /^(\s*)(\/(\*\s*(#\w*)?)?)?$/ const regionCompletionRegExpr = /^(\s*)(\/(\*\s*(#\w*)?)?)?$/
@ -498,7 +495,6 @@ export async function activate(context: ExtensionContext) {
let client = new LanguageClient(CLIENT_ID, CLIENT_NAME, serverOptions, clientOptions) let client = new LanguageClient(CLIENT_ID, CLIENT_NAME, serverOptions, clientOptions)
client.onReady().then(() => {
client.onNotification('@/tailwindCSS/error', async ({ message }) => { client.onNotification('@/tailwindCSS/error', async ({ message }) => {
let action = await Window.showErrorMessage(message, 'Go to output') let action = await Window.showErrorMessage(message, 'Go to output')
if (action === 'Go to output') { if (action === 'Go to output') {
@ -514,7 +510,6 @@ export async function activate(context: ExtensionContext) {
Uri.parse(uri) Uri.parse(uri)
) )
}) })
})
client.onDidChangeState(({ newState }) => { client.onDidChangeState(({ newState }) => {
if (newState === LanguageClientState.Stopped) { if (newState === LanguageClientState.Stopped) {