@ttsc/vscode 0.28.4 → 0.28.6
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.
|
Binary file
|
package/lib/extension.js
CHANGED
|
@@ -22954,7 +22954,7 @@ function createFilesystemPathIdentityContext(operations = {}) {
|
|
|
22954
22954
|
const realpaths = /* @__PURE__ */ new Map();
|
|
22955
22955
|
const sensitivities = /* @__PURE__ */ new Map();
|
|
22956
22956
|
const platform = operations.platform ?? process.platform;
|
|
22957
|
-
const pathApi = platform === "win32" ? import_node_path.default.win32 : import_node_path.default;
|
|
22957
|
+
const pathApi = platform === "win32" ? import_node_path.default.win32 : import_node_path.default.posix;
|
|
22958
22958
|
const throwOnRealpathError = operations.throwOnRealpathError ?? true;
|
|
22959
22959
|
const realpath = operations.realpath ?? physicalRealpath;
|
|
22960
22960
|
const lstat = operations.lstat ?? import_node_fs.default.lstatSync;
|
|
@@ -23036,13 +23036,13 @@ function createFilesystemPathIdentityContext(operations = {}) {
|
|
|
23036
23036
|
}
|
|
23037
23037
|
function isFilesystemPathIdentityWithin(root, candidate, platform = process.platform) {
|
|
23038
23038
|
if (candidate === root) return true;
|
|
23039
|
-
const separator = platform === "win32" ? import_node_path.default.win32.sep : import_node_path.default.sep;
|
|
23039
|
+
const separator = platform === "win32" ? import_node_path.default.win32.sep : import_node_path.default.posix.sep;
|
|
23040
23040
|
return candidate.startsWith(
|
|
23041
23041
|
root.endsWith(separator) ? root : `${root}${separator}`
|
|
23042
23042
|
);
|
|
23043
23043
|
}
|
|
23044
23044
|
function resolveFilesystemPath(location, platform = process.platform) {
|
|
23045
|
-
const pathApi = platform === "win32" ? import_node_path.default.win32 : import_node_path.default;
|
|
23045
|
+
const pathApi = platform === "win32" ? import_node_path.default.win32 : import_node_path.default.posix;
|
|
23046
23046
|
if (platform !== "win32") {
|
|
23047
23047
|
return pathApi.resolve(location);
|
|
23048
23048
|
}
|
|
@@ -23081,6 +23081,7 @@ function physicalRealpath(location) {
|
|
|
23081
23081
|
return import_node_fs.default.realpathSync.native?.(location) ?? import_node_fs.default.realpathSync(location);
|
|
23082
23082
|
}
|
|
23083
23083
|
function filesystemDirectoryIsCaseSensitive(directory, platform, operations) {
|
|
23084
|
+
const pathApi = platform === "win32" ? import_node_path.default.win32 : import_node_path.default.posix;
|
|
23084
23085
|
let entries;
|
|
23085
23086
|
try {
|
|
23086
23087
|
entries = operations.readdir(directory);
|
|
@@ -23099,7 +23100,7 @@ function filesystemDirectoryIsCaseSensitive(directory, platform, operations) {
|
|
|
23099
23100
|
const alternate = alternateCase(name);
|
|
23100
23101
|
if (alternate === name) continue;
|
|
23101
23102
|
try {
|
|
23102
|
-
operations.lstat(
|
|
23103
|
+
operations.lstat(pathApi.join(directory, alternate));
|
|
23103
23104
|
return false;
|
|
23104
23105
|
} catch (error) {
|
|
23105
23106
|
if (isMissingFilesystemEntry(error)) {
|
|
@@ -23113,13 +23114,13 @@ function filesystemDirectoryIsCaseSensitive(directory, platform, operations) {
|
|
|
23113
23114
|
if (platform === "darwin") {
|
|
23114
23115
|
let current = resolveFilesystemPath(directory, platform);
|
|
23115
23116
|
while (true) {
|
|
23116
|
-
const parent =
|
|
23117
|
+
const parent = pathApi.dirname(current);
|
|
23117
23118
|
if (parent === current) break;
|
|
23118
|
-
const name =
|
|
23119
|
+
const name = pathApi.basename(current);
|
|
23119
23120
|
const alternate = alternateCase(name);
|
|
23120
23121
|
if (alternate !== name) {
|
|
23121
23122
|
try {
|
|
23122
|
-
operations.realpath(
|
|
23123
|
+
operations.realpath(pathApi.join(parent, alternate));
|
|
23123
23124
|
return false;
|
|
23124
23125
|
} catch (error) {
|
|
23125
23126
|
if (isMissingFilesystemEntry(error) === false) throw error;
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@ttsc/vscode",
|
|
3
3
|
"displayName": "ttsc",
|
|
4
4
|
"description": "TypeScript-Go and ttsc plugin diagnostics, completions, lint actions, and formatting for VS Code.",
|
|
5
|
-
"version": "0.28.
|
|
5
|
+
"version": "0.28.6",
|
|
6
6
|
"publisher": "samchon",
|
|
7
7
|
"icon": "images/icon.png",
|
|
8
8
|
"license": "MIT",
|
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
"rimraf": "^6.1.2",
|
|
106
106
|
"typescript": "^7.0.2",
|
|
107
107
|
"vscode-languageclient": "^10.1.0",
|
|
108
|
-
"ttsc": "0.28.
|
|
108
|
+
"ttsc": "0.28.6"
|
|
109
109
|
},
|
|
110
110
|
"scripts": {
|
|
111
111
|
"build": "tsc --noEmit && rimraf lib dist && node build/build.cjs"
|