Benjamin Pasero
782f1592de
fix #84973
2019-11-19 08:33:26 +01:00
Benjamin Pasero
ddfca307b1
encoding - still ignore 'ascii'
2019-11-12 18:48:27 +01:00
酷酷的哀殿
039899cde9
Support utf-8 encoding guessing ( #84504 )
...
* Update encoding.ts
* fix warnings
2019-11-12 09:56:31 +01:00
Benjamin Pasero
b8bb1770a5
🆙 jschardet (for #83421 )
2019-11-11 07:52:18 +01:00
Benjamin Pasero
7dcedd171c
debt - some TS fixes
2019-10-28 17:08:22 +01:00
Benjamin Pasero
5d182a4e49
debt - remove a few typings (part of #83421 )
2019-10-28 11:58:46 +01:00
Benjamin Pasero
e9ee372447
debt - reduce usage of strict null bypass
2019-10-07 10:56:34 +02:00
Benjamin Pasero
6bf98da053
strict init ( #78168 )
2019-08-07 12:31:25 +02:00
Benjamin Pasero
8ffe01a665
💄
2019-08-07 08:18:47 +02:00
Matt Bierner
a571be2a71
Fixing/supressing more implict index errors
...
#76442
2019-07-02 15:09:44 -07:00
Benjamin Pasero
cb73a8f7a2
files - 💄 decoder stream
2019-04-17 09:19:24 +02:00
Benjamin Pasero
29867b558b
files - 💄
2019-04-17 08:20:23 +02:00
Benjamin Pasero
5e75c405f8
files - 💄
2019-04-16 18:54:52 +02:00
Benjamin Pasero
eacb2d85df
Remote: Preserve BOM in UTF-8 when found ( fixes #48826 )
2019-04-16 16:49:39 +02:00
Benjamin Pasero
cba19ff191
files2 - more tests
2019-04-16 13:23:07 +02:00
Benjamin Pasero
96d03958ae
files2 - implement read() and readStream()
2019-04-16 11:40:06 +02:00
Benjamin Pasero
efd5704d8d
files2 - avoid 2 fs.exists() when writing a file
2019-04-12 11:50:30 +02:00
Benjamin Pasero
056b4ea8d6
files2 - ensure BOM for empty files
2019-04-11 10:42:10 +02:00
Benjamin Pasero
64c3f1a93e
debt - reduce explicit any or casts
2019-04-01 08:11:11 +02:00
Johannes Rieken
1934d4b269
make sure to close files after read, adopt newer streams api, #66759
2019-01-19 10:31:56 -08:00
Matt Bierner
b4964bcf35
Replace some common index based for loops with for-of loops
...
Replaces many loops of the form:
```js
for (let i = 0; i < elements.length; ++i) {
const i = elements[i];
...
}
```
with:
```js
for (const element of elements) {
...
}
```
Mix of a horrible regex based find/replace and manual touch ups
2019-01-03 19:11:18 -08:00
Rob Lourens
ef2547d547
replace void 0 with undefined
2019-01-03 11:20:19 -08:00
Johannes Rieken
653280d133
debt - Thenable -> Promise
2018-12-13 11:31:54 +01:00
Alex Dima
11c473d3b8
Have overwriteEncoding be called
2018-11-15 18:24:32 +01:00
Matt Bierner
580619e8b6
Fix strict null errors in encoding and storage
...
Fixes #62072
2018-11-05 11:39:42 -08:00
Matt Bierner
0ce7badda9
Strict null checks
...
#60565
2018-10-22 15:51:29 -07:00
Johannes Rieken
faf868edf4
propagate error when it happens very early, make sure to throw meaningful error on ext host side, #61182
2018-10-18 12:20:05 +02:00
Matt Bierner
ff13b50277
Strict null checking some more files in base/node
...
#60565
2018-10-17 16:22:25 -07:00
Benjamin Pasero
fc251d651d
tpromise => promise (for #53526 )
2018-10-04 07:54:47 +02:00
Matt Bierner
c63c97c128
Remove use strict directives in main vs code ts files
...
We compile using the alwaysStrict flag so these directives are not needed
2018-10-02 16:05:44 -07:00
Benjamin Pasero
494b385a96
revert "files.guessableEncodings"
2018-09-28 07:13:16 +02:00
Benjamin Pasero
3480f4cf22
restrictGuessedEncodings => guessableEncodings
2018-09-24 17:31:40 +02:00
Benjamin Pasero
9c882c7c93
fix #36951
2018-09-13 12:01:14 +02:00
Johannes Rieken
3eb017c5dc
debt - remove toWinJsPromise which is just WinJS.Promise.wrap
2018-09-03 16:09:33 +02:00
Benjamin Pasero
b57003f330
NodeBuffer => Buffer
2018-08-16 07:38:54 +02:00
Benjamin Pasero
4ab2c3929e
simplify async method
2018-07-02 11:14:22 +02:00
Johannes Rieken
70d6a33830
Merge branch 'master' into joh/next
2018-05-31 15:20:17 +02:00
Benjamin Pasero
2f36264cb4
fix #49177
2018-05-09 08:47:14 +02:00
Johannes Rieken
5d631c28c3
better logging for #48662
2018-04-27 16:27:44 +02:00
Johannes Rieken
e572ffc4f6
unsure what's happening here... #48662
2018-04-25 14:12:53 +02:00
Johannes Rieken
e7e88126ad
add FileOpenFlags, FileErrors, and a bit of polish, #47475
2018-04-13 10:17:20 +02:00
Johannes Rieken
9008ae5eb7
reuse getEncoding/getPreferredEncoding in remoteFileService, #38776
2018-04-11 13:57:03 +02:00
Johannes Rieken
f686a20863
add provider to readable-stream logic, #41985
2018-04-10 16:59:11 +02:00
Johannes Rieken
36708c0f5d
add toDecodeStream to enable seamless encoding handling, #41985
2018-04-10 16:59:10 +02:00
Benjamin Pasero
f3b860d400
debt - merge node/mime.ts into node/encoding.ts
2018-04-03 14:23:29 +02:00
Matt Bierner
ab1669f898
Revert "Revert "Avoid using import x = require('...')""
...
This reverts commit 27256832f3 which turns out did not break the import of vs/nls
2018-03-15 10:17:18 -07:00
Matt Bierner
27256832f3
Revert "Avoid using import x = require('...')"
...
This reverts commit 7de696a202 .
Seems to have broken loading vs/nls in at least one case in insiders
2018-03-15 00:47:33 -07:00
Matt Bierner
7de696a202
Avoid using import x = require('...')
...
Don't use this import form in places where it is not needed. This prevents us from correctly detecting duplicate imports
2018-03-14 14:45:59 -07:00
Benjamin Pasero
d6a36ba260
another fix for #42542 (fix it also when encoding is used)
2018-01-31 11:21:24 +01:00
Benjamin Pasero
c7da35f1de
first cut stream support for updateContent
2018-01-20 18:10:15 +01:00