Commit graph

7302 commits

Author SHA1 Message Date
Miguel Solorio e998949260 Update markdown icons 2019-06-20 11:53:01 -07:00
Miguel Solorio b25f96a60a Update all icons 2019-06-20 11:41:07 -07:00
Matt Bierner 8b93c01655 Re-queue canceled geterr requests before remaining buffers
We should give higher priority to files that have previously had geterr triggered on them but did not have their request completed
2019-06-20 10:27:36 -07:00
Martin Aeschlimann 97708373c6
Merge pull request #75828 from Ash258/patch-1
shellscript: Add folding markers
2019-06-20 07:28:54 -07:00
Joao Moreno 997e91421e add diagnostic tool for git file event issues 2019-06-20 15:47:46 +02:00
Jakub Čábera e82130da4b
shellscript: Add folding markers 2019-06-20 11:13:15 +02:00
ozyx a9672ad746 remove trailing '/' from repo url for baseFolderName 2019-06-20 00:36:34 -07:00
Matt Bierner 535c9d5627
Merge pull request #75741 from microsoft/dev/mjbvz/webviewResourceRoot
Add vscode.env.webviewResourceRoot API
2019-06-19 14:10:17 -07:00
Matt Bierner d599bd66e4
Merge pull request #75659 from microsoft/dev/mjbvz/use-ts-full-range-for-definition-preview
Provide full TS symbol range when previewing definitions in VSCode
2019-06-19 10:02:35 -07:00
Benjamin Pasero 4a7e7b5cef comment out more tests (#74898) 2019-06-19 11:48:46 +02:00
Matt Bierner 7f3d3d835f Add vscode.env.webviewResourceRoot api
Fixes #72155

Adds a constant to the api that tracks the root path for resources inside of webviews. This is required because we will not be able to use `vscode-resource:` uris on the web. Our current approach is to rewrite the html we are given but there are almost certainly going to be cases where we don't get this quite right.

Adopts the new api for the markdown preview
2019-06-18 22:29:37 -07:00
Miguel Solorio 005a5e4fae Update SCM icons 2019-06-18 13:17:44 -07:00
TBK bdc1fd4234
Add support for APKBUILD
APKBUILD is the build shell script format for Alpine Linux aports (packages - .apk) - https://wiki.alpinelinux.org/wiki/APKBUILD_Reference
2019-06-18 16:55:48 +02:00
Benjamin Pasero 356440d72d windows - disable terminal integration tests (#75689) 2019-06-18 13:48:30 +02:00
Matt Bierner 459939b905 Provide full TS symbol range when previewing definitions in VSCode
Fixes #72017

Has two fixes:

- Hooks up the JS/TS extension to consume the full symbol range provided by https://github.com/microsoft/TypeScript/pull/31587

- Makes the go the definition mouse implementation use the locationLink to compute the preview range. If a`targetSelectionRange` is provided, this means we use the normal `range` to get the preview range
2019-06-17 15:39:56 -07:00
Matt Bierner 18ba826e67 Markdown previews should be able to load resources from next to where they are running
Add `'self'` to some content security policies for the preview
2019-06-17 11:20:19 -07:00
Lee Houghton fa4f870501
Handle multiple users with /tmp/vscode-typescript
This fixes an issue where the typescript language server fails to load if multiple users launch VS Code on the same Linux machine.

Steps to reproduce:
- Log in as user1
- Launch VS Code
- Log out
- Log in as user2
- Launch VS Code
- It tries to write to files in /tmp/vscode-typescript, but that directory is not writeable because it is owned by user1
- You cannot use TypeScript intellisense

This fix namespaces the directory with the current uid so that each user will get their own. 

On Windows, this shouldn't be an issue anyway since each user gets their own temp directory.
2019-06-15 00:36:23 +01:00
Matt Bierner e3294dc7b1 Fix exception if extension is not installed 2019-06-14 16:30:05 -07:00
Matt Bierner c419355b5b
Merge pull request #75375 from microsoft/dev/mjbvz/vscode-api-readonly-events
Mark events as readonly in VS Code api
2019-06-14 11:59:57 -07:00
Martin Aeschlimann 8c4a49f8b9 [testresolver] kill server on shutdown 2019-06-14 12:07:04 +02:00
Benjamin Pasero c6d9e8ea64 status - push proposed API for statusbar id/name and adopt 2019-06-14 11:52:39 +02:00
Matt Bierner 4f102f6ffc Pick up TS 3.5.2 2019-06-13 16:12:58 -07:00
Andrius 2ac8fbb7d0 notify tsserver about changes in external files. 2019-06-13 19:20:33 +03:00
Martin Aeschlimann 9bc4699da4 package.json suggestions stopped working - skimdb is being retired. Fixes #75274 2019-06-13 17:30:10 +02:00
Martin Aeschlimann 56d1a02b56
Merge pull request #72763 from jk21/package-json-info
Package json info
2019-06-13 17:01:24 +02:00
Martin Aeschlimann 4284a8ff20 use --json 2019-06-13 16:58:34 +02:00
Martin Aeschlimann 8cbd7355ee Merge branch 'master' into pr/jk21/72763 2019-06-13 16:06:33 +02:00
Martin Aeschlimann c67229f526
Merge pull request #75332 from remcohaszing/highlight-gitmodules
Add syntax highlighting for .gitmodules
2019-06-13 15:46:27 +02:00
Martin Aeschlimann c47421fb44 [testresolver] setting 'testresolver.pause' to test disconnect & reconnect 2019-06-13 15:27:36 +02:00
Alex Ross 6a7e5dbd0e Update C++ grammar
Get the fix for traling spaces. Fixes #75069
2019-06-13 13:20:04 +02:00
Martin Aeschlimann 81821c71a6 testresolver: kill server process, more settings 2019-06-13 12:25:17 +02:00
Martin Aeschlimann a84c30184c [css/json/html] update lsp, services & dependencies 2019-06-13 10:27:45 +02:00
Joao Moreno 5f70390f0d fixes microsoft/vscode-remote-release#671 2019-06-13 10:02:23 +02:00
Matt Bierner 2ad085b5bd
Merge pull request #75357 from Olovan/fix_35245
Fix for issue #35245
2019-06-12 16:56:13 -07:00
Matt Bierner b4f6130fe4 Fix some compile errors resutling from readonly change 2019-06-12 16:54:16 -07:00
Matt Bierner a6a376e933
Merge pull request #75092 from microsoft/dev/mjbvz/readonly-diagnostics-api
Use readonly arrays for the vscode.DiagnosticCollection api
2019-06-12 14:46:17 -07:00
Micah Smith 01f7276b7e Fix for issue #35245 2019-06-12 14:30:54 -04:00
Remco Haszing 24b61e19cd
Add syntax highlighting for .gitmodules 2019-06-12 13:21:34 +02:00
Joao Moreno 718f19e8ab 💄 2019-06-12 12:40:16 +02:00
Joao Moreno fee4ee0df8 Merge commit 'refs/pull/69763/head' of github.com:Microsoft/vscode into pr/69763 2019-06-12 12:35:24 +02:00
Joao Moreno b485ffb756 fix git nls 2019-06-12 12:02:58 +02:00
Joao Moreno 4a3c056e9a use --follow-tags instead of --tags when pushing
fixes #70081
fixes #75240
2019-06-12 11:06:54 +02:00
Joao Moreno 13d0dad699 fix #41085 2019-06-12 10:38:35 +02:00
Matt Bierner 8de74d9255 Extracting common webview elements
Minimizing diff with the iframe based webview branch
2019-06-11 22:45:55 -07:00
Matt Bierner 1f4e2a21fc Add support for loading contributed TS version
Fixes https://github.com/microsoft/vscode/issues/75222
Fixes https://github.com/microsoft/TypeScript/issues/31623
2019-06-10 15:42:35 -07:00
Matt Bierner a1c33c6c12 Don't try creating untitled files in a refactoring
Fixes #75132
2019-06-10 11:11:12 -07: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
Matt Bierner dc2245f164 Use readonlyArray for diagnostics 2019-06-07 11:25:16 -07:00
Matt Bierner dc8e21138f Extend disposable 2019-06-07 11:23:14 -07:00
Matt Bierner 69a7b7ef24 Extract areLanguageDiagnosticSettingsEqual 2019-06-07 11:22:06 -07:00
Matt Bierner a87c73527e Remove extra work in DiagnosticSettings ctor
The langauges map is written so that it is lazy. We do not need to pre-populate it
2019-06-07 11:21:22 -07:00
Matt Bierner 5b01e094c2 Use includes instead of indexOf 2019-06-07 11:12:54 -07:00
Martin Aeschlimann af4221b242 Git Diffs in Solarized Light have inappropriate colours. Fixes #75037 2019-06-07 14:39:53 +02:00
Martin Aeschlimann b994c2d38d test resolver polish 2019-06-07 13:08:25 +02:00
Martin Aeschlimann 7af0fa1cf8 update test-resolver 2019-06-07 12:44:32 +02:00
Martin Aeschlimann 39ec656916 minimize distro deltas 2019-06-07 11:30:24 +02:00
Martin Aeschlimann 64d254c9bd adopt test resolver 2019-06-07 09:33:17 +02:00
Aurélien Pupier 7a5bca9faf Add License field to package.jsons #68423 (#68771)
it should avoid to have "warning XXX: No license field" during yarn
build

Signed-off-by: Aurélien Pupier <apupier@redhat.com>
2019-06-06 11:44:50 +02:00
Martin Aeschlimann 3ce5cb0e02 [css] enable tests (fixes #74937) 2019-06-06 09:49:55 +02:00
Martin Aeschlimann 29daecda2e [css] add test resources 2019-06-06 09:30:58 +02:00
Benjamin Pasero fc294b683d Comment out failing test 2019-06-06 07:42:18 +02:00
Matt Bierner b33f52a46e Update highlightjs version 2019-06-05 15:41:45 -07:00
Matt Bierner 809386b670 Working on getting ts server class in a testable state 2019-06-05 15:41:45 -07:00
Alex Ross 2472084ffc Remove .desktop from ini extention
Fixes #74866
2019-06-05 16:08:26 +02:00
Waldir Pimenta f3e4e47164 Fix spelling of the example abbreviation (e.g.) 2019-06-05 16:00:26 +02:00
Martin Aeschlimann 8f72934706 [css] resolve modules without require 2019-06-05 13:04:58 +02:00
Johannes Rieken 97ce638677 unblock webpack build 2019-06-05 11:57:56 +02:00
Joao Moreno a83c9a4756 fixes #74844 2019-06-05 10:22:48 +02:00
Joao Moreno afa4faa587 fix git extension tests 2019-06-05 10:22:48 +02:00
Benjamin Pasero d78a75973c
update @types/node (#74881) 2019-06-05 10:20:01 +02:00
Martin Aeschlimann be547e26fc fixes for remote smoke tests against a build 2019-06-05 09:38:02 +02:00
Benjamin Pasero d7977c880f debt - use @types/node: 10 for all extensions 2019-06-05 09:32:36 +02:00
Rob Lourens 20ec76e47b
Merge pull request #74802 from remcohaszing/xdg-basedir-git-config
mark .config/git/config as properties file
2019-06-04 14:14:16 -07:00
Alex Ross 676368aa81 Update C, C++, Objective-C, and Objective-C++ grammars
Also includes corresponding theme changes

Fixes #74450
2019-06-04 16:20:40 +02:00
Christof Marti 21aa8afdd0
Git-UI extension for Git credentials (#74461) 2019-06-04 16:14:34 +02:00
Martin Aeschlimann f256ab1c1e [css] fix test 2019-06-04 11:26:30 +02:00
Martin Aeschlimann ae6be63698 [css server] link tests 2019-06-04 10:35:58 +02:00
Martin Aeschlimann df9b668167
Merge pull request #70693 from penx/feature/node-module-resolution-for-css-import
Node module resolution for CSS import
2019-06-04 09:53:47 +02:00
Matt Bierner 5ce891fae1
Merge pull request #74646 from mjbvz/dont-update-js-ts-diagnostics-if-they-have-not-changed
Don't update js ts diagnostics if they have not changed
2019-06-03 11:35:48 -07:00
Remco Haszing dc20cfcc4f
mark .config/git/config as properties file
Git suppots the XDG base directory standard for its global configuration file.
This defaults to ~/.config/git/config. Now VSCode also highlights this file
properly as long as it’s in the default location.
2019-06-03 20:27:35 +02:00
Alex Ross 96410ff870 Update grammars 2019-06-03 12:01:42 +02:00
Matt Bierner 76e774e4bd Add arrays.empty
This helps with `a === b` checks  in arrays.equals
2019-05-30 17:22:38 -07:00
Matt Bierner 015f1c7909 Use array prototype instead of creating instance 2019-05-30 17:13:10 -07:00
Matt Bierner a8a0fa763f Use every for equals 2019-05-30 17:01:10 -07:00
Matt Bierner 55d6317a4f Don't update js/ts diagnostics if they have not changed
Fixes #74633

This was the indirect cause of  #74633. See that issue for an explaination of why it was problematic.  In summary, updating diagnostics can retrigger code actions even if the user facing diagnostics have not actually changed
2019-05-30 16:59:32 -07:00
Matt Bierner e9c5066315 Pick up TS 3.5.1 final 2019-05-29 21:41:46 -07:00
Matt Bierner 143bebfbb4 Use em for code font size instead of rem
This fixes some cases where a user style sheet may be setting a weird base font-size.
2019-05-29 15:44:48 -07:00
Matt Bierner c62a6aa38a Set extract kind for type alias refactoring
This lets you set up a single keybinding that applies to both extract constant and extract type
2019-05-29 14:22:45 -07:00
Martin Aeschlimann 98b8848002
Merge pull request #74550 from microsoft/aeschli/bin-path
add bin path on server
2019-05-29 21:20:19 +02:00
Martin Aeschlimann 0d17d408bf [css] update service (for #63805) 2019-05-29 17:11:05 +02:00
Martin Aeschlimann a25f8bb505 add bin path on server 2019-05-29 14:39:57 +02:00
Matt Bierner c69c1719bb Add enumDescriptions for merge-conflict.diffViewPosition
Fixes #74500
2019-05-28 14:54:29 -07:00
Matt Bierner 0f19fa2d60 Update to latest TS@next 2019-05-28 14:54:02 -07:00
Alex Ross 5af4d57908 Use old c++ grammar for objective c++
There is a conflict with the new grammar.

Fixes #74219
2019-05-28 11:22:38 +02:00
Alex Ross a1a7af52a7 In gulp tasks use task args so that gulp path can be escaped
Fixes #71154
2019-05-27 16:47:38 +02:00
Joao Moreno ddc397dac2 Merge remote-tracking branch 'origin/master' 2019-05-27 15:40:40 +02:00
Joao Moreno f454c2c402 💄 2019-05-27 15:40:23 +02:00
Martin Aeschlimann 235262c05c
Merge pull request #69899 from c0m3tx/region-fold-golang
Add region markers folding for Go
2019-05-27 15:32:21 +02:00
Martin Aeschlimann 88fc7e755e Make conistent with other languages 2019-05-27 15:25:10 +02:00
Joao Moreno 5540e01820 Merge commit 'refs/pull/61149/head' of github.com:Microsoft/vscode into pr/61149 2019-05-27 15:20:08 +02:00
Martin Aeschlimann afb0837035 Update Snakemake files types to include Snakefile to provide syntax detection. Fixes #73737 2019-05-27 12:40:04 +02:00
Peng Lyu 146115b78c
Merge pull request #74231 from microsoft/rebornix/bettermerge
Show context for diff view of merge conflict and introduce compareAll.
2019-05-24 16:55:04 -07:00
Peng Lyu c3fe962b89 Open the diff view in current editor, to the side or below. 2019-05-24 15:26:50 -07:00
Peng Lyu 93944674c9 Open the new editor group below 2019-05-24 14:55:26 -07:00
Peng Lyu 9cd81dcb5b Always compare change with context. 2019-05-24 14:43:44 -07:00
Matt Bierner 6b081a9f00 Update pug test fixtures 2019-05-24 14:09:55 -07:00
Peng Lyu bbeeefd713 Merge branch 'master' into rebornix/bettermerge 2019-05-24 11:29:41 -07:00
Peng Lyu b917a0341d Support open diff in new editor group 2019-05-24 11:29:30 -07:00
Chris Dias c24694c892
clean up the readme (#74293)
* Tidy up the readme, update graphic
2019-05-24 10:04:01 -07:00
Daniel Imms 28d06f0288
Merge pull request #74228 from microsoft/tyriar/72518_runInBackground
Add runInBackground option to Terminal API
2019-05-24 06:46:37 -07:00
Johannes Rieken 4976cffba7
Merge pull request #73890 from markspanbroek/master
Support negated .gitignore rules.
2019-05-24 15:18:05 +02:00
Daniel Imms 93f93d0961 Merge remote-tracking branch 'origin/master' into tyriar/72518_runInBackground 2019-05-24 06:16:37 -07:00
Andre Weinand e480cea725 address translation issue; fixes #72065 2019-05-24 10:41:41 +02:00
Matt Bierner f3b8d15b0d Add DocumentLink.tooltip api proposal
For #72824
2019-05-23 17:57:04 -07:00
Matt Bierner a9e31b19d7 Make sure we don't de-prioritize this. member suggestions
Fixes #74164
2019-05-23 16:06:34 -07:00
Matt Bierner a4532de9af Make sure we reset editors being iterations of test 2019-05-23 16:06:34 -07:00
Peng Lyu fa69b4e7d6 Show context for diff view of merge conflict and introduce compareAll. 2019-05-23 14:19:09 -07:00
Daniel Imms 1f6bf9b92c Add some runInBackground terminal tests 2019-05-23 12:38:25 -07:00
Hao Hu 2058f27615 Add git.pullTags setting 2019-05-23 11:28:28 +02:00
Matt Bierner c2b02df9ab Allow hidden (but persisted) webviews to recieve messages
Fixes #47534
2019-05-22 15:25:48 -07:00
Matt Bierner 71deb5b6ee Extend disposable 2019-05-22 15:25:48 -07:00
Matt Bierner 519eb3690c Extract duplicated escaping code 2019-05-22 15:25:48 -07:00
Matt Bierner 150b3d98a3 Pick up new TS version 2019-05-22 15:25:48 -07:00
Matt Bierner 1db653c59e Simplify setting of preselect and sort text 2019-05-22 15:25:48 -07:00
Matt Bierner f250d19bb5 Use relative size for markdown code font size
Fixes #74125
2019-05-22 10:53:49 -07:00
Pine Wu 27819b3902 Path completion for <area href=""> and <input src="">. Fix #74129 2019-05-22 09:25:28 -07:00
Christof Marti 8076181795 Machine specific settings in devcontainer.json (fixes microsoft/vscode-remote-release#409) 2019-05-22 17:22:17 +02:00
Daniel Imms 573db67461
Merge pull request #74076 from hwhung0111/Fix-couple-typos
Fix couple typos
2019-05-22 07:44:07 -07:00
Martin Aeschlimann 90cfe12a63 Add vscode-test-resolver 2019-05-22 16:41:26 +02:00
Christof Marti a7c7bdd32a Add workspaceMount option (fixes microsoft/vscode-remote-release#41) 2019-05-22 09:41:43 +00:00
Christof Marti 80ec2bf29b Add workspaceFolder for single container (fixes microsoft/vscode-remote-release#101) 2019-05-22 11:05:40 +02:00
Howard Hung 0ddd999172 Fix typo: showSecutitySelectorForResource -> showSecuritySelectorForResource 2019-05-22 01:25:59 +08:00
Howard Hung 4582ec149c Fix typo: assigments -> assignments 2019-05-22 01:23:12 +08:00
Alex Ross 5a97b520c9 Add devContainer schema+validation 2019-05-21 14:21:42 +02:00
Khaja Nizamuddin 36e7f1871a Normalize tsconfig path (#73001)
Fixes #68812
2019-05-21 04:01:54 -07:00
Dan McCarthy 728c6a68ba Allow multi-line comment auto-closing for C++ files
Fixes #72801
2019-05-21 03:35:13 -07:00
Alex Ross b8b79709b7 Update C++ grammar to fix freeze 2019-05-21 11:19:36 +02:00
Matt Bierner ada4bddb8e Change documentation for TS importModuleSpecifier.auto
Fixes #52485

Based on code in d53efdf380/src/compiler/moduleSpecifiers.ts (L139)
2019-05-17 18:14:40 -07:00
Matt Bierner b1aad4b755 Supress potential null errors related to updated @types/node 2019-05-17 16:14:49 -07:00
Matt Bierner 12cf3eb0f8 Pick up latest TS@next 2019-05-17 13:39:55 -07:00
Logan Ramos ca9887459b
Delete vscode-typescript upon close of VS Code (#73801)
* Cleans up vs-typescript temp directoy upon VS code close

* Fixed typing errors preventing build from succeeding

* Moved deletion to the deactivate method. Added folders per extension host

* Removed yarn watch script used in testing
2019-05-17 18:55:31 +00:00
Mark Spanbroek 4f8311c149 Support negated .gitignore rules.
Fixes issues #69035 and #38112.
2019-05-17 14:28:18 +02:00
Matt Bierner 9bd21e3f2b Pick up latest ts@next 2019-05-16 10:38:29 -07:00
Matt Bierner a65adc6fda Use vscode.d.ts we ship instead of version from vscode package 2019-05-16 10:38:29 -07:00
Alex Ross 45db52ba6b Update grammars 2019-05-16 10:17:43 -07:00
Matt Bierner 9e4b65600d Pick up TS 3.5@next 2019-05-14 11:26:32 -07:00
Matt Bierner fd1ac7561b Fix TS 3.5 compile errors
Fixing errors related to https://github.com/microsoft/TypeScript/issues/31380
2019-05-13 18:00:52 -07:00
Benjamin Pasero 60ec264eab Merge branch 'master' into ben/hot-exit 2019-05-12 05:51:25 -07:00
Matt Bierner fb0d5150d9
Merge pull request #73049 from mjbvz/markdown-check-pending
Double check pending markdown version before updating preview
2019-05-10 16:26:26 -07:00
Matt Bierner 60cd4bd73b
Merge pull request #73132 from hwhung0111/Fix
Fix two typos
2019-05-10 16:25:49 -07:00