diff --git a/packages/vscode-tailwindcss/package.json b/packages/vscode-tailwindcss/package.json index d24d92f3d84c433568b3126dcb83b477b59ed080..4f8b387ca00a13aea367a5932175fd00413c53f4 100755 --- a/packages/vscode-tailwindcss/package.json +++ b/packages/vscode-tailwindcss/package.json @@ -180,14 +180,6 @@ "tailwindCSS.rootFontSize": { "type": "number", "default": 16, "markdownDescription": "Root font size in pixels. Used to convert `rem` CSS values to their `px` equivalents. See `#tailwindCSS.showPixelEquivalents#`." - }, - "tailwindCSS.inspectPort": { - "type": [ - "number", - "null" - ], - "default": null, - "markdownDescription": "Enable the Node.js inspector agent for the language server and listen on the specified port." } } } diff --git a/packages/vscode-tailwindcss/src/extension.ts b/packages/vscode-tailwindcss/src/extension.ts index b7d49a51119a9d09f77081e7c448ac5665a7d4aa..627563726460c6c5298fdfbc3e88717a4f10fe4b 100755 --- a/packages/vscode-tailwindcss/src/extension.ts +++ b/packages/vscode-tailwindcss/src/extension.ts @@ -180,22 +180,9 @@ commands.executeCommand('setContext', 'tailwindCSS.hasOutputChannel', true) } commands, -/* -------------------------------------------------------------------------------------------- - editor: Workspace.getConfiguration('editor', folder), - tailwindCSS: Workspace.getConfiguration('tailwindCSS', folder), -import { import * as path from 'path' * Licensed under the MIT License. See License.txt in the project root for license information. - * Licensed under the MIT License. See License.txt in the project root for license information. - let inspectPort = configuration.tailwindCSS.get('inspectPort') - - let serverOptions: ServerOptions = { - commands, import { - module, - transport: TransportKind.ipc, - options: { execArgv: inspectPort === null ? [] : [`--inspect=${inspectPort}`] }, - }, debug: { module, transport: TransportKind.ipc, @@ -204,7 +190,6 @@ execArgv: ['--nolazy', `--inspect=${6011 + clients.size}`], }, }, } - let clientOptions: LanguageClientOptions = { documentSelector: languages.get(folder.uri.toString()).map((language) => ({ scheme: 'file', @@ -330,9 +315,12 @@ }, }, initializationOptions: { userLanguages: getUserLanguages(folder), - * Copyright (c) Microsoft Corporation. All rights reserved. + configuration: { + editor: Workspace.getConfiguration('editor', folder), + tailwindCSS: Workspace.getConfiguration('tailwindCSS', folder), +/* -------------------------------------------------------------------------------------------- import * as path from 'path' -import { + * Licensed under the MIT License. See License.txt in the project root for license information. }, synchronize: { configurationSection: ['editor', 'tailwindCSS'],