Skip to content

Commit

Permalink
Update server to 0.4.3 and fix #3 (version wrong)
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigore committed Sep 25, 2020
1 parent b94a9b2 commit 9242f9a
Show file tree
Hide file tree
Showing 5 changed files with 157 additions and 157 deletions.
2 changes: 1 addition & 1 deletion intellisense
6 changes: 3 additions & 3 deletions lib-server/intellisense/src/server/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ async function activate(context) {
};
let client = new coc_nvim_1.LanguageClient('tailwindcss-intellisense', 'Tailwind CSS IntelliSense', serverOptions, clientOptions);
client.onReady().then(() => {
coc_nvim_1.workspace.showMessage('Tailwind CSS intellisense ready v0.42');
coc_nvim_1.workspace.showMessage('Tailwind CSS intellisense ready v0.43');
let emitter = emitter_1.createEmitter(client);
registerConfigErrorHandler_1.registerConfigErrorHandler(emitter);
notifications_1.onMessage(client, 'getConfiguration', async (scope) => {
Expand Down
302 changes: 151 additions & 151 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,155 +1,155 @@
{
"name": "coc-tailwind-intellisense",
"version": "0.2",
"description": "Tailwind CSS Intellisense for coc.nvim",
"author": "Rodrigo C. Guzmán <[email protected]>",
"contributors": [
"Nicolas Vasquez <[email protected]>"
],
"license": "MIT",
"main": "lib/index.js",
"keywords": [
"coc.nvim",
"tailwind",
"tailwindcss",
"css",
"intellisense",
"autocomplete"
],
"engines": {
"coc": "^0.0.70"
},
"scripts": {
"clean": "rimraf lib",
"watch": "webpack --watch",
"build": "webpack",
"prepare": "npm run clean && npm run build",
"prepare:server": "cd intellisense && npm install && cd .. && npm run build-server && npm run minify-server",
"build-server": "glob-exec --foreach --parallel \"intellisense/src/server.ts\" -- \"ncc build {{file}} -o lib-server/{{file.toString().replace(/^src\\//, '').replace(/\\.ts$/, '')}}\"",
"minify-server": "glob-exec --foreach --parallel \"lib-server/**/*.js\" -- \"terser {{file}} --compress --mangle --output {{file.toString()}}\""
},
"activationEvents": [
"workspaceContains:**/tailwind.js",
"workspaceContains:**/tailwind.config.js",
"workspaceContains:**/tailwind-config.js",
"workspaceContains:**/.tailwindrc.js"
],
"contributes": {
"configuration": {
"title": "Tailwind CSS IntelliSense",
"properties": {
"tailwindCSS.enable": {
"type": "boolean",
"default": true
},
"tailwindCSS.emmetCompletions": {
"type": "boolean",
"default": false,
"markdownDescription": "Enable class name completions when using Emmet-style syntax, for example `div.bg-red-500.uppercase`"
},
"tailwindCSS.includeLanguages": {
"type": "object",
"additionalProperties": {
"type": "string"
},
"default": {},
"markdownDescription": "Enable features in languages that are not supported by default. Add a mapping here between the new language and an already supported language.\n E.g.: `{\"plaintext\": \"html\"}`"
},
"tailwindCSS.validate": {
"type": "boolean",
"default": true,
"markdownDescription": "Enable linting. Rules can be configured individually using the `tailwindcss.lint.*` settings",
"scope": "language-overridable"
},
"tailwindCSS.lint.cssConflict": {
"type": "string",
"enum": [
"ignore",
"warning",
"error"
],
"default": "warning",
"markdownDescription": "Class names on the same HTML element which apply the same CSS property or properties",
"scope": "language-overridable"
},
"tailwindCSS.lint.invalidApply": {
"type": "string",
"enum": [
"ignore",
"warning",
"error"
],
"default": "error",
"markdownDescription": "Unsupported use of the [`@apply` directive](https://tailwindcss.com/docs/functions-and-directives/#apply)",
"scope": "language-overridable"
},
"tailwindCSS.lint.invalidScreen": {
"type": "string",
"enum": [
"ignore",
"warning",
"error"
],
"default": "error",
"markdownDescription": "Unknown screen name used with the [`@screen` directive](https://tailwindcss.com/docs/functions-and-directives/#screen)",
"scope": "language-overridable"
},
"tailwindCSS.lint.invalidVariant": {
"type": "string",
"enum": [
"ignore",
"warning",
"error"
],
"default": "error",
"markdownDescription": "Unknown variant name used with the [`@variants` directive](https://tailwindcss.com/docs/functions-and-directives/#variants)",
"scope": "language-overridable"
},
"tailwindCSS.lint.invalidConfigPath": {
"type": "string",
"enum": [
"ignore",
"warning",
"error"
],
"default": "error",
"markdownDescription": "Unknown or invalid path used with the [`theme` helper](https://tailwindcss.com/docs/functions-and-directives/#theme)",
"scope": "language-overridable"
},
"tailwindCSS.lint.invalidTailwindDirective": {
"type": "string",
"enum": [
"ignore",
"warning",
"error"
],
"default": "error",
"markdownDescription": "Unknown value used with the [`@tailwind` directive](https://tailwindcss.com/docs/functions-and-directives/#tailwind)",
"scope": "language-overridable"
}
}
"name": "coc-tailwind-intellisense",
"version": "0.3.0",
"description": "Tailwind CSS Intellisense for coc.nvim",
"author": "Rodrigo C. Guzmán <[email protected]>",
"contributors": [
"Nicolas Vasquez <[email protected]>"
],
"license": "MIT",
"main": "lib/index.js",
"keywords": [
"coc.nvim",
"tailwind",
"tailwindcss",
"css",
"intellisense",
"autocomplete"
],
"engines": {
"coc": "^0.0.70"
},
"scripts": {
"clean": "rimraf lib",
"watch": "webpack --watch",
"build": "webpack",
"prepare": "npm run clean && npm run build",
"prepare:server": "cd intellisense && npm install && cd .. && npm run build-server && npm run minify-server",
"build-server": "glob-exec --foreach --parallel \"intellisense/src/server.ts\" -- \"ncc build {{file}} -o lib-server/{{file.toString().replace(/^src\\//, '').replace(/\\.ts$/, '')}}\"",
"minify-server": "glob-exec --foreach --parallel \"lib-server/**/*.js\" -- \"terser {{file}} --compress --mangle --output {{file.toString()}}\""
},
"activationEvents": [
"workspaceContains:**/tailwind.js",
"workspaceContains:**/tailwind.config.js",
"workspaceContains:**/tailwind-config.js",
"workspaceContains:**/.tailwindrc.js"
],
"contributes": {
"configuration": {
"title": "Tailwind CSS IntelliSense",
"properties": {
"tailwindCSS.enable": {
"type": "boolean",
"default": true
},
"tailwindCSS.emmetCompletions": {
"type": "boolean",
"default": false,
"markdownDescription": "Enable class name completions when using Emmet-style syntax, for example `div.bg-red-500.uppercase`"
},
"tailwindCSS.includeLanguages": {
"type": "object",
"additionalProperties": {
"type": "string"
},
"default": {},
"markdownDescription": "Enable features in languages that are not supported by default. Add a mapping here between the new language and an already supported language.\n E.g.: `{\"plaintext\": \"html\"}`"
},
"tailwindCSS.validate": {
"type": "boolean",
"default": true,
"markdownDescription": "Enable linting. Rules can be configured individually using the `tailwindcss.lint.*` settings",
"scope": "language-overridable"
},
"tailwindCSS.lint.cssConflict": {
"type": "string",
"enum": [
"ignore",
"warning",
"error"
],
"default": "warning",
"markdownDescription": "Class names on the same HTML element which apply the same CSS property or properties",
"scope": "language-overridable"
},
"tailwindCSS.lint.invalidApply": {
"type": "string",
"enum": [
"ignore",
"warning",
"error"
],
"default": "error",
"markdownDescription": "Unsupported use of the [`@apply` directive](https://tailwindcss.com/docs/functions-and-directives/#apply)",
"scope": "language-overridable"
},
"tailwindCSS.lint.invalidScreen": {
"type": "string",
"enum": [
"ignore",
"warning",
"error"
],
"default": "error",
"markdownDescription": "Unknown screen name used with the [`@screen` directive](https://tailwindcss.com/docs/functions-and-directives/#screen)",
"scope": "language-overridable"
},
"tailwindCSS.lint.invalidVariant": {
"type": "string",
"enum": [
"ignore",
"warning",
"error"
],
"default": "error",
"markdownDescription": "Unknown variant name used with the [`@variants` directive](https://tailwindcss.com/docs/functions-and-directives/#variants)",
"scope": "language-overridable"
},
"tailwindCSS.lint.invalidConfigPath": {
"type": "string",
"enum": [
"ignore",
"warning",
"error"
],
"default": "error",
"markdownDescription": "Unknown or invalid path used with the [`theme` helper](https://tailwindcss.com/docs/functions-and-directives/#theme)",
"scope": "language-overridable"
},
"tailwindCSS.lint.invalidTailwindDirective": {
"type": "string",
"enum": [
"ignore",
"warning",
"error"
],
"default": "error",
"markdownDescription": "Unknown value used with the [`@tailwind` directive](https://tailwindcss.com/docs/functions-and-directives/#tailwind)",
"scope": "language-overridable"
}
},
"dependencies": {
"@zeit/ncc": "^0.22.3",
"glob-exec": "^0.1.1",
"lodash": "^4.17.20",
"mitt": "^1.2.0",
"vscode-languageclient": "^6.1.3",
"vscode-languageserver": "^6.1.1",
"vscode-languageserver-protocol": "^3.15.3"
},
"devDependencies": {
"@types/node": "^14.0.13",
"@typescript-eslint/eslint-plugin": "^2.30.0",
"@typescript-eslint/parser": "^2.30.0",
"eslint": "^6.8.0",
"coc.nvim": "^0.0.77",
"npm-run-all": "^4.1.5",
"rimraf": "^3.0.2",
"ts-loader": "^7.0.5",
"typescript": "^3.9.5",
"webpack": "^4.43.0",
"webpack-cli": "^3.3.11"
}
}
},
"dependencies": {
"@zeit/ncc": "^0.22.3",
"glob-exec": "^0.1.1",
"lodash": "^4.17.20",
"mitt": "^1.2.0",
"vscode-languageclient": "^6.1.3",
"vscode-languageserver": "^6.1.1",
"vscode-languageserver-protocol": "^3.15.3"
},
"devDependencies": {
"@types/node": "^14.0.13",
"@typescript-eslint/eslint-plugin": "^2.30.0",
"@typescript-eslint/parser": "^2.30.0",
"eslint": "^6.8.0",
"coc.nvim": "^0.0.77",
"npm-run-all": "^4.1.5",
"rimraf": "^3.0.2",
"ts-loader": "^7.0.5",
"typescript": "^3.9.5",
"webpack": "^4.43.0",
"webpack-cli": "^3.3.11"
}
}
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export async function activate(context: ExtensionContext): Promise<void> {
let client = new LanguageClient('tailwindcss-intellisense', 'Tailwind CSS IntelliSense', serverOptions, clientOptions);

client.onReady().then(() => {
workspace.showMessage('Tailwind CSS intellisense ready v0.42');
workspace.showMessage('Tailwind CSS intellisense ready v0.43');

let emitter = createEmitter(client);
registerConfigErrorHandler(emitter);
Expand Down

0 comments on commit 9242f9a

Please sign in to comment.