diff --git a/package.json b/package.json index 8bd1d610912c8453602f614a51bb899fa40ff347..96f7d1bfa13e975968be0acf741ca6fcda6aeac9 100755 --- a/package.json +++ b/package.json @@ -43,8 +43,7 @@ "contributes": { "commands": [ { "command": "tailwindCSS.showOutput", - "title": "Tailwind CSS: Show Output", - "enablement": "tailwindCSS.hasOutputChannel" + "title": "Tailwind CSS: Show Output" } ], "grammars": [ diff --git a/src/extension.ts b/src/extension.ts index 91420975699d228dbe2e6a8b026c168967fde186..11058efab6957c1e6e632d30957c086cb2a12414 100755 --- a/src/extension.ts +++ b/src/extension.ts @@ -85,13 +85,11 @@ } 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', () => { - if (outputChannel) { - outputChannel.show() - } + outputChannel.show() }) ) @@ -155,11 +153,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 = {