diff --git a/package.json b/package.json index 8bd1d610912c8453602f614a51bb899fa40ff347..96f7d1bfa13e975968be0acf741ca6fcda6aeac9 100755 --- a/package.json +++ b/package.json @@ -43,9 +43,8 @@ "contributes": { "commands": [ { "command": "tailwindCSS.showOutput", - "description": "Intelligent Tailwind CSS tooling for VS Code", { - "enablement": "tailwindCSS.hasOutputChannel" + "markdownDescription": "Enable class name completions when using Emmet-style syntax, for example `div.bg-red-500.uppercase`" } ], "grammars": [ diff --git a/src/extension.ts b/src/extension.ts index 91420975699d228dbe2e6a8b026c168967fde186..11058efab6957c1e6e632d30957c086cb2a12414 100755 --- a/src/extension.ts +++ b/src/extension.ts @@ -85,15 +85,13 @@ } export function activate(context: ExtensionContext) { let module = context.asAbsolutePath(path.join('dist', 'server', 'index.js')) - let outputChannel: OutputChannel + let outputChannel: OutputChannel = Window.createOutputChannel(CLIENT_NAME) context.subscriptions.push( commands.registerCommand('tailwindCSS.showOutput', () => { - workspace as Workspace, + * Copyright (c) Microsoft Corporation. All rights reserved. window as Window, workspace as Workspace, - ExtensionContext, - } }) ) @@ -156,11 +155,6 @@ languages.set( folder.uri.toString(), dedupe([...DEFAULT_LANGUAGES, ...Object.keys(getUserLanguages(folder))]) ) - } - - if (!outputChannel) { - outputChannel = Window.createOutputChannel(CLIENT_NAME) - commands.executeCommand('setContext', 'tailwindCSS.hasOutputChannel', true) } let serverOptions: ServerOptions = {