@ttsc/vscode 0.26.1 → 0.27.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.
|
Binary file
|
package/lib/extension.js
CHANGED
|
@@ -22957,7 +22957,13 @@ function createFilesystemPathIdentityContext(operations = {}) {
|
|
|
22957
22957
|
const pathApi = platform === "win32" ? import_node_path.default.win32 : import_node_path.default;
|
|
22958
22958
|
const throwOnRealpathError = operations.throwOnRealpathError ?? true;
|
|
22959
22959
|
const realpath = operations.realpath ?? physicalRealpath;
|
|
22960
|
-
const
|
|
22960
|
+
const lstat = operations.lstat ?? import_node_fs.default.lstatSync;
|
|
22961
|
+
const readdir = operations.readdir ?? import_node_fs.default.readdirSync;
|
|
22962
|
+
const caseSensitive = operations.caseSensitive ?? ((directory) => filesystemDirectoryIsCaseSensitive(directory, platform, {
|
|
22963
|
+
lstat,
|
|
22964
|
+
readdir,
|
|
22965
|
+
realpath
|
|
22966
|
+
}));
|
|
22961
22967
|
const resolve2 = (location) => {
|
|
22962
22968
|
const normalized = resolveFilesystemPath(location, platform);
|
|
22963
22969
|
const cached = identities.get(normalized);
|
|
@@ -23074,10 +23080,10 @@ function cachedCaseSensitivity(cache, caseSensitive, directory) {
|
|
|
23074
23080
|
function physicalRealpath(location) {
|
|
23075
23081
|
return import_node_fs.default.realpathSync.native?.(location) ?? import_node_fs.default.realpathSync(location);
|
|
23076
23082
|
}
|
|
23077
|
-
function filesystemDirectoryIsCaseSensitive(directory, platform) {
|
|
23083
|
+
function filesystemDirectoryIsCaseSensitive(directory, platform, operations) {
|
|
23078
23084
|
let entries;
|
|
23079
23085
|
try {
|
|
23080
|
-
entries =
|
|
23086
|
+
entries = operations.readdir(directory);
|
|
23081
23087
|
} catch {
|
|
23082
23088
|
return unprovenCaseSensitivity(platform);
|
|
23083
23089
|
}
|
|
@@ -23093,7 +23099,7 @@ function filesystemDirectoryIsCaseSensitive(directory, platform) {
|
|
|
23093
23099
|
const alternate = alternateCase(name);
|
|
23094
23100
|
if (alternate === name) continue;
|
|
23095
23101
|
try {
|
|
23096
|
-
|
|
23102
|
+
operations.lstat(import_node_path.default.join(directory, alternate));
|
|
23097
23103
|
return false;
|
|
23098
23104
|
} catch (error) {
|
|
23099
23105
|
if (isMissingFilesystemEntry(error)) {
|
|
@@ -23113,7 +23119,7 @@ function filesystemDirectoryIsCaseSensitive(directory, platform) {
|
|
|
23113
23119
|
const alternate = alternateCase(name);
|
|
23114
23120
|
if (alternate !== name) {
|
|
23115
23121
|
try {
|
|
23116
|
-
|
|
23122
|
+
operations.realpath(import_node_path.default.join(parent, alternate));
|
|
23117
23123
|
return false;
|
|
23118
23124
|
} catch (error) {
|
|
23119
23125
|
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.
|
|
5
|
+
"version": "0.27.0",
|
|
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.
|
|
108
|
+
"ttsc": "0.27.0"
|
|
109
109
|
},
|
|
110
110
|
"scripts": {
|
|
111
111
|
"build": "tsc --noEmit && rimraf lib dist && node build/build.cjs"
|