Commit Graph

12330 Commits (f572583d9a50dd3fa18be3984d98b4a26d51c408)

Author SHA1 Message Date
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
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
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
Ladislau Szomoru ce88518440
Git - logging improvements (#148656) 2022-05-05 12:52:26 +00:00
Johannes c13d581bce
move gulp-tsb into the `build/lib` remove as dependency 2022-05-05 11:35:33 +02:00
Matt Bierner c08941b87c
Ignore bulkedit previews for markdown references / renames (#148744)
Makes sure we don't pick up the fake documents created by the bulkedit-preview
2022-05-04 16:03:35 -07:00
Matt Bierner 9dab79d9c8
Fix markdown web extensions (#148739)
We're currently importing a file from `test/util`, which is not supported on web. Move the noop cancellation token into the `util` folder instead
2022-05-04 14:02:38 -07:00
Matt Bierner 93fd393a0e
Add API proposal for reading files in data transfer (#148596)
* Add experimental support for reading files in data transfer

Adds a new `DataTransfer.asFile` method which lets you get file objects from a `DataTransfer`. This is currently only hooked up for drop into editors.

A few follow ups:

- Right now the file data is also read eagerly when it is transfered to the extension host. Before shipping this we would make this happen lazily instead
- The drop into editor api does not provide a nice way to do anything with the dropped files.

    We should at least support returning a `WorkspaceEdit`. However `WorkspaceEdit` only supports text files, so we would also need to add an API that lets it deal with binary files

* Make `asFile` return a value instead of a promise

`asFile().data()` already returns a promise so `asFile` doesn't also need to be async

* Trying resolving data files transfer lazily

* Cleaning up code for lazy drop

* Remove testing code

* Remove unneeded buffer serialize

* 💄
2022-05-04 12:59:27 -07:00
Johannes Rieken b32bd476eb
Merge pull request #148636 from microsoft/joh/welcomeReferencesViewlet 2022-05-04 11:38:41 +02:00
Ladislau Szomoru 18022bdaff
Update Dockerfile fixture/result (#148688) 2022-05-04 10:48:01 +02:00
Johannes 146556e1ae
keep old publisher for now 2022-05-04 08:39:42 +02:00
Joyce Er 9556854c8f
Bump vscode-tas-client for CG (#148673) 2022-05-03 17:37:34 -07:00
Andrew Branch 076bb03cb4
No commit characters for string completions (#148597) 2022-05-03 13:36:20 -07:00
Matt Bierner a763e90731
Update md grammar 2022-05-03 13:32:15 -07:00
Johannes bbf389005c
add nls module and externalize human readable strings 2022-05-03 17:38:28 +02:00
Johannes a86c6ffae5
extract language strings from package.json 2022-05-03 17:22:17 +02:00
Johannes d211238037
align `package.json` properties, esp publisher. 2022-05-03 16:56:14 +02:00
Johannes d3e6eb992b
move references-viewlet into `extensions/`-folder 2022-05-03 16:46:13 +02:00
Jason Williams e19f09713b
Enable globs on tasks otherwise fallback to default - fixes #88106 (#141230)
* use glob on tasks otherwise fallback to default

* add support for test commands also

* try to find one globbed task otherwise fallback to defaults

* - get relativePath (but fallback to absolute if outside of workspace)
- bring back json schema

* Refactor and reduce duplicate code

* remove glob, make isDefault a string or boolean

* update taskConfig

* - rebase
- type updates
- splitPerGroupType should check explicitly for true on isDefault
- hygiene check

* Remove task glob from API

* Task group DTO updates

* Make sure globs run ahead of default task if there's multiple globs matching

* Style and name changes

* More naming and code re-use

* Glob doesn't work when only 1 glob match

Co-authored-by: Alex Ross <alros@microsoft.com>
2022-05-03 09:56:24 +02:00
Matt Bierner eba8ef0547
Add diagnostics for markdown links (#148578)
* Initial work on md link diagnostics

* Adding settings to enable/disable validation

* Add delay for recomputing diagnostics

* 💄

* Split test on diagnostics compute vs management

* Validate on file open

* Remove dianostics on file close

* Allow paths to folders

* Add validation configuration option
2022-05-02 16:06:00 -07:00
Matt Bierner 17ee4c4265
Pick up TS 4.7 for bundling with VS Code 2022-05-02 15:50:42 -07:00
Matt Bierner e3e4bfacc3
Remove blank 2022-05-02 15:50:41 -07:00
Jean Pierre 44e644467d
Enable go to definition for markdown links (#148017)
* Enable go to definition for markdown links

* Add markdown definitionProvider tests
2022-05-02 10:07:40 -07:00
AlbertHilb 7e6b007dd5
Pass one shared `macros` object into every call to katex renderer (#148006)
* Pass one shared `macros` object into every call to katex
renderer.

* Reset the `macros` object at each new
re-rendering.
2022-05-02 09:45:06 -07:00
Yuki Hattori 82ad6afd36
Fixes microsoft/vscode#147936 (#148503)
By changing output esbuild setting for Markdown preview scripts to iife,
prevents global namespace pollution and reduces possibility of breaking
the preview by contributions from other extensions.
2022-05-02 09:33:51 -07:00
João Moreno af684a4906
fixes #148414 (#148418) 2022-05-02 07:14:26 -07:00
susiwen8 3854c3fa8e
fix: close `create fork` message will create fork (#148438) 2022-05-02 05:49:00 -07:00
Alex Ross f3b1b53443
Update grammars 2022-05-02 11:20:10 +02:00
Benjamin Pasero c6bd448948
debt - bring `@types/mocha` up to date with version 9.x 2022-05-02 08:30:27 +02:00