@gi-tcg/gts-language-server 0.3.11 → 0.4.1

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/dist/browser.js CHANGED
@@ -12,7 +12,6 @@ function zenFsProvider(fs) {
12
12
  stat(uri) {
13
13
  try {
14
14
  const stats = fs.statSync(uri.path);
15
- console.log("stat", uri.path, stats);
16
15
  return {
17
16
  type: stats.isFile() ? 1 : stats.isDirectory() ? 2 : stats.isSymbolicLink() ? 64 : 0,
18
17
  ctime: stats.ctimeMs,
@@ -25,7 +24,6 @@ function zenFsProvider(fs) {
25
24
  },
26
25
  readFile(uri, encoding) {
27
26
  try {
28
- console.log("readFile", uri.path);
29
27
  return fs.readFileSync(uri.path, { encoding: encoding ?? "utf-8" });
30
28
  } catch {
31
29
  return;
@@ -33,9 +31,7 @@ function zenFsProvider(fs) {
33
31
  },
34
32
  readDirectory(uri) {
35
33
  try {
36
- const files = fs.readdirSync(uri.path, { withFileTypes: true });
37
- console.log("readDirectory", uri.path, files.map((f) => f.name));
38
- return files.map((file) => {
34
+ return fs.readdirSync(uri.path, { withFileTypes: true }).map((file) => {
39
35
  return [file.name, file.isFile() ? 1 : file.isDirectory() ? 2 : file.isSymbolicLink() ? 64 : 0];
40
36
  });
41
37
  } catch {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gi-tcg/gts-language-server",
3
- "version": "0.3.11",
3
+ "version": "0.4.1",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/piovium/gts.git"
@@ -31,8 +31,8 @@
31
31
  "path-browserify-esm": "^1.0.6",
32
32
  "volar-service-typescript": "volar-2.4",
33
33
  "vscode-uri": "^3.0.8",
34
- "@gi-tcg/gts-language-plugin": "0.3.11",
35
- "@gi-tcg/gts-transpiler": "0.3.11"
34
+ "@gi-tcg/gts-transpiler": "0.4.1",
35
+ "@gi-tcg/gts-language-plugin": "0.4.1"
36
36
  },
37
37
  "devDependencies": {
38
38
  "vscode-languageserver-textdocument": "^1.0.12"
@@ -7,7 +7,7 @@ export default function zenFsProvider(
7
7
  stat(uri) {
8
8
  try {
9
9
  const stats = fs.statSync(uri.path);
10
- console.log("stat", uri.path, stats);
10
+ // console.log("stat", uri.path, stats);
11
11
  return {
12
12
  type: stats.isFile()
13
13
  ? (1 satisfies FileType.File)
@@ -26,7 +26,7 @@ export default function zenFsProvider(
26
26
  },
27
27
  readFile(uri, encoding) {
28
28
  try {
29
- console.log("readFile", uri.path);
29
+ // console.log("readFile", uri.path);
30
30
  return fs.readFileSync(uri.path, {
31
31
  encoding: (encoding as "utf-8") ?? "utf-8",
32
32
  });
@@ -37,7 +37,7 @@ export default function zenFsProvider(
37
37
  readDirectory(uri) {
38
38
  try {
39
39
  const files = fs.readdirSync(uri.path, { withFileTypes: true });
40
- console.log("readDirectory", uri.path, files.map((f) => f.name));
40
+ // console.log("readDirectory", uri.path, files.map((f) => f.name));
41
41
  return files.map<[string, FileType]>((file) => {
42
42
  return [
43
43
  file.name,