Commit graph

12756 commits

Author SHA1 Message Date
Johannes Rieken 7aec222831
joh/issue150862 (#153677)
* execute `workbench.view.scm` to reval SCM view after accepting merge

fixes https://github.com/microsoft/vscode/issues/150862

* only reveal viewlet when stage/accept was done
2022-06-29 12:20:49 +00:00
Johannes Rieken bd24f72d42
fix 153492 (#153667)
* enable "accept merge" for merge editor only
* close merge editor before staging file, only stage file when editor has been closed

fixes https://github.com/microsoft/vscode/issues/153492
2022-06-29 14:08:09 +02:00
Alex Ross 1634eaec83
Share link shows with untitled document (#153671)
Fixes #153544
2022-06-29 14:02:34 +02:00
Ladislau Szomoru a424998dfd
Git - Action button precedence (#153662) 2022-06-29 12:48:22 +02:00
Harald Kirschner 56cade24a3
Make the guided git.missing welcome view default (#149668) 2022-06-29 01:14:39 -07:00
Andrew Branch 1d16e313d6
[typescript-language-features] Add setting for autoImportFileExcludePatterns (#153160)
* Add setting for autoImportFileExcludePatterns

* Add TS 4.8 to message
2022-06-28 16:43:24 -07:00
Ladislau Szomoru e773c97507
Git - commit action button does not appear on the initial commit (#153605)
Fix #153507
2022-06-28 14:07:16 -07:00
Ladislau Szomoru adecb6b529
Git - fix secondary action localization (#153604)
Fix #153503
2022-06-28 20:46:03 +00:00
Bryan Lee fac840f22c Add support for angle bracket matching and colorization in Typescript 2022-06-29 01:59:31 +08:00
Ladislau Szomoru 75b3fd5253
Git - Remove icons from branch picker to address regression (#153433)
* Remove icons from branch picker to address regression

* Fix create branch from issue

* Pull request feedback
2022-06-28 14:12:08 +02:00
Matt Bierner e13feea6ae
Only compute diagnostics for opened md files (#153395)
* Only compute diagnostics for opened md files

For #152494

* Make tests stable for result ordering
2022-06-27 15:55:38 -07:00
Matt Bierner fc709e2d35
Use more standard values for scheme constants (#153367)
This drops the `:` from the scheme constants as it was easy to misuse this
2022-06-27 22:35:17 +02:00
Matt Bierner c16036705e
Initial contents for experimentation in typescript-language-features. (#153358)
Co-authored-by: Daniel Rosenwasser <Daniel.Rosenwasser@microsoft.com>
2022-06-27 12:53:24 -07:00
Matt Bierner da0f64881a
Dispose in markdown tests (#153345)
Updates the markdown tests to dispose of disposables created during the test
2022-06-27 15:52:59 -04:00
Matt Bierner 9051021473
Clarify label on source action (#153356)
Clairify label on source action

For https://github.com/microsoft/vscode-eslint/issues/1428
2022-06-27 19:01:41 +00:00
Johannes Rieken 9b1c6cb3ff
joh/issue152834 (#153298)
* update sample

* dynamically alias `ms-vscode.references-view` onto `vscode.references-view`
2022-06-27 15:26:49 +02:00
Johannes aae22c1605
rename setting to git.mergeEditor, no more experimental 2022-06-27 12:54:55 +02:00
Alex Ross ffe53e8d71
Add a Share menu and a share vscode.dev command (#152765)
* Add a share menu
Fixes #146309

* Add vscod.dev command in github extension

* Make share menu proposed

* Add share submenu into editor context

* Add proposed to editor share menu
2022-06-27 09:56:36 +02:00
Matt Bierner d1b4630a50
Fix Markdown tests on windows (#153212)
Fix windows tests
2022-06-25 18:59:25 +02:00
Matt Bierner 3b549009fe
Markdown path completions tests use mocked out fs (#153045)
* Markdown path completions tests use mocked out fs

This updates the path completion tests to stop depending on the actual fs and instead use `IMdWorkspace`

* Update remaining tests
2022-06-24 23:01:24 +00:00
Matt Bierner 64305a732e
Better handling of text/uri-list in built-in extensions (#153163)
- When splitting `text/uri-list`, we should split on `\n` to handle against spec versions of `text/uri-list`
- However when constructing a `text/uri-list`, we should use `\r\n` to align with the spec
2022-06-24 15:24:16 -07:00
Matt Bierner 7fd834b64f
Enable angle bracket path completions in markdown (#153158)
Fixes #152510
2022-06-24 15:04:40 -07:00
Matt Bierner 8acfd0ae60
Exclude empty links from md results (#153161)
These are technically valid links but we don't care about them since they take up no space
2022-06-24 21:42:00 +00:00
Matt Bierner 00ad6bc3d4
Markdown document links should reveal cell in notebook (#153147)
Fixes #141024
2022-06-24 15:49:15 -04:00
Ladislau Szomoru 45427b2346
Git - Add icons to branch picker (#153149)
Add icons to branch picker
2022-06-24 15:46:51 -04:00
Ulugbek Abdullaev af0309e325
add progress reporting for fetching repos (#153082)
Fixes #151922

Co-authored-by: Ulugbek <ulugbek.abdullaev@jetbrains.com>
2022-06-24 07:42:01 -07:00
Ladislau Szomoru 367eefd5f1
Git - commit action button (#153031) 2022-06-24 16:07:24 +02:00
Martin Aeschlimann b3cc787d78
[json] use language indicator for folding limit warnings (#153104)
* reduce number of json notifications

* use language indicator for folding limit warnings. For #142496

* add comment for resultLimit + 1
2022-06-24 15:01:02 +02:00
Johannes Rieken dfeb3e0050
joh/careful silverfish (#153089)
* don't show `openChange` command for merge editor

https://github.com/microsoft/vscode/issues/151125

* disable and not-place the conflicting merge-conflict navigation commands for the merge editor

https://github.com/microsoft/vscode/issues/153087

* disable (configurable) merge-conflict featues (code lens, decorations) when git is configured to use merge editor

https://github.com/microsoft/vscode/issues/153087
2022-06-24 09:33:06 +00:00
Ladislau Szomoru 4a72009c59
Git - Update git.terminalGitEditor default value (#153085)
Update git.terminalGitEditor default value
2022-06-24 10:54:24 +02:00
Sandeep Somavarapu c8ee8a25c5
adopt snippets with profile change (#153079)
* adopt snippets with profile change

* feedback
2022-06-24 10:10:22 +02:00
Benjamin Pasero 0dfbf42795
tests - skip all flaky webview tests (#153066) (#153067) 2022-06-23 22:51:58 -07:00
Matt Bierner d6497d3db1
Use ResourceMap (#153051)
Replaces `Set` of uris with a `ResourceMap`
2022-06-24 01:00:05 +00:00
Matt Bierner 9b7696cc9c
Fix notebook links to other docs in edited markdown cells (#153052)
Fixes #148199

This makes us resolve links in notebooks relative to the notebook document instead of relaitve to the cell
2022-06-23 20:55:08 -04:00
Matt Bierner ab7bc9fb0b
Split up MD link tests (#153048)
This splits the markdown link tests in two:

- Tests for detecting links in md files (`MdLinkComputer`)
- Tests for the actual vs code editor link provider

Also fixes a few cases splitting these tests up caught
2022-06-23 17:53:56 -07:00
Logan Ramos 4a7a6a597a
Update extension telemetry modules (#153057) 2022-06-24 00:53:23 +00:00
Alex Dima bae316c7ad
Merge remote-tracking branch 'origin/main' into alexd/worrying-bandicoot 2022-06-23 22:45:59 +02:00
Ladislau Szomoru 25cc6c0dd0
Git - Remove git.branchProtectionIndicator setting (#153020)
Remove git.branchProtectionIndicator setting
2022-06-23 21:56:54 +02:00
Matt Bierner 385bf5036b
Optimize NoLinkRanges lookup (#153010)
This switches us to use a map to check if a position exists inside the no link ranges
2022-06-23 11:38:13 -07:00
Benjamin Pasero a9cacc5d9a
skip flaky webview test (#150682) (#153006) 2022-06-23 17:43:04 +00:00
Daniel Imms 96ca51210f
Merge pull request #152967 from microsoft/tyriar/152966
Fix initial compilation problem matching in tsc-watch
2022-06-23 10:31:51 -07:00
Henning Dieterichs a2eccb109e
Merge pull request #152865 from microsoft/3wm 2022-06-23 17:35:24 +02:00
Daniel Imms e733f73119
Merge pull request #152973 from microsoft/tyriar/152780
Fix terminal selection contrast in solarized light
2022-06-23 08:28:13 -07:00
Ladislau Szomoru 1513f91ac2
Git - fix regression with creating an empty commit (#152974) 2022-06-23 16:06:06 +02:00
Raymond Zhao 70738ed4f2
Fix Emmet integration test warning, fixes #152827 (#152925) 2022-06-23 06:57:26 -07:00
Daniel Imms fc7ba026bf
Fix terminal selection contrast in solarized light
Fixes #152780
2022-06-23 06:05:06 -07:00
Daniel Imms f0cf1ea129
Fix initial compilation problem matching in tsc-watch
Fixes #152966
2022-06-23 04:48:25 -07:00
Matt Bierner 07144d22c4
Rename types in the markdown extension (#152905)
Renames in the markdown extension

This renames some types and splits up some files as part of an exploration towards a proper LSP. Changes:

- `SkinnyTextDocument` -> `ITextDocument`
- Moved `ITextDocument` to own file
- `MdWorkspaceContents` -> `IMdWorkspace`
2022-06-22 14:12:48 -07:00
Raymond Zhao 5f0a3888b4
Fix command encoding. Fixes #151364 (#152896) 2022-06-22 14:12:32 -07:00
Ladislau Szomoru b9484e8e16
SCM - Action button localization fix (#152903)
* Localization fix

* Fix typo in key
2022-06-22 19:27:27 +00:00
Miguel Solorio 901b2a0299
Add listActiveSelectionFocus color token (#152260)
* Add listActiveSelectionFocus color token (Refs #151577)

* Update colors

* Update color token name to `listFocusAndSelectionOutline` and re-order
2022-06-22 12:24:49 -07:00
Matt Bierner be1ee5d9f1
Re-validate md files when a linked to file is created or deleted (#152520) 2022-06-22 19:02:46 +00:00
Sandeep Somavarapu a1e1e307e3
introduce application config model (#152889)
* introduce application config model
- application configuration is active and used only in non default profiles
- read/write application scoped settings only from application layer and not from user layer
- extensions get application scoped values as global values
- settings editor does not show application scoped settings in non default profle
- added unit tests

* fix tests
2022-06-22 11:57:39 -07:00
Ladislau Szomoru df0fc08407
Git - Fix configuration service warnings (#152867)
Fix configuration service warnings
2022-06-22 15:58:57 +02:00
Matt Bierner 321423db2b
Standardize text/uri-list handling (#152756)
This creates a common set of functions for creating and parsing the `text/uri-list` mime type. As part of this, I also aligned us with the standard, which uses `\r\n` between lines instead of just `\n`
2022-06-22 13:53:37 +02:00
Ladislau Szomoru 08a46984d6
SCM - Add capability to disable the SCM action button (#152849)
Add capability to disable the SCM action button
2022-06-22 13:01:20 +02:00
Henning Dieterichs b673b4274d
Some 3wm cleanup. 2022-06-22 11:49:09 +02:00
Ladislau Szomoru 75362a6268
Git - add settings to control the branch protection indicator (#152469)
* Add settings to control the branch protection indicator

* Pull request feedback
2022-06-22 01:02:13 -07:00
Matt Bierner 5437480941
Enable md paste actions by default (#152810)
Turns on pasting of links for easier testing. However `editor.experimental.pasteActions.enabled` is still off by default so this won't be enabled by default
2022-06-22 08:19:52 +02:00
Benjamin Pasero 886c112cbd
Merge branch 'main' into alexd/worrying-bandicoot 2022-06-22 06:48:39 +02:00
Rich Chiodo f361c5b71d
Halve the number of executions to speed up test (#152768) 2022-06-22 06:24:21 +02:00
Matt Bierner c84655d123
Reduce recomputation of state in markdown extension (#152804)
* Reduce recomputation of state in markdown extension

- Use `getForDocument` more often to avoid refetching documents
- Debounce `MdTableOfContentsWatcher`. We don't want this to trigger on every keystroke :)

* Cache LinkDefinitionSet

* Add test file change

* Fix toc watcher for tests
2022-06-21 16:25:10 -07:00
Matt Bierner 389aa8a935
Fix MdDocumentInfoCache computing values twice (#152799)
* Fix MdDocumentInfoCache computing values twice

Fixes a race where values could be computed twice before being cached

* Remove only
2022-06-21 16:22:07 -07:00
Matt Bierner d5a75f2ceb
Add logging for MD language features (#152792)
This verbose logging will help track down inefficient calling patterns (such as recomputing stuff)
2022-06-21 14:18:36 -07:00
Matt Bierner bbe7b54cf4
Remove custom editor tests (#152777)
These tests are not actively being run or maintained. Removing them for now
2022-06-21 15:37:19 -04:00
Matt Bierner fa53aa6fec
Cleanup pass for md extension (#152760)
Clean up names in md extension
2022-06-21 15:36:32 -04:00
Henning Dieterichs 467eef9270
Sets titles to yours and theirs in the git extension & swaps order. Fixes #150853 2022-06-21 17:23:21 +02:00
Alex Dima 617abbf3a1
Merge remote-tracking branch 'origin/main' into alexd/worrying-bandicoot 2022-06-21 14:55:00 +02:00
Henning Dieterichs 50255ca91e
Merge pull request #152691 from microsoft/rzhao271/inline-completion-description 2022-06-21 14:24:40 +02:00
Matt Bierner 2249b171f4
Reduce number of times MD docs are re-tokenized (#152674)
This change reduces the number of times we retokenize a markdown file by doing the following:

- Use `MdTableOfContentsProvider` in more places
- Introduce a `IMarkdownParser` interface that lets us drop in a caching version of the tokenizer
2022-06-21 08:43:01 +02:00
Raymond Zhao 9ef049b089
Add note to description 2022-06-20 17:15:07 -07:00
Matt Bierner 369252a027
Skip diagnostics for non-open md files (#152687)
Currently we only show diagnostics for opened tabs. This means we shouldn't waste time computing diagnostics for these non open files
2022-06-20 16:39:01 -07:00
Matt Bierner 0bc3109761
Don't try parsing non-markdown files (#152661)
This fixes our references and rename provider to not try parsing non-markdown files as if they were markdown
2022-06-20 10:44:50 -07:00
Matt Bierner 4c72dedb4a
Optimize markdown workspace scanning (#152563)
* Optimize markdown workspace scanning

- Adds cache for markdown file
- Avoid reading non-markdown files from disk (when we expect markdown files)
- Use `range.contains(pos)` instead of `range.intersects(range)`

* Don't remove cached document on change

We only want to invalidate the cached document when it is first opened (since the cached version is the one from disk). Otherwise we can use the live version of the doc
2022-06-19 09:40:10 -07:00
Matt Bierner 5a175207de
Improve markdown link regexp (#152533)
* Improve markdown link regexp

This makes the markdown link regexp more readable and also combines the two regular expressions we were running

* Fixed backtracking
2022-06-19 06:25:54 +02:00
Benjamin Pasero 0203aabaa5
fix integration tests 2022-06-18 07:44:05 +02:00
Matt Bierner 78597fd026
Don't hardcode use of github slugifier (#152507)
Use `engine.slugifier` for this instead
2022-06-17 17:25:54 -04:00
Matt Bierner dea813ff7c
Add table of contents provider abstraction (#152504)
We currently re-compute the same table of contents for markdown files multiple times. This is because multiple language features all need table of contents

With this change, we introduce a new `TableOfContentsProvider` which maintains a cache of the table of contents per file. This provider is then passed into every caller that needs a toc
2022-06-17 18:20:02 +00:00
Martin Aeschlimann 083cf01e10
json indent pattern: handle escape characters (#152475) 2022-06-17 14:31:03 +00:00
Alex Ross 4e53b01452
Pull in cpp grammar fixes (#152449) 2022-06-17 11:17:09 +00:00
Martin Aeschlimann 630809a1ea
html: observe insertFinalNewline (#152446) 2022-06-17 12:38:36 +02:00
Benjamin Pasero 0662ad271a
tests - skip flake (#152145) (#152442) 2022-06-17 11:56:58 +02:00
Matt Bierner 623f55f437
Refactor markdown language features (#152402)
(sorry for the size of this PR)

This change cleans up the markdown language features by making the following changes:

- Use `registerXSupport` public functions to register these
- Expose the slugifier the `MarkdownEngine` uses. You never want to use a different one if you already have a markdown engine
- Sort of clean up names. I'd introduced a bunch of confusing names while iterating in this space. What I'm working towards:

    - `Computer` — Stateless thing that computer data
    - `Provider` — Potentially stateful thing that provides data (which may be cached)
    - `VsCodeProvider` — The actual implementation of the various vscode language features (which should only be used by VS Code and in tests, not shared with other features)
- Introduce `MdLinkProvider` to avoid recomputing links for a given document. Also use this to hide more internals of link computation
2022-06-17 10:25:52 +02:00
Matt Bierner afe316c08c
Add diagnostic manager enablement change tests (#152392)
* Add test for MD diagnostic manager config changes

Add a simple test the enabling/disable diagnostics should make the diagnostic manager recompute diagnostics

* Add `.get`
2022-06-16 15:53:19 -07:00
Matt Bierner cb5fa75d11
Clean up markdown diagnostic tests (#152374)
* Clean up markdown diagnostic tests

This splits the diagnostic compute tests from the test for the diagnostic manager

* Mark internal field as private
2022-06-16 22:33:11 +02:00
Matt Bierner 3114ee690b
Split out VS Code reference provider from markdown reference provider (#152369)
This change renames the main markdown reference provider class to `MdReferenceComputer` and then uses this to implement a `vscode.ReferenceProvider`

This more cleanly splits the VS Code part of the logic from the general reference calculation stuff other providers consume
2022-06-16 15:47:48 -04:00
Matt Bierner 6c252851f2
Revalidate linked files on header change (#152366)
Fixes #150945

With this change, when the headers in a file change, we should also try to revalidate all files that link to it
2022-06-16 18:14:01 +00:00
Ladislau Szomoru 88731bf6d6
Git - enable using the editor as the git commit input (#152158) 2022-06-16 16:27:35 +02:00
Ladislau Szomoru 46d9d7acda
Git - branch protection (#152218)
Co-authored-by: João Moreno <joao.moreno@microsoft.com>
2022-06-16 16:25:03 +02:00
Matt Bierner 8559324b09
Use more optional chaining in TS extension (#152271)
Use optional chaining in TS extension

Also removes `prefer-const` since this is now enabled globally
2022-06-16 05:33:58 +02:00
Matt Bierner 4fc5d76213
Fix ranges and validation setting for MD own path + header links (#152270)
* Fix ranges and validation setting for MD own path + header links

Previously for a `file.md`, links to headers in that file that use paths, such as `[link](./file.md#some-header)` were validated using `markdown.experimental.validate.fragmentLinks.enabled`

This is confusing as that setting was only meant to be used for links such as`[link](#some-header`). It also resulted in the diagnostic having the incorrect range

This change instead makes these links be validated by `markdown.experimental.validate.fileLinks.markdownFragmentLinks`

* Fix compile
2022-06-15 20:02:41 -07:00
Matt Bierner a765abcf07
Adopt ResourceMap for MD diagnostics (#152264)
Adopt ResourceMap

Switches to use `ResourceMap` instead of our own implementation
2022-06-15 15:43:09 -07:00
Matt Bierner a289e64e09
Switch to finalized TS protocol types (#152259) 2022-06-15 15:37:21 -07:00
Matt Bierner 8fb977f2c1
Make jsx: react the default for implicit js/ts projects (#152256)
Make jsx: react the default

Fixes #152150

This fixes imports of `react` getting removed with TS 4.7 in implicit projects
2022-06-15 21:41:52 +00:00
Matt Bierner f17b33faf2
Use .?method() in more places (#152112)
Switches simple patterns like:

```ts
if (some.thing) {
    some.thing.method();
}
```

to:

```ts
some.thing?.method()
```

This is more concise and avoids having to repeat the `some.thing` part
2022-06-15 16:28:31 +00:00
Johannes Rieken dfc37187b0
rename ref-viewlet's publisher back to vscode (#152213) 2022-06-15 08:58:11 -07:00
Matt Bierner 354e1a0595
Finalize data file reading API (#152127)
Fixes #147481
Also reverts #150963 since the `kind` field is not being finalized
2022-06-15 07:56:02 -07:00
Johannes Rieken 9e21aff42e
joh/ts transpile (#152199)
transpile-only tasks for client and extensions

* extract transpile into its own file
* add transpile-client task, polish transpiler
* add transpile-extensions, improve transpile logic
* move declaration of "const enum" above it usage so that it can be used with const-enum-inlining
* (ugly) make d.ts transpilation configurable because it is needed for extensions but a problem for client
* hack my way around so that `getOwnEmitOutputFilePath` is reusable by our transpile
* honor `noEmit` flag
2022-06-15 16:52:48 +02:00
Martin Aeschlimann 6bd36f5295
update seti (#152157) 2022-06-15 16:13:17 +02:00
Ladislau Szomoru 03be93691c
SourceControlInputBox API finalization (#152171) 2022-06-15 15:14:28 +02:00
Benjamin Pasero 68433fb7fd
tests - remote invalid proposed API (#152181) 2022-06-15 14:34:56 +02:00
Priyank Rastogi 9e1f017b8c
Add latex to markdown embedded languages (#151732) 2022-06-15 00:01:37 +00:00
Matt Bierner 00273730e8
Split markdown linkComputer from linkProvider (#152124)
Instead of passing around a full `vscode.DocumentLinkProvider`, we should pass just the more minimal interface that consumers need
2022-06-14 15:34:05 -07:00
Ladislau Szomoru c5318659ec
Git - add support for SSH Uri (#152051)
* Add support for SSH Uri

* Update extensions/git/src/protocolHandler.ts

Co-authored-by: João Moreno <joao.moreno@microsoft.com>

Co-authored-by: João Moreno <joao.moreno@microsoft.com>
2022-06-14 20:41:54 +02:00
Matt Bierner 00574df08a
Remove extra path field in FileLinksData (#152004)
Remove extra `path` field

This field is no longer needed after we switched to use `ResourceMap` vs `Map`

Also inlines the `FileLinksData` type def
2022-06-14 08:01:53 -07:00
Ladislau Szomoru 5bf63b6e37
Git - fix close all diff editors command (#152059)
Fix #150315
2022-06-14 13:21:43 +00:00
Alex Ross 037af4beaf
Update fsharp grammar (#152048) 2022-06-14 14:41:04 +02:00
Matt Bierner a658c04b0a
Adjust md external header link diagnostic range (#152001)
Fixes #151998

Makes errors for invalid headers on file links only cover the fragment range instead of the entire link range
2022-06-14 09:39:49 +02:00
Martin Aeschlimann c46555d9c8
Tests for configuration editing completion providers (#151953)
tests for configuration editing completion providers
2022-06-14 09:08:27 +02:00
Raymond Zhao 76f65c4521
Emmet inline completions (#151559)
Affects #139247

This PR changes Emmet to use inline completions when suggesting completions.
It also provides a boolean setting so that users can opt out.
This PR does not change the "Wrap with Abbreviation" behaviour in Emmet.

Co-authored-by: Henning Dieterichs <notify.henning.dieterichs@live.de>
2022-06-14 08:39:28 +02:00
Shi Chen 90e6cb4a40 support more external use in API
Signed-off-by: Shi Chen <chenshi@microsoft.com>
2022-06-14 10:03:55 +08:00
Matt Bierner 1a07fd15d7
Clarify markdown validate settings (#151997)
Clairify markdown validate settings

Fixes #150949

- Rename headerLinks -> fragmentLinks
- Add new `fileLink.markdownFragmentsLinks` to validate the headers on fragment links (inherits the default setting value from `fragmentLinks`)
2022-06-13 17:06:28 -07:00
Matt Bierner 8b0b3ee72e
Remove notebook editor decoration type (#151574)
* Remove the notebookEditorDecorationType API proposal

Fixes #146838

* Remove all the infastructure around the now removed notebookEditorDecorationType api
2022-06-13 13:51:10 -07:00
Matt Bierner 7284c3e4c1
Use classes for drop/paste edit types (#151980) 2022-06-13 13:10:07 -07:00
Johannes Rieken 82f7daa016
Revert "rename references-view publisher to vscode so that NLS works, fixes https://github.com/microsoft/vscode/issues/142168 (#151696)" (#151969)
This reverts commit 66f8ae48b0.
2022-06-13 17:47:31 +00:00
Martin Aeschlimann 375681e51e
json: use default word pattern (#151754) 2022-06-13 14:36:42 +02:00
Sandeep Somavarapu 22fe16d3e5
adopt merge editor in settings sync
- use merge editor for conflicts
- expose base resource in resource syncrhonziers
- add baseResourceScheme context to contribute Accept Merge button per feature
- support old way of handling conflicts behind an internal setting
2022-06-12 15:49:45 +02:00
Megan Rogge cf94d8370d
use const instead of literal (#151742)
use const
2022-06-10 13:56:43 +00:00
Alex Ross bd1abe08c3
Update C grammar locations (#151733)
Fixes #150288
2022-06-10 13:55:11 +00:00
Babak K. Shandiz 766743629d
Polish PR template picker (#151415)
* 🔨 Set ignoreFocusOut to true on PR template selection

Signed-off-by: Babak K. Shandiz <babak.k.shandiz@gmail.com>

* 🔨 Translate PR template paths to relative in quick pick list

Signed-off-by: Babak K. Shandiz <babak.k.shandiz@gmail.com>

* 💄 Shorten line length

Signed-off-by: Babak K. Shandiz <babak.k.shandiz@gmail.com>

* ⚗️ Update tests with latest required args

Signed-off-by: Babak K. Shandiz <babak.k.shandiz@gmail.com>

* ⚗️ Update GitHub extension unit tests

Signed-off-by: Babak K. Shandiz <babak.k.shandiz@gmail.com>

Co-authored-by: João Moreno <joao.moreno@microsoft.com>
2022-06-10 12:54:37 +00:00
Johannes Rieken 66f8ae48b0
rename references-view publisher to vscode so that NLS works, fixes https://github.com/microsoft/vscode/issues/142168 (#151696) 2022-06-10 09:39:34 +00:00
Johannes ed9ed45794
Merge branch 'main' into joh/voluminous-lobster 2022-06-10 09:07:30 +02:00
Rob Lourens d5e7687940
Fix updating outputs of another cell using a NotebookCellExecution (#151573)
Fixes #151468
2022-06-09 20:27:36 -07:00
Megan Rogge 4222eb73aa
allow excluding npm install script from the npm scripts view (#151647)
fix #149924
2022-06-09 17:15:43 -07:00
Matt Bierner f7e12a3a92
Use optional method calls in more places (#151634)
This replaces code like:

```ts
if (foo.bar) {
    foo.bar(cat);
}
```

with:

```ts
foo.bar?.(cat)
```

Which is more concise but has the same meaning
2022-06-09 15:04:28 -07:00
Babak K. Shandiz a8de8e2112
[markdown] Ignore brackets inside link text (#151610)
* 🔨 Allow texts in bracket pairs inside link titles; [text](link)

Signed-off-by: GitHub <noreply@github.com>

* 🔨 Allow texts in bracket pairs inside link titles; [text](<link>)

Signed-off-by: GitHub <noreply@github.com>

* ⚗️ Add tests to verify  link titles can include bracket pairs

Signed-off-by: GitHub <noreply@github.com>
2022-06-09 11:48:50 -07:00
Johannes 43c31079ee
manual fixing of prefer-const violations 2022-06-09 10:19:56 +02:00
Johannes 3622010b64
Merge branch 'main' into joh/voluminous-lobster 2022-06-09 09:08:20 +02:00
Matt Bierner d7c90c2b2b
Update text editor drop proposal (#151552)
This updates the text editor drop proposal (#142990). This change introduces `DocumentDropEdit` which removes the need for `SnippetTextEdit`. This interface may also be extended in the future with additional metadata
2022-06-08 17:44:28 -04:00
Matt Bierner 48cfaa2187
Fix rename of paths in markdown reference link definitions (#151545)
Fixes #151117
2022-06-08 19:20:17 +00:00
Matt Bierner 370dfd5fee
Iterate on paste edit provider api (#151477)
* Iterate on paste edit provider api

For #30066

- Pass all selections to paste providers. For #151326
- Introduce `DocumentPasteEdit` as return type. This new type uses an `insertText` that is applied to every paste location (for multicursor), plus an optional additional edit
-  Add `DocumentPasteProviderMetadata`. This lets extensions tell us which types of mimetypes they are interested in, letting us avoid round trips if no extensions care about the pasted data

* Correctly batch insertText
2022-06-08 15:06:55 -04:00
Andrew Branch 5a32c3ff17
[typescript-language-features] Pass through all typescript.unstable.* settings (#151472)
Pass through all `typescript.unstable.*` settings
2022-06-08 11:53:06 -07:00
jram 6d91b80dd8
[npm extension] exclude top level npm_modules when detecting npm scripts in workspaces (#150205)
* Check if current folder is a path that should be excluded

* update regex to be an exact match
2022-06-08 10:46:54 -07:00
Rob Lourens c38afc571d
Switch deprecated editor.document -> editor.notebook (#151530) 2022-06-08 09:35:00 -07:00
Johannes 0656d21d11
auto-fixed prefer-const violation 2022-06-08 17:49:21 +02:00
Ladislau Szomoru 6f5fc17622
Git - use editor as commit message input (#151491) 2022-06-08 15:45:27 +02:00
余腾靖 d9f97a4e81
fix jsx text foreground in tomorrow-night theme (#151478) 2022-06-08 14:15:32 +02:00
Matt Bierner 1327d1eb50
Adopt ResourceMap in more places (#151475)
This changes switches to use the new `ResourceMap` type in more places in the markdown extension where we need to have a map/set with uris as the key
2022-06-08 08:34:06 +02:00
Matt Bierner 60a68d666d
Add resourceMap helper for markdown extension (#151471)
This change introduces a `ResoruceMap` map type that is essentially `Map<vscode.Uri, T>`

It also fixes a potential race condition with `MdWorkspaceCache` where two quick calls would both trigger init
2022-06-07 18:00:10 -07:00
Matt Bierner 9545af80f6
Fix markdown link detection for links with titles (#151459)
Fixes #151458
2022-06-07 20:58:29 +00:00
Matt Bierner 9f3cafba7d
Update grammars (#151383)
Updates the markdown and JS/TS grammars
2022-06-07 09:37:14 -07:00
Megan Rogge 7c22caad55
Use I prefix for task interfaces (#151350) 2022-06-07 09:27:44 -07:00
Rich Chiodo b658848c9b Fix test to work 2022-06-06 17:04:26 -07:00
Rich Chiodo 416ad2cbc6 Can't get tests to run with local bits, try submitting 2022-06-06 16:48:56 -07:00
Rich Chiodo 8f345dea8e Add unit test 2022-06-06 16:14:14 -07:00
Justin Chen bcc7ffae3e
bugfix on markdown underlines, addressing part of issue #136073 (#151178)
Co-authored-by: Justin Chen <t-justinchen@microsoft.com>
Co-authored-by: Matt Bierner <matb@microsoft.com>
2022-06-06 17:35:41 +00:00
Tyler James Leonhardt db60eaa2ee
Enable locale picker in web (#150496)
* Enable locale picker in web

* fix the test by getting the locale from the loader config
2022-06-06 10:34:00 -07:00
Matt Bierner 4ebbf52928
Pick up TS 4.7.3 (#151246)
Includes minor fixes
2022-06-03 20:08:35 +00:00
Ladislau Szomoru d99d645c8d
Git - Switch to using the remoteName context key (#151212)
Switch to using the remoteName context key
2022-06-03 09:43:42 -07:00
Martin Aeschlimann 1805df1a11
Validation not working in settings JSON (#151202)
JSON/HTML/CSS update services
2022-06-03 12:45:45 +02:00
Ladislau Szomoru 5f823f0deb
Git - Add minItems/maxItems for branch dictionary setting (#151132)
Add minItems/maxItems for branch dictionary setting
2022-06-02 16:48:25 +00:00
Logan Ramos 70647a2ffd
Fix #150041 (#151108) 2022-06-02 11:02:26 -04:00
Ladislau Szomoru 59fa71999e
Git - branch name generation setting feedback (#151106) 2022-06-02 14:27:06 +00:00
Ladislau Szomoru 4bd12af7f6
Git log level polish (#151095) 2022-06-02 09:10:18 -04:00
Isidor Nikolic 96c9311e18
fix github push error handler regex (#151072)
Co-Authored-by: joaomoreno
Closes: #148568
Closes: #143083
Closes: #148326
2022-06-02 08:02:56 +00:00
Tyler James Leonhardt 15253f1528
add a comment for session.scopes (#151050) 2022-06-01 20:02:05 -07:00
Joyce Er b9b2862341
Align auth scopes (#151045) 2022-06-01 16:50:05 -07:00
Matt Bierner e44f4ba886
Add experimental tag to experimental extension settings (#151031)
This makes a few more extension settings with the `experimental` tag so that show up if you search `@tag:experimental`
2022-06-01 16:32:58 -07:00
Matt Bierner 9302343e8e
Also ignore star checkboxes (#151029)
Fixes #150672

This makes our md link detection also ignore checkboxes like `* [x]` instead of just `- [x]`
2022-06-01 21:23:29 +00:00
Tyler James Leonhardt 0715386207
Return scope array that was given to us so that account icon number goes away (#151027) 2022-06-01 14:16:24 -07:00
Matt Bierner 7477efd87e
Better message for markdown reference links (#151018)
Fixes #151017

Also improves the diagnostic message for invalid reference links to make it clear we are talking about a missing link definition
2022-06-01 19:01:36 +00:00
Josh Spicer d9c21dc901
better approach for codespaces permissions dev container schema (#150909) 2022-06-01 15:49:31 +02:00
Ladislau Szomoru 185d3ee2a1
Fix #150725 (#150956) 2022-06-01 11:36:22 +02:00
Matt Bierner e6fff5ecff
Don't parse checkboxes are links in markdown (#150914)
Fixes #150672
2022-05-31 14:57:32 -07:00
Solomon Kinard 3c6fdedd0e
Quick spelling update (#150759)
https://github.com/Sertion/vscode-gitblame/pull/123
2022-05-31 21:06:38 +00:00
David Dossett 903f9903f4
Fix #150595 (#150880) 2022-05-31 10:22:49 -07:00
Josh Spicer b6a8f9fc7f
Add customizations.codespaces.repositories.permissions (#150555) 2022-05-30 17:55:18 +02:00
Alex Ross e08e3ff8b9
Update css grammar (#150724) 2022-05-30 17:42:17 +02:00
William Killerud 869d707bef
Add onEnterRule for SassDoc documentation (fix #150598) (#150599)
Co-authored-by: Martin Aeschlimann <martinae@microsoft.com>
2022-05-30 15:43:12 +02:00
Matt Bierner 6428d0fc7d
Support TS's includeInlayVariableTypeHintsWhenTypeMatchesName setting (#150489)
From https://github.com/microsoft/TypeScript/pull/48529

Let users control is variable type inlay hints are suppresed if the variable name matches the type name, such as:

```ts
const range = new Range();
```
2022-05-26 16:00:04 -07:00
Ladislau Szomoru 9bfd3c1d72
Revert "A full editor can be used as git commit message editor (#95266)" (#150487)
This reverts commit 97f8e66d74.
2022-05-26 14:06:23 -07:00
Matt Bierner e262c88fb1
Fix process.platform for picomatch (#150430)
The `picomatch` library currently checks `process.platform`. This check fails on web, which causes the markdown extension to not load

To fix this, I'm replacing `process.platform` with the string`'web'`
2022-05-26 01:28:46 +00:00
Ladislau Szomoru 149e2b7674
Fix #149831 (#150276) 2022-05-25 20:51:08 +02:00
Henning Dieterichs ac312975c6
Merge branch 'main' into 3wm
# Conflicts:
#	build/lib/i18n.resources.json
2022-05-25 18:12:25 +02:00
Rich Chiodo e9620973dd
Merge pull request #150300 from rchiodo/rchiodo/iw_output_scrolling
Fix interactive window to scroll as output resizes
2022-05-25 09:01:58 -07:00
Johannes ce01702bbe
make git "accept from merge editor" command save the document and close the merge editor (uses heuristic to identify merge editor tab) 2022-05-25 17:43:02 +02:00
Jonas Dellinger 97f8e66d74
A full editor can be used as git commit message editor (#95266)
Co-authored-by: Ladislau Szomoru <3372902+lszomoru@users.noreply.github.com>
2022-05-25 17:16:10 +02:00
Johannes 38931b6a3d
add git.experimental.mergeEditor setting to enable/disable merge editor for conflicting files 2022-05-25 17:08:15 +02:00
Matt Bierner e4f7f6a9da
Add PasteEditProvider (#107283)
For #30066

This adds a new `documentPaste` api proposal that lets extensions hook into copy and paste.

This can be used to do things such as:

- Create link when pasting an image
- Bring along imports when copy and pasting code
2022-05-25 12:27:58 +02:00
Matt Bierner a6724dcc10
Bump default JS target for scripts in html (#150240)
* Bump default JS target for scripts in html

For JS/TS files, we target ES2020 by default. However in html files we're still stuck targetting es6

This change aligns the two

* use es2020.full (includes dom), fix web, avoid searching in node_modules

Co-authored-by: Martin Aeschlimann <martinae@microsoft.com>
2022-05-25 11:50:44 +02:00
Logan Ramos 3a8b1fe03e
More telemetry comments (#150303)
* Add owners to all telemetry events

* More comments

* Add comments to non typescript GDPR annotation

* Another comment
2022-05-24 16:00:55 -07:00
Matt Bierner bf7ec548f5
Adopt TS 4.7 final (#150313)
Picks up the offical TS 4.7 release
2022-05-24 20:19:04 +00:00
Rich Chiodo dae2490dbb Merge remote-tracking branch 'upstream/main' into rchiodo/iw_output_scrolling 2022-05-24 11:15:35 -07:00
Rich Chiodo b79d02db5c Add test for scrolling 2022-05-24 11:01:51 -07:00
Rich Chiodo 9322fd543d Fix test to pass 2022-05-24 10:13:04 -07:00
Ladislau Szomoru 3e83fa95b0
Fix #150266 (#150267) 2022-05-24 15:06:34 +02:00
Johannes c87131372a
Merge branch 'main' into 3wm 2022-05-24 14:09:17 +02:00
Rich Chiodo 5d8bd23756 Add a test 2022-05-23 17:25:00 -07:00
Matt Bierner 1c7991f1e8
Markdown ignoreLink should apply to paths in header links (#150223)
This change lets you ignore all links to a given file, even if those links include a header. For example: `[text](/path/to/file#some-header)` can be ignored using `/path/to/file`
2022-05-23 17:07:15 -07:00
Matt Bierner 45304da73d
Finalize NotebookEditor api proposal (#149767)
* Finalize NotebookEditor api proposal

Fixes #149271

This finalizes most parts of the NotebookEditor api proposal. I haven't removed the proposal entirely as there are still a few parts being left behind:

- The deprecated properties/functions
- A few contribution points such as `notebook/cell/executePrimary`

* remove extra quote
2022-05-23 23:27:17 +00:00
Matt Bierner b8420578fd
Add additional allowed tags in untrusted notebook markdown (#150228)
This adds some extra allowed tags when rendering markdown in notebooks. Additions are:

```
  "b",

    "br",

    "caption",

    "center",

    "col",

    "colgroup",

    "details",

    "em",

    "font",

    "i",

    "kbd",

    "sub",

    "summary",

    "sup",

    "table",

    "tbody",

    "tfoot",

    "thead",

    "td",

    "th",

    "tr",

    "tt",

    "u",

    "video"
```
2022-05-23 22:30:42 +00:00
Martin Aeschlimann f1b392ed55 polish names 2022-05-22 20:03:30 +02:00
Martin Aeschlimann 49944b1501 DiagnosticsSupport for json and html 2022-05-22 20:03:30 +02:00
Martin Aeschlimann aacb387ef1 implement diagnostic pull 2022-05-22 20:03:30 +02:00
Rob Lourens 3649387f3f
Bump php grammar, fix #142824, fix #116103 (#150067) 2022-05-21 00:18:25 +00:00
Matt Bierner 96cae45ba9
Rename skipPaths to ignoreLinks (#150064)
This change renames the experimental skipPaths setting to ignoreLinks. This setting applies to all types of links, and can also be used to ignore links to headers
2022-05-20 22:54:21 +00:00
Esteban Dalel R e76ad21903
Fix typo (#150042) 2022-05-20 19:06:35 +00:00
Matt Bierner 993c36c920
Fix markdown ext errors accessing disposed webview (#149960)
When reloading windows that need to restore a markdown preview, sometimes I'll see an error when the markdown preview tries accessing a disposed of webview. This seems to be cause caused by `provideTextDocumentContent`, where we end up disposing of the webview before an `await` resumes execution
2022-05-20 09:17:57 -07:00
Matt Bierner 0ee05bb617
Pick up latest markdown-it-katex (#149978)
Fixes #149682
2022-05-19 21:54:08 +00:00
Matt Bierner a00e138040
Changing dependency syntax for markdown-it-katex (#149962)
Fixes #149291
2022-05-19 18:25:45 +00:00
Martin Aeschlimann e783fdc25e
css/html/json update to lsp 8 (#148715) 2022-05-19 12:48:53 +02:00
Matt Bierner 0d55d50173
Expose outputItem in notebook markdown eve (#149870)
For #121256

This change adds the current `ouputItem` to the notebook markdown renderer's environment

Renders that extend our markdown renderer can use this to access output item metadata for example
2022-05-18 16:14:32 -07:00
Matt Bierner 27903c28aa
Remove unfinished test (#149864)
Mistakenly checked this in
2022-05-18 16:01:28 -07:00
Rob Lourens a49e21c63b
Fix notebook output double spacing (#149842)
Fixes #149563
2022-05-18 15:37:22 -07:00
Matt Bierner daf0d5e551
Add skipPaths option for markdown link validation (#149859)
The new `markdown.experimental.validate.fileLinks.skipPaths` setting lets you specify a list of paths (as globs) that should not be validation

This is useful since markdown is used in a range of environments, and sometimes you may need to link to paths that don't exist on disk but will exist on deployment

A few other changes here:

- Adds a quick fix that adds paths to `skipPaths`
- Rename existing settings to use the `.enabled` prefix
2022-05-18 14:37:08 -07:00
Roj 64e09597f1
Handle multiline commit messages when creating PR (#149426)
- This makes the body of the pull request non-empty when the commit message consists more than one line.
- The GitHub web client fills the body the same way, too, when you create a pull request.
- Some commit messages consist more than one line, like this one, which is giving more detail about the commit, and can be used as a shortcut to not write the same text when opening a pull request and on GitHub.
- Without these changes, the pull request title will be messed up if the commit message is similar to this.

Co-authored-by: João Moreno <joao.moreno@microsoft.com>
2022-05-18 11:13:32 -07:00
Matt Bierner 6bd7605ae1
Enable strictNullChecks for implicit projects (#149844)
Mistakenly enabled checkJS instead of strictNullChecks
2022-05-18 10:47:37 -07:00
Matt Bierner ff975bc211
Update list of enabled APIs (#149838)
We use `notebookWorkspaceEdit` even though it's not enforced
2022-05-18 10:39:40 -07:00
Martin Aeschlimann ba5691170f update vscode-grammar-updater 2022-05-18 11:58:51 +02:00
Matt Bierner c9c5990e38
Adopt notebookWorkspaceEdit proposal internally (#149778)
This switches us to use the new `notebookWorkspaceEdit` proposal instead of `notebookEditorEdit`
2022-05-17 18:51:25 -07:00
Matt Bierner 1c7ab35761
Rename to DocumentOnDropEditProvider (#149730)
This change renames `DocumentOnDropProvider` to `DocumentOnDropEditProvider`. This new name aligns with the existing `DocumentFormattingEditProvider`
2022-05-17 09:26:54 -07:00
Martin Aeschlimann caa463191f
add telemetry event comments and owner (#149070) 2022-05-17 15:20:02 +02:00
Johannes 7a51178618
git should open merge editor with detail and description (tag and commit-hash) 2022-05-17 13:46:42 +02:00
Ladislau Szomoru 38de430140
Add scope for settings (#149696) 2022-05-17 12:41:45 +02:00
David Dossett 5f3e9c120a
Update custom menu styles (#149187)
* Initial updates

* Add border radius

* Address PR feedback

* Fix typo

* Update shadow blur

* Update LR padding and use description foreground for shortcuts

* Typo

* Fix separator padding/margin

* fix jumpy items in hc themes

* Fix shadow and border radius

* Use opacity for keybinding for better color blend

* Update min width and container padding T/B

* Revert actionbar margin and remove unnecessary menu css file

* Ensure menus respect 0 horizontal margin rule

* set bg/fg color on menu container

* better fix for jumpy menu items

* use outline instead of border

* clean up dead css in style.css
fix opacity for separators in menus

* bring back vertical action bar margins

* Remove old CSS import

Co-authored-by: SteVen Batten <sbatten@microsoft.com>
2022-05-16 18:40:33 -07:00
Matt Bierner c2b064538b
Don't detect links in markdown code blocks (#149680)
Fixes #149678
2022-05-16 17:35:16 -07:00
Matt Bierner d71f6ec0d9
Update markdown diagnostics when linked files change (#149672)
For #146303

This PR updates the markdown diagnostic reporter to watch linked to files. If one of these linked to files is created or deleted, we recompute the diagnostics for all markdown files that linked to it
2022-05-16 17:30:39 -07:00
Matt Bierner 101f6fb31d
Enable enabling js/ts.implicitProjectConfig.checkJs by default (#149660)
Fixes #149659
2022-05-16 11:52:27 -07:00
Matt Bierner dd9dca9825
Fixing some html tags detected as autolinks for diagnostics (#149511)
For markdown such as `<scope:tag>b</scope:tag>`, we currently detect `<scope:tag>` as an uri (an autolink) and then try validating it as a file path

This change doesn't fix `<scope:tag>` being detected as a link (which is actually correct if there isn't closing html), but does fix the us trying to validate it by marking the uri as external
2022-05-16 12:19:29 +02:00
Johannes 3aac77dc5d
Merge branch 'main' into 3wm 2022-05-16 09:53:59 +02:00
Ladislau Szomoru 42ec698ec9
Git - Add trace level telemetry to repository discovery (#149469)
* Add trace level telemetry to help investigate repository scan issues

* Remove empty line

* Switch back to the localized warning message
2022-05-13 16:31:28 +02:00
Ladislau Szomoru a28eab6873
Git - branch protection (#149360)
* Initial implementation of branch protection

* Pull request feedback

* Update extensions/git/src/commands.ts

Co-authored-by: João Moreno <joao.moreno@microsoft.com>
2022-05-13 02:15:01 -07:00
Martin Aeschlimann f572583d9a fix word range in XML. For #149318 2022-05-13 10:22:33 +02:00
John Murray 479abbf95e
Add "Open Containing Folder" etc to file context menu in Git SCM view (#149150)
* Add "Open Containing Folder" etc to file context menu in Git SCM view

Caption is "Reveal in Finder" on macOS and "Reveal in File Explorer" on Windows.
This resolves #137828

* Use multiple decorators on a method to simplify code
2022-05-13 09:48:36 +02:00
Matt Bierner 113287ccc3
Don't treat escaped markdown reference links as links (#149407)
Fixes #149406

Make sure that escaping the leading `[` of a reference link means it is not considered a link

- Picks up new grammar with fixes
- Updates our document link provider to also not consider these as link
2022-05-12 19:35:36 -07:00
Matt Bierner a075453e55
Clean up the markdown document link provider tests (#149405)
- Use `joinLines` instead of
- Inline document text
- Always use `example.com`
- Move issue numbers into test titles
- Clean up text
2022-05-12 16:01:51 -07:00
Matt Bierner 5485b8e215
Include " and '/' as puctuators for slugify (#149404)
We already include `'` and `/` makes sense to treat as a puctuator too for titles such as `# do A / B`
2022-05-12 15:56:25 -07:00
Matt Bierner 4923404e98
Don't include leading @ in JS/TS completion word range (#149400)
Fixes #149385
2022-05-12 15:22:18 -07:00
Matt Bierner 67014adc30
Remove the textDocumentNotebook API proposal (#149277)
* Remove the textDocumentNotebook API proposal

All consumers have now been migrated off of this proposal, so it is safe to remove from our code

* Remove deprecated api usage from test
2022-05-12 08:59:11 +02:00
Matt Bierner 93d046904e
Pick up TS 4.7 RC (#149301)
Also picks up new TS nightly version for building VS Code
2022-05-11 17:34:23 -07:00
Ladislau Szomoru 2a9f19d36f
Engineering - create pull request pipeline (#149171) 2022-05-11 03:08:54 -07:00
Johannes abd3e66bac
use git-fs to read base, ours, and theirs 2022-05-11 12:04:04 +02:00
Johannes 286333fffb
Merge branch 'main' into 3wm 2022-05-11 09:44:08 +02:00
Joyce Er c5da5332d5
git: validate URI for clone command (#149180)
Co-authored-by: Ladislau Szomoru <3372902+lszomoru@users.noreply.github.com>
2022-05-10 11:32:02 -07:00
Matt Bierner 9e42783398
Don't repeat markdown link validation (#149169)
We currently validate each link in a markdown file individually. This means that if there are multiple links to the same file, we check if that file exists multiple times

With this change, we instead will check that the file exists once and then use this to add diagnostics for all the links to it. This is done by introducing a new `FileLinkMap` which maps file paths to links within that file
2022-05-10 09:14:40 -07:00
Remco Haszing a9fc85ff47
Specify tsconfig.tsbuildinfo is json (#149065) 2022-05-10 08:59:40 -07:00
Ladislau Szomoru b44e3caa96
Git - branch prefix + random name generation (#149069) 2022-05-10 15:14:52 +00:00
Johannes 983fc7a6b6
connect floating button to a menu and contribute to that from git 2022-05-10 16:14:28 +02:00
Johannes 5971d31881
(prototype) use _open.mergeEditor from git extension for files under conflict 2022-05-10 15:09:35 +02:00
Matt Bierner 3ba66bf24f
Use explicit empty authority for JS/TS resources (#149125)
Fixes #149123

10c8c1c2cc made sure we sync over the authority of in-memory resources over to TS Server. However if a resource does not have an authority, this resulted in a url with `scheme//path` instead of `scheme/authority/path`

TS would then normalize the uri to `scheme/path`, resulting in us considering this a new resource

This fix adds an explicit empty authority that we use in this case instead
2022-05-09 15:52:52 -07:00
Matt Bierner d850919250
Adds cancellation to md diagnostic computer (#149122)
This tracks inflight diagnostic computation and tries to cancel them if a new request comes in for the same document (usually because the document has changed or has been closed)
2022-05-09 15:42:32 -07:00
Matt Bierner a6dd083a7e
Use / for md paths, even on windows (#149120)
Fixes #149010
2022-05-09 15:22:44 -07:00
Tyler James Leonhardt 73ccdb7675
Inform the user the actual branch name that will be used in the branchName inputbox (#148964) 2022-05-09 18:03:17 +02:00
Matt Bierner e6f42433cf
Include @ in JS/TS word pattern (#148962)
Fixes #148874

`@` is used both for decorators and in imports
2022-05-06 21:10:45 +00:00
Matt Bierner 10c8c1c2cc
Include authority in TS in-memory scheme (#148940)
For #146853

Make sure we include the uri authority when serializing and then restoring the file paths we send to TSServer (similarly to how we already handle the uri scheme)
2022-05-06 11:48:53 -07:00
Tyler James Leonhardt 847629239b
add owner and comment to some telemetry events (#148752) 2022-05-05 17:30:51 -04:00
Matt Bierner c9240437a5
Pull in latest markdown-it-katex (#148845)
Fixes #147043
2022-05-05 21:10:52 +00:00
Matt Bierner 04ecb1d42f
Normalize markdown links in notebooks (#148827)
Fixes #146352

This ensures we pass links in markdown cells through the same normalization function we use to assign headers ids
2022-05-05 18:33:38 +00:00
Logan Ramos b16dc5f6ef
Upgrade tas client modules (#148796)
* Upgrade tas client modules

* Fix root package being wrong version

Co-authored-by: SteVen Batten <6561887+sbatten@users.noreply.github.com>
2022-05-05 13:37:33 -04:00
Quan Zhuo 05043332f8
Add newpromise snippets in javascript (#148755) 2022-05-05 09:38:07 -07:00