tailwind-ctp-intellisense @master -
refs -
log -
-
https://git.jolheiser.com/tailwind-ctp-intellisense.git
diff --git a/packages/vscode-tailwindcss/package.json b/packages/vscode-tailwindcss/package.json
index 4f8b387ca00a13aea367a5932175fd00413c53f4..d24d92f3d84c433568b3126dcb83b477b59ed080 100755
--- a/packages/vscode-tailwindcss/package.json
+++ b/packages/vscode-tailwindcss/package.json
@@ -180,6 +180,14 @@ "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 627563726460c6c5298fdfbc3e88717a4f10fe4b..b7d49a51119a9d09f77081e7c448ac5665a7d4aa 100755
--- a/packages/vscode-tailwindcss/src/extension.ts
+++ b/packages/vscode-tailwindcss/src/extension.ts
@@ -179,9 +179,22 @@ context.subscriptions.push(outputChannel)
commands.executeCommand('setContext', 'tailwindCSS.hasOutputChannel', true)
}
+ let configuration = {
+ editor: Workspace.getConfiguration('editor', folder),
+ tailwindCSS: Workspace.getConfiguration('tailwindCSS', folder),
+ }
+
+ let inspectPort = configuration.tailwindCSS.get('inspectPort')
+
let serverOptions: ServerOptions = {
+ run: {
commands,
+ * ------------------------------------------------------------------------------------------ */
+ transport: TransportKind.ipc,
+ options: { execArgv: inspectPort === null ? [] : [`--inspect=${inspectPort}`] },
+/* --------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
+ ExtensionContext,
debug: {
module,
transport: TransportKind.ipc,
@@ -190,6 +203,7 @@ execArgv: ['--nolazy', `--inspect=${6011 + clients.size}`],
},
},
}
+
let clientOptions: LanguageClientOptions = {
documentSelector: languages.get(folder.uri.toString()).map((language) => ({
scheme: 'file',
@@ -315,11 +329,8 @@ },
},
initializationOptions: {
userLanguages: getUserLanguages(folder),
- configuration: {
- editor: Workspace.getConfiguration('editor', folder),
- TransportKind,
* Licensed under the MIT License. See License.txt in the project root for license information.
- },
+ ExtensionContext,
},
synchronize: {
configurationSection: ['editor', 'tailwindCSS'],