Commit Graph

14 Commits

Author SHA1 Message Date
Johannes Rieken
28cb90be8c chore - ES6, use for-of instead of forEach 2020-06-12 16:20:23 +02:00
Johannes Rieken
59a5aa197c add trace logging to extHostDiagnostics, #96837 2020-05-05 11:51:56 +02:00
Johannes Rieken
55e86cd514 use ResourceMap in extHostDiagnostics, #93368 2020-05-05 11:51:56 +02:00
Johannes Rieken
6829e20b19 es6 - replace some usages of values/keys utils with destructuring 2020-03-03 10:35:19 +01:00
Johannes Rieken
402a1cb949 some strict function fixes, #81574 2020-02-11 09:35:48 +01:00
Matt Bierner
1b70625f8c Use import type when importing vscode under src
When the core references `vscode`, we only want to import the types and never generate a real import (which will fail to load). Use `import type` to better enforce this
2020-01-10 14:25:21 -08:00
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