@ttsc/vscode 0.18.4 → 0.19.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/extension.js CHANGED
@@ -18273,11 +18273,21 @@ function createServerLaunchCommand(launcher, candidate, platform = process.platf
18273
18273
  if (platform === "win32" && isWindowsCommandLauncher(launcher)) {
18274
18274
  return {
18275
18275
  command: env.ComSpec || "cmd.exe",
18276
- args: ["/d", "/s", "/c", quoteWindowsCommand([launcher, ...args])]
18276
+ args: ["/d", "/s", "/c", quoteWindowsCommand([launcher, ...args])],
18277
+ windowsVerbatimArguments: true
18277
18278
  };
18278
18279
  }
18279
18280
  return { command: launcher, args };
18280
18281
  }
18282
+ function createServerExecutable(launcher, candidate, platform = process.platform, env = process.env) {
18283
+ const launch = createServerLaunchCommand(launcher, candidate, platform, env);
18284
+ const options = serverProcessOptions(candidate.cwd);
18285
+ return {
18286
+ command: launch.command,
18287
+ args: launch.args,
18288
+ options: options && launch.windowsVerbatimArguments ? { ...options, windowsVerbatimArguments: true } : options
18289
+ };
18290
+ }
18281
18291
  function quoteWindowsCommand(args) {
18282
18292
  return `"${args.map(quoteWindowsArg).join(" ")}"`;
18283
18293
  }
@@ -18507,12 +18517,7 @@ function resolveServerLaunchSpecForUri(uri) {
18507
18517
  return createServerLaunchSpecs(candidates)[0];
18508
18518
  }
18509
18519
  function createServerOptions(launcher, candidate) {
18510
- const launch = createServerLaunchCommand(launcher, candidate);
18511
- return {
18512
- command: launch.command,
18513
- args: launch.args,
18514
- options: serverProcessOptions(candidate.cwd)
18515
- };
18520
+ return createServerExecutable(launcher, candidate);
18516
18521
  }
18517
18522
  function workspaceFolderFor(root, index) {
18518
18523
  const folder = import_vscode.workspace.workspaceFolders?.find(
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@ttsc/vscode",
3
3
  "displayName": "ttsc",
4
4
  "description": "Show ttsc plugin diagnostics in VS Code, with @ttsc/lint errors, fix-all actions, and formatter support.",
5
- "version": "0.18.4",
5
+ "version": "0.19.0",
6
6
  "publisher": "samchon",
7
7
  "icon": "images/icon.png",
8
8
  "license": "MIT",
@@ -81,7 +81,7 @@
81
81
  "ttsc.serverPath": {
82
82
  "type": "string",
83
83
  "default": "",
84
- "description": "Absolute path to a ttscserver launcher or native binary. Leave empty to use the project ttsc launcher, which builds TTSC_LSP_PLUGINS_JSON for plugin diagnostics/actions; direct native paths need that manifest supplied out of band.",
84
+ "description": "Absolute path to a ttscserver launcher, native binary, or Windows .cmd/.bat command shim. Leave empty to use the project ttsc launcher, which builds TTSC_LSP_PLUGINS_JSON for plugin diagnostics/actions; direct native paths need that manifest supplied out of band.",
85
85
  "scope": "resource"
86
86
  },
87
87
  "ttsc.trace.server": {
@@ -105,7 +105,7 @@
105
105
  "rimraf": "^6.1.2",
106
106
  "typescript": "^7.0.2",
107
107
  "vscode-languageclient": "^9.0.1",
108
- "ttsc": "0.18.4"
108
+ "ttsc": "0.19.0"
109
109
  },
110
110
  "scripts": {
111
111
  "build": "rimraf lib dist && node build/build.cjs"