summaryrefslogtreecommitdiff
path: root/cli
diff options
context:
space:
mode:
Diffstat (limited to 'cli')
-rw-r--r--cli/standalone/virtual_fs.rs12
-rw-r--r--cli/tests/integration/lsp_tests.rs2
-rw-r--r--cli/tests/unit/stat_test.ts8
-rw-r--r--cli/tsc/dts/lib.deno.ns.d.ts16
4 files changed, 37 insertions, 1 deletions
diff --git a/cli/standalone/virtual_fs.rs b/cli/standalone/virtual_fs.rs
index 9c0601bcc..31f630db8 100644
--- a/cli/standalone/virtual_fs.rs
+++ b/cli/standalone/virtual_fs.rs
@@ -203,6 +203,10 @@ impl<'a> VfsEntryRef<'a> {
gid: 0,
rdev: 0,
blocks: 0,
+ is_block_device: false,
+ is_char_device: false,
+ is_fifo: false,
+ is_socket: false,
},
VfsEntryRef::File(file) => FsStat {
is_directory: false,
@@ -221,6 +225,10 @@ impl<'a> VfsEntryRef<'a> {
gid: 0,
rdev: 0,
blocks: 0,
+ is_block_device: false,
+ is_char_device: false,
+ is_fifo: false,
+ is_socket: false,
},
VfsEntryRef::Symlink(_) => FsStat {
is_directory: false,
@@ -239,6 +247,10 @@ impl<'a> VfsEntryRef<'a> {
gid: 0,
rdev: 0,
blocks: 0,
+ is_block_device: false,
+ is_char_device: false,
+ is_fifo: false,
+ is_socket: false,
},
}
}
diff --git a/cli/tests/integration/lsp_tests.rs b/cli/tests/integration/lsp_tests.rs
index db009999b..4ddf5d4e3 100644
--- a/cli/tests/integration/lsp_tests.rs
+++ b/cli/tests/integration/lsp_tests.rs
@@ -4715,7 +4715,7 @@ fn lsp_completions_auto_import() {
"source": "./b.ts",
"data": {
"exportName": "foo",
- "exportMapKey": "foo|6806|file:///a/b",
+ "exportMapKey": "foo|6810|file:///a/b",
"moduleSpecifier": "./b.ts",
"fileName": "file:///a/b.ts"
},
diff --git a/cli/tests/unit/stat_test.ts b/cli/tests/unit/stat_test.ts
index f386fd92f..69730d439 100644
--- a/cli/tests/unit/stat_test.ts
+++ b/cli/tests/unit/stat_test.ts
@@ -307,6 +307,10 @@ Deno.test(
assert(s.rdev === null);
assert(s.blksize === null);
assert(s.blocks === null);
+ assert(s.isBlockDevice === null);
+ assert(s.isCharDevice === null);
+ assert(s.isFifo === null);
+ assert(s.isSocket === null);
},
);
@@ -334,5 +338,9 @@ Deno.test(
assert(s.rdev !== null);
assert(s.blksize !== null);
assert(s.blocks !== null);
+ assert(!s.isBlockDevice);
+ assert(!s.isCharDevice);
+ assert(!s.isFifo);
+ assert(!s.isSocket);
},
);
diff --git a/cli/tsc/dts/lib.deno.ns.d.ts b/cli/tsc/dts/lib.deno.ns.d.ts
index 4d8c9293e..a7d6adab8 100644
--- a/cli/tsc/dts/lib.deno.ns.d.ts
+++ b/cli/tsc/dts/lib.deno.ns.d.ts
@@ -3122,6 +3122,22 @@ declare namespace Deno {
*
* _Linux/Mac OS only._ */
blocks: number | null;
+ /** True if this is info for a block device.
+ *
+ * _Linux/Mac OS only._ */
+ isBlockDevice: boolean | null;
+ /** True if this is info for a char device.
+ *
+ * _Linux/Mac OS only._ */
+ isCharDevice: boolean | null;
+ /** True if this is info for a fifo.
+ *
+ * _Linux/Mac OS only._ */
+ isFifo: boolean | null;
+ /** True if this is info for a socket.
+ *
+ * _Linux/Mac OS only._ */
+ isSocket: boolean | null;
}
/** Resolves to the absolute normalized path, with symbolic links resolved.