Commit graph

76 commits

Author SHA1 Message Date
Logan Ramos e6f667d3e0
Revert "Revert "Remove telemetry appender from embedder API""
This reverts commit e516cefa43.
2021-07-21 17:04:02 -04:00
Logan Ramos e516cefa43
Revert "Remove telemetry appender from embedder API"
This reverts commit 889fc9ed82.
2021-07-21 17:03:01 -04:00
Logan Ramos 889fc9ed82
Remove telemetry appender from embedder API 2021-07-21 12:55:50 -04:00
Tyler James Leonhardt 8f88009816
Initial support for language detection (#128708)
* initial language detection

* add configuration and extra event on UntitedTextEditorService

* check isWeb, use beter mode API, include model in unpacked

* typo in path
2021-07-16 16:43:23 -07:00
Henning Dieterichs 2a0c4cc1c3
Uses eslint-plugin-header to enforce license headers. Features quick fix to add license header. 2021-07-09 18:20:17 +02:00
Henning Dieterichs 00123b32a7
Updates sinon from 1.17 to 11.1. 2021-06-09 10:03:46 +02:00
Matt Bierner 97b5db8dba
'vs code' -> 'the editor' in d.ts
Fixes #124361

Also adds a lint rule for this
2021-06-08 11:35:42 -07:00
Benjamin Pasero ad60f647d9 web - implemented indexedDB based storage service 2021-06-06 08:27:13 +02:00
Benjamin Pasero 5d1370af49
file editors - move the input to the editor (browser) 2021-05-10 11:34:52 +02:00
SteVen Batten a9f70f7919 finalize basic workspace trust api 2021-04-21 09:56:35 -07:00
Connor Peet 808266d4de
Allow tests to be loaded asynchronously (#119537)
* initial wip in the extension host

* wip

* wip

* wip

* continued progress

* update api from discussion

* update for new proposal

* wip

* update to lastest testing api, almost everything working

Refs https://github.com/microsoft/vscode/issues/115089
Design https://gist.github.com/connor4312/73f1883d720654834b7fd40550d3b6e0

* re-wire retirement state

* update actions to new async test structure

* minor cleanup

* remove unused es2018 that failed build
2021-03-22 18:08:13 -07:00
Johannes Rieken 98a22a957a
declare cancellation support for openNotebook and wire it up, exempt notebook content provider from provider naming rules 2021-03-09 12:40:37 +01:00
Johannes Rieken 7222dfcffb exempt AuthenticationProvider from provider-naming rule 2021-02-23 08:38:37 +01:00
Benjamin Pasero 05922f8a26 storage - add tests for all services 2021-02-13 10:44:21 +01:00
Benjamin Pasero 883b862945 debt - prevent vs/code dependency from vs/server 2021-02-10 08:15:46 +01:00
Benjamin Pasero 3b456a2857 debt - do not allow platform layer to reach into code layer 2021-02-10 08:04:15 +01:00
Connor Peet 3d4cabb608
testing: refactor to new runState API
Fixes: https://github.com/microsoft/vscode/issues/115101.
See issue for details.

- Adopts the new API
- Test results now persist across reloads (last 64 runs).
- Removed state grouping in favor of sorting option.
- Code lenses are disabled for now
2021-02-09 16:12:37 -08:00
Johannes Rieken dbd4ede23f add api lint rule for region comments 2021-01-21 17:42:33 +01:00
Johannes Rieken 845a4d4268 add new rule to enforce Thenable over Promise, adopt in vscode.d.ts and vscode.proposed.d.ts 2021-01-20 13:08:04 +01:00
João Moreno a78fffbdb0
remove unused eslint mocha 2021-01-07 14:55:03 +01:00
João Moreno 5e673678eb
Merge branch 'joao/build/single-compile-job' 2021-01-07 10:59:12 +01:00
João Moreno d944b91cd1
remove no-exclusive-tests 2021-01-07 10:18:00 +01:00
Johannes Rieken 0319fedae1 add lint rule for missing cancellation token in resolve and provide methods, fyi @alexr00 please remove surpression comment 2021-01-05 18:48:13 +01:00
Johannes Rieken fee7cdacf7 add provider naming rule 2021-01-04 20:02:05 +01:00
Alexandru Dima 9945754a62
Add editor smoke test (ported from monaco-editor) 2020-12-28 21:44:42 +01:00
Connor Peet d1280418d7
testing: initial api implementation
* wip

* wip

* wip

* wip

* wip

* wip
2020-11-20 08:31:35 -08:00
Sandeep Somavarapu 88144f6d31 Fix #80698
- Inline semver
2020-10-26 12:12:07 +01:00
Sandeep Somavarapu 43bc8349d8 remove semver dependency 2020-10-26 08:45:58 +00:00
Sandeep Somavarapu 6a47ef2de5 consider version while merging extension state 2020-10-25 18:48:44 +01:00
Benjamin Pasero 3bbcbfa19d debt - add and enable mocha/no-exclusive-tests rule 2020-10-15 09:57:38 +02:00
SteVen Batten 92a30ed265
Move tas-client to umd version and adopt in web (#106904)
* adopt tas-client-umd

* adopt in web

* fix whitespace

* adding tas-client to webignore

* upgrade tas-client-umd

* move svc imort to common

* remove unnecessary ignore
2020-09-18 10:00:39 -07:00
Benjamin Pasero ea830ff2ac sandbox - lift themes.test.contribution 2020-09-18 13:35:35 +02:00
rebornix 509bc25f02 notebook editor worker service. 2020-08-20 10:53:42 -07:00
Evgeny Gryaznov 3c4a261d5f
Add missing code-import-patterns for files and directories targeting web. (#102961) 2020-07-21 07:45:44 +02:00
Sandeep Somavarapu 41f32e0bd6 support managing web extensions
- Allow installing extensions with web resource asset type
- Allow uninstalling
2020-06-25 19:25:49 +02:00
Fedor Nezhivoi 24e0a82229
Move encoding to common for #79275 (#100539)
* move encoding.ts to common for #79275

* load iconv-lite-umd and jschardet in web version for #79275

* move EncodingOracle to the AbstractTextFileService for #79275

* review

* update to new iconv-lite-umd

* add workaround for jschardet types

* fix indentation

* add iconv-lite-umd and jschardet to workbench.html

* fix paths for modules

Co-authored-by: Benjamin Pasero <benjpas@microsoft.com>
2020-06-20 10:47:29 +02:00
Matt Bierner 5fe78a13a4 Update eslint versions
The class-name-casing rule has also been replaced by the configurable `naming-convention` rule
2020-06-05 14:09:41 -07:00
Benjamin Pasero 76590a7764 Merge branch 'master' into ben/electron-sandbox 2020-05-26 09:39:17 +02:00
Alex Dima 7c045e7f07
Add more undo-redo tests 2020-05-25 17:46:24 +02:00
Benjamin Pasero dc8f291781 sandbox - let workspaces service use sandboxed IPC 2020-05-23 08:05:47 +02:00
Benjamin Pasero 3514e96bf5 sandbox - add rules for new electron-sandbox layer 2020-05-22 12:21:25 +02:00
rebornix d321061c8c merge moveEvent into CellsChangeEvent. 2020-05-20 11:03:30 -07:00
rebornix cc151dd103 notebook tests for notebook content change events. 2020-05-19 14:46:14 -07:00
rebornix 0dea13a46a Notebook document events. 2020-05-19 12:05:21 -07:00
Alex Dima 6654073e14
Adopt new package name (vscode-oniguruma) 2020-04-24 17:58:08 +02:00
Alex Dima a6e59815c8
Adopt vscode-oniguruma-wasm 2020-04-23 11:16:21 +02:00
Benjamin Pasero eaff4c5dee debt - fix import layer rules 2020-04-07 10:29:20 +02:00
Benjamin Pasero b644d803d1 debt - extract node pieces to node layer (window) 2020-04-06 09:17:00 +02:00
Benjamin Pasero a949694b25 debt - reduce usage of explicit any 2020-02-28 11:33:55 +01:00
Matt Bierner 99d5733e5f New iteration of webview editor API proposal
For #77131

**Motivation**
While our existing webview editor API proposal more or less works, building an editable webview editor is fairly tricky using it! This is especially true for simple text based editors.

It'd also be nice if we could get bi-directional live editing for text files. For example, if I open the same file in a webview editor and in VS Code's normal editor, edits on either side should be reflected in the other. While this can sort of be implemented using the existing API, it has some big limitations

**Overview of changes**
To address these problems, we've decided have two types of webview editors:

- Text based webview editors. These editors used a `TextDocument` as their data model, which considerably simplifies implementing an editable webview. In almost all cases, this should be what you use for text files

- Complex webview editors. This is basically the existing proposed API. This gives extension hooks into all the VS Code events, such as `save`, `undo`, and so on. These should be used for binary files or in very complex text editor cases.

Both editor types now have an explicit model layer based on documents. Text editor use `TextDocument` for this, while custom editors use `WebviewEditorCustomDocument`. This replaces the delegate based approach previously used.
2020-02-21 16:26:01 -08:00