Commit Graph

8534 Commits

Author SHA1 Message Date
Christof Marti e943540509 Schema update (microsoft/vscode-remote-release#1045) 2020-02-23 11:51:55 +01:00
Christof Marti 1a03d6b5fc Schema update (microsoft/vscode-remote-release#46) 2020-02-23 11:48:34 +01:00
João Moreno acd7bb922a Merge pull request #91155 from microsoft/joao/refactor-build
Refactor build
2020-02-22 09:56:09 +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
Joao Moreno cc5dd0c98b refactor build 2020-02-21 15:30:01 +01:00
Martin Aeschlimann b2e0925ba1 update jsonc-parser 2020-02-21 15:03:33 +01:00
Martin Aeschlimann d3d3e8c311 [json] update dependencies 2020-02-21 10:49:58 +01:00
Martin Aeschlimann cfc07ec7aa [json] "Format document" on a large JSON file adds extra bracket Fixes #91125 2020-02-21 09:36:54 +01:00
Martin Aeschlimann f8188579a3 Merge pull request #90960 from Helloimbob/patch-1
Autodetect csh script as shellscript
2020-02-20 23:36:57 -08:00
Matt Bierner 9c0899f286 Pick up TS 3.8.2 2020-02-20 21:38:14 -08:00
Matt Bierner d17a017c0b Fix formatting and version for TS Server issue report 2020-02-20 21:34:20 -08:00
Rachel Macfarlane 167c422e4b Handle no github auth config 2020-02-20 14:38:10 -08:00
Helloimbob 59391f4636 Merge branch 'master' into patch-1 2020-02-20 21:01:59 +00:00
Rachel Macfarlane eed39324b6 Add GitHub authentication provider extension, closes #90384 2020-02-20 10:56:16 -08:00
Matt Bierner 0b3aa0a6ea Let extensions prepopulate the issue reporter title and description (#91039)
* Let extensions prepopulate the issue reporter title and description

Fixes #91028

Adds two new optional arguments to the `vscode.openIssueReporter` command: `issueTitle` and `issueBody`. These are taken using an options object and are used to pre-populate the native issue reporter fields

Hooks up these fields for TypeScript's report issue prompt. We use this to post the most recent TS Server error stack

* Extract duplicate command id to constant

* Log version directly instead of prompting users for it
2020-02-20 10:31:09 -08:00
Erich Gamma e77c58dd0b Inform user when 'npm.autoDetect' is off. 2020-02-20 16:17:18 +01:00
Martin Aeschlimann 12770d4fed update typescript semantic highlighting 2020-02-20 15:35:50 +01:00
Martin Aeschlimann 66f525f435 [ts] enumMember missing in token legend 2020-02-20 10:31:14 +01:00
Rachel Macfarlane 88044f2cc6 Add sign in/sign out commands from Microsoft auth provider, fixes #90988 2020-02-19 11:49:42 -08:00
Sandeep Somavarapu 00ad0a9372 Fix #90931 2020-02-19 13:39:19 +01:00
Joao Moreno d43bb97bb0 git: contribute Clone to explorer 2020-02-19 12:23:02 +01:00
Joao Moreno e7ebb137b7 git: easy case for git init 2020-02-19 11:59:27 +01:00
Joao Moreno 27606615ba rewrite 2020-02-19 11:59:25 +01:00
Matt Bierner 2aced89ae1 Show more clear TS Version picker when reinstalling a different TS version locally
- Make sure that `TypeScriptVersion` is immutable by getting and caching `apiVersion` on init
- Only show dot next to currently active version if both path and api versions match
2020-02-18 19:16:56 -08:00
Rachel Macfarlane 7302c88f21 Propogate login error, fixes #89518 2020-02-18 11:33:16 -08:00
Rachel Macfarlane df3ae4adef Refresh auth tokens when server returns 401, fixes #89629 2020-02-18 10:46:49 -08:00
Joao Moreno acb9817a8d too many conditions 2020-02-18 16:37:52 +01:00
Joao Moreno 913c256bb3 fixes #90705 2020-02-18 16:36:10 +01:00
Martin Aeschlimann 27aaa79d52 Don't use rootPath in built-in extension. For #90562 2020-02-18 14:24:11 +01:00
Joao Moreno 595f98455b fix git tests 2020-02-18 13:56:16 +01:00
Joao Moreno fe884b305e Revert "Revert "Fix #88294 Add commitData in commit interface""
This reverts commit aa70f38ab2.
2020-02-18 12:56:07 +01:00
Alex Dima aa70f38ab2 Revert "Fix #88294 Add commitData in commit interface"
This reverts commit 51b8bd5064.
2020-02-18 12:48:22 +01:00
Benjamin Pasero b59c3a83b3 workspace edit - also test moving and applying changes to dirty file 2020-02-18 10:40:12 +01:00
Martin Aeschlimann 33545a2963 Merge pull request #90825 from johnbillion/patch-1
Treat .envrc files as Shell scripts
2020-02-18 01:13:10 -08:00
João Moreno cd6006b5ff Merge branch 'master' into issue/88294 2020-02-18 10:03:44 +01:00
Martin Aeschlimann 57ab6fb91d JSON Language Server 1.2.3 2020-02-17 17:59:16 +01:00
Helloimbob e7f9230340 Autodetect csh script as shellscript
Identify csh scripts (file extenstion `.csh` or `#!/usr/bin/csh` in first line) as shellscript.
2020-02-17 15:51:57 +00:00
John Blackbourn 97831cfa80 Treat .envrc files as Shell scripts 2020-02-17 13:57:34 +00:00
Joao Moreno 2d125bc3cf remove git init action from top of scm 2020-02-17 12:24:01 +01:00
Joao Moreno cce81b98b9 Merge branch 'joao/empty-views-api' 2020-02-17 12:05:37 +01:00
Joao Moreno 25b36c1c37 rename empty view contents to view welcome 2020-02-17 11:25:17 +01:00
Benjamin Pasero d8e7eb36a2 Text save participants are overwritten for each extension host (fixes #90359) 2020-02-17 10:42:31 +01:00
Matt Bierner 6ec6f9e3f4 Fix git integration tests
Move back to using normal vscode dependency for now . We will look into moving off it later
2020-02-15 13:13:22 -08:00
Matt Bierner feecdaeacf Disable webview copy test on web 2020-02-15 12:49:11 -08:00
Matt Bierner 8503705b11 Don't show reference code lens for both class and ctor in es5 classes
Fixes #90396
2020-02-14 16:57:47 -08:00
Eric Amodio 5c017be321 Fixes broken test with git extension 2020-02-14 18:55:11 -05:00
Matt Bierner 2f9c79a847 Only enable webview copy tests on MacOS 2020-02-14 12:39:50 -08:00
Eric Amodio 9ae0fd36c9 Enhances timeline - commands, timestamp, etc
Adds contributable commands to timeline items
Adds right-aligned timestamp to timeline items
Adds Open Changes to Git timeline items
Adds Copy Commit ID to Git timeline items
Adds Copy Commit Message to Git timeline items
2020-02-14 15:22:45 -05:00
Eric Amodio 69b30f6ba7 Adds paging support (wip) 2020-02-14 15:22:45 -05:00
Matt Bierner c03b581840 Add test for copying text from webview 2020-02-14 11:54:09 -08:00