Commit Graph

8 Commits

Author SHA1 Message Date
Johannes Rieken
34bf3d97eb use LogService in extHostDiagnostics, #84283 2019-11-11 09:50:05 +01:00
Johannes Rieken
904ab2364e in extension land prefer URI.isUri, fixes #81819 2019-10-07 08:30:18 +02:00
Johannes Rieken
78d462bd86 sync diagnostics, fixes #47292 2019-08-19 18:28:09 +02:00
Matt Bierner
8448512143 Use readonly arrays for the vscode.DiagnosticCollection api
## Problem
The diagnostic collection object is set up so that it does not mutate the arrays of diagnostics you pass to it. It also does not expect or allow mutation of diagnostics that it returns.

However it it currently typed using normal arrays. This means that if an extension (such as JS/TS) wishes to use readonly diagnostics intnernally, it cannot do so without casting.

## Proposed Fix
Use `ReadonlyArray` in diagnostic collection. This should be a safe change for the `set` type methods. The changes to `get` and `forEach` have the risk of breaking the typing of some extensions, but `get` already returned a frozen array of diagnostic so trying to mutate the array itself would have resulted in runtime error.
2019-06-07 11:41:33 -07:00
Johannes Rieken
c0821aa5e9 move extHost-files to common 2019-04-10 10:26:52 +02:00
Johannes Rieken
81456a7212 move api/common to api/browser 2016-01-11 14:44:13 +01:00
Benjamin Pasero
5906207073 workbench api linting 2015-12-21 18:51:51 +01:00
Johannes Rieken
8aadd81678 debt - rename PluginHostXYZ to ExtHostXYZ, do the same for filenames 2015-12-21 11:46:00 +01:00