João Moreno
f18b29e132
fix(scm): 🐛 do not await git repo status, just give the repo straight up to scm
...
on repo discovery, the git extension would run `git status` and wait for that to finish before handing out the repository to scm. this was problematic since the scm default repo selection depends on repos being discovered in a timely fashion. there's no reason not to just hand out the repo to scm and let `git status` finish afterwards
Closes : #120089
Closes : #113803
2021-11-09 15:11:16 +01:00
Johannes Rieken
9254a8cd27
move vscode.d.ts and vscode.proposed.d.ts into src/vscode-dts
-folder, https://github.com/microsoft/vscode/issues/131165
2021-11-09 15:00:03 +01:00
João Moreno
5dfa71a9e8
fix(git): 🐛 git api commands should be registered as contributions
...
Closes : #111658
2021-11-09 13:24:28 +01:00
Matt Bierner
b614fb5db8
Fix highlighting of dollar amount at start of line in md files
...
Fixes #136535
2021-11-08 17:53:52 -08:00
Matt Bierner
0eee604f01
Allow non-word character after inline math code block
...
Fixes #136584
2021-11-08 17:43:46 -08:00
Matt Bierner
d18adf8669
Pick up TS 4.5 RC
...
For #136704
2021-11-08 14:34:21 -08:00
Matt Bierner
8b7aa3c278
Use editor font for markdown codeblocks
...
For #136693
2021-11-08 14:11:59 -08:00
Matt Bierner
5e6d0e1cbb
Initial support for syntax highlighting md code blocks in notebooks
...
For #136693
2021-11-08 12:30:13 -08:00
Logan Ramos
00de6a5f2f
Update telemetry module
2021-11-08 10:00:44 -05:00
Martin Aeschlimann
7d78ec2e1d
Merge pull request #136543 from jzyrobert/html_correct_command
...
Update html-language-features documentation and tasks to yarn
2021-11-08 11:05:00 +01:00
Tyler Leonhardt
66b1668b66
wait if there's a refresh in progress
2021-11-05 17:01:21 -07:00
Matt Bierner
d1f2d0a729
Tweak markdown notebook header sizes
...
Fixes #105900
2021-11-05 15:57:30 -07:00
Rob Lourens
3df135c388
Fix jupyter version number, #136544
2021-11-05 14:50:10 -07:00
Rob Lourens
29c5f2d394
Show an error when opening an old unsupported jupyter format
...
Fix #136544
2021-11-05 14:06:39 -07:00
Matt Bierner
69ca0f29fd
Enable linkify in notebook markdown
...
Fixes #136545
2021-11-05 13:52:53 -07:00
Robert Jin
8d78e70f78
Update html-language-features documentation and tasks to yarn
2021-11-05 20:15:01 +00:00
Ladislau Szomoru
4297ff8195
Revert fix for #26425
2021-11-05 15:53:32 +01:00
Alex Ross
3d3e502e72
Allow ts files for gulp tasks
...
Fixes #136418
2021-11-05 10:57:20 +01:00
Joyce Er
05a2f2809e
Don't show 'Sync Changes' button if auto sync or auto push are enabled ( #134408 )
2021-11-05 09:18:08 +01:00
Matt Bierner
06fe6b7d2b
Bump browser TS version
2021-11-04 17:30:01 -07:00
Matt Bierner
1051cf402e
Unmark preview as experimental
...
Fixes #84520
Seems to be working well enough now to officially support
2021-11-04 17:30:00 -07:00
Matt Bierner
c11a9ce097
Better update of line numbers
2021-11-04 14:34:49 -07:00
Martin Aeschlimann
2e35efaaef
Merge pull request #136375 from adaex/update-seti-ui
...
Update to latest seti-ui icon theme
2021-11-04 09:53:04 +01:00
Matt Bierner
516bc19e99
Fix md preview reverting to original version when switching away
2021-11-03 20:54:21 -07:00
Matt Bierner
4d50e586ec
Improve morphing for vscode-docs
2021-11-03 20:54:20 -07:00
Rob Lourens
a14ebdfec4
Remove inputCollapsed and outputCollapsed metadata, make them view properties
...
Fix #125274
2021-11-03 17:22:07 -07:00
Alex Dima
a704a69394
Enforce that source code uses a small subset of Unicode
2021-11-03 23:34:41 +01:00
Alex Dima
3247c31f6a
Replace Right Single Quotation Mark with Single Quote
2021-11-03 23:34:40 +01:00
Kaan Genç
1aa9a712d1
Allow extensions to disable built-in markdown preview button ( #136273 )
...
* Allow extensions to disable built-in markdown preview button
Adds a flag for the "Open Preview to the Side" button displayed for markdown files. This makes it possible for extensions to hide this button when desired by setting the flag to true. For example, extensions can now use the following line to disable the preview button:
```js
vscode.commands.executeCommand("setContext", "hasCustomMarkdownView", true);
```
* update keyword for disabling default markdown preview
2021-11-03 14:49:44 -07:00
Matt Bierner
ce9c6361dc
Remove typescript-vscode-sh-plugin
...
Fixes #136389
2021-11-03 14:48:48 -07:00
Matt Bierner
a046cfb481
Revert "Remove image stabilizer code"
...
This reverts commit 69e8e3c091263a2e00592cca06bf1dba96b70c7e.
2021-11-03 14:48:48 -07:00
Matt Bierner
1f3f74f4ea
Clear this._fileWatchersBySrc
2021-11-03 14:48:47 -07:00
Matt Bierner
86c446baee
Don't update icon path so much
...
We only need to update this on creation, never every time something changes
2021-11-03 14:48:47 -07:00
Matt Bierner
9c2b239e2e
Remove image stabilizer code
...
Should not be required with incremental dom updates
2021-11-03 14:48:46 -07:00
Matt Bierner
359cd4330d
clean up onDidChangeActiveTextEditor
...
Also fixes potential bug if line === 0
2021-11-03 14:48:46 -07:00
Matt Bierner
97e646c0da
Update preview if text document is reopened
...
Fixes #135568
2021-11-03 14:48:45 -07:00
Aex
30d286606d
Update to latest seti-ui icon theme
2021-11-03 18:03:27 +00:00
Alex Ross
9efc116de0
Update grammars
2021-11-02 15:32:34 +01:00
Alex Ross
61cd6437a0
Fix timing bug for back-to-back CustomExecution tasks
...
Fixes #131926
2021-11-02 14:01:34 +01:00
Ladislau Szomoru
827639c994
Fix #136275
2021-11-02 12:01:05 +01:00
Matt Bierner
7d46b77c31
Disable fuzzy links in md preview
...
Fixes #136198
2021-11-01 17:41:40 -07:00
Matt Bierner
fbc1f7df91
Fire event when md content is updated
...
For #136255
2021-11-01 17:41:39 -07:00
Matt Bierner
8f672cac62
Use morphdom to reduce number of full page updates to md preview
...
This should help improve scroll sync and also reduce the number of times we go out to the network if images are in the preview
2021-11-01 15:33:00 -07:00
Tyler Leonhardt
e56b43a744
await storing of token data
2021-11-01 10:06:07 -07:00
Matt Bierner
f8b42b4a55
Update md grammar
2021-11-01 09:34:45 -07:00
Matt Bierner
a9bc0553f7
Support definition links with spaces
...
For #136073
2021-11-01 09:23:03 -07:00
Johannes Rieken
13f383439f
no test.only, fyi @bpasero
2021-11-01 15:14:36 +01:00
Jan Kretschmer
b074018c3e
sketch for virtual document support for
2021-11-01 14:50:32 +01:00
Benjamin Pasero
9375113a83
Merge pull request #136207 from microsoft/ben/nov
...
November debt
2021-11-01 08:17:13 +01:00
Matt Bierner
2d7585d9e0
Remove old experimental protocol
...
These options are now part of the normal TS protocol
2021-10-29 13:09:54 -07:00
Matt Bierner
1fbdd010dc
Pick up TS 4.5 nightly for insiders
2021-10-29 13:09:20 -07:00
Matt Bierner
b34c834443
Remove duplicated language-config file
...
This should already be listed under typescript-basics
2021-10-29 13:07:15 -07:00
Matt Bierner
ffd414feeb
Include <
as surroundingPairs in JS
...
Fixes #136127
These are already listed in TS
2021-10-29 13:03:15 -07:00
Matt Bierner
bc4e05c002
Add js version of setting too
2021-10-28 14:18:04 -07:00
Gabriela Araujo Britto
d2aa181e66
add new 'includeCompletionsWithClasMemberSnippets' option ( #136045 )
2021-10-28 14:07:11 -07:00
Alex Dima
174db5eb99
Fixes #134662 : Configure strings and comments embedded in template expressions to be identified as strings and comments
2021-10-28 17:46:56 +02:00
Benjamin Pasero
6ed67dd61e
editors - return undefined
from openEditor
when operation cancelled ( fix #134786 )
2021-10-28 09:23:08 +02:00
Tyler Leonhardt
5c0e664fd3
ensure show() hide() show() hide() emits two didHide events. Fixes #135747
2021-10-27 15:23:53 -07:00
Martin Aeschlimann
5e4bc951cd
Hitting return after </button> element crashes VS Code (Insiders). Fixes #135806
2021-10-26 11:55:51 +02:00
Stephen Sigwart
dbea36b57a
Search editor go to location improvements ( #135227 )
...
* Search editor go to location improvements
- Added option to go to and select the match
- Fixed cursor placement with initial whitespace
* Remove #128927 changes
* Fix up seprartor logic
Co-authored-by: Jackson Kearl <jakearl@microsoft.com>
2021-10-25 21:20:36 -07:00
Martin Aeschlimann
f3a14f6514
[css/html/json] update services
2021-10-25 20:20:44 +02:00
Tyler Leonhardt
4d496f61bc
remove keytar fallback in keychain and add a ton more logging to microsoft auth. ref #133201
2021-10-25 11:16:37 -07:00
Logan Ramos
286606327d
Fix #135692
2021-10-25 10:28:51 -04:00
Benjamin Pasero
9a3bcbe4f7
editors - cleanup wording for editors/files with unsaved changes
2021-10-25 15:18:43 +02:00
Henning Dieterichs
ba5517b911
Fixes #135151 by not colorizing brackets or rendering line scopes in xml.
2021-10-25 09:52:59 +02:00
Alex Dima
8358d0ca67
Define 2500 chars max limit for javascript, not typescript ( #135573 )
2021-10-22 14:22:20 +02:00
Martin Aeschlimann
7fefb2f942
[html] auto-indent not working for tags with attribute values containing /. Fixes #111932
2021-10-21 15:51:49 +02:00
Martin Aeschlimann
c2f44d476b
Merge pull request #135484 from adaex/update-seti-ui
...
Update to latest seti-ui icon theme
2021-10-21 13:05:17 +02:00
Joyce Er
b97ab80c18
Fix typo in PAT auth flow error message
2021-10-20 16:37:02 -07:00
Connor Peet
f883017206
debug: make serverReadyAction multi-session aware
...
Fixes #109171
2021-10-20 16:03:02 -07:00
Matt Bierner
17dc026824
Fix a few more cases of math block highlighting
...
Fixes #135254
2021-10-20 15:56:28 -07:00
Matt Bierner
c38d441d37
Make sure inline math is marked as markdown-math
...
For https://github.com/microsoft/vscode/issues/134893#issuecomment-947669488
2021-10-20 14:22:44 -07:00
Matt Bierner
3dc7b03ff9
Allow leading and trailing math on same line as math block
...
Fixes #134893
2021-10-20 14:17:46 -07:00
Matt Bierner
04f51add61
Disable markdown math inside of raw code blocks
...
For #135254
2021-10-20 13:29:28 -07:00
Logan Ramos
514ad0acf0
Fix #135422
2021-10-20 15:18:46 -04:00
Martin Aeschlimann
510b49e1da
New snippets file has language mode of "JSON" rather than "JSON with comments". Fixes #120190 . Fixes #119538
2021-10-20 19:17:07 +02:00
Raymond Zhao
fc504f3af3
Fix when clauses for Emmet commands
2021-10-20 09:02:28 -07:00
Aex
56deb2ac17
Update to latest seti-ui icon theme
2021-10-20 15:32:24 +00:00
Henning Dieterichs
792df9da2f
Fixes #135125 by not colorizing any bracket pairs in html.
2021-10-20 16:08:11 +02:00
Matt Bierner
2ae9352ae3
Try to avoid opening text documents just to process diagnostics
...
To handle JS/TS diagnostics, we currently use the language mode of an open text document. This should always be correct, but also causes us to open text documents that we don't need to
This change instead tries using the file extension first before falling back to use the text document. Using the file extension is not strictly correct since users can setup weird file associations, but should be ok for the vast majority of use cases
Investigated as part of #101885
2021-10-19 17:54:23 -07:00
Matt Bierner
8fc2a8d2ce
Fix comment
2021-10-19 17:54:23 -07:00
Raymond Zhao
7f8d465069
Fixes #134149
...
- Add more Emmet onCommand activation points
- Only let Emmet commands show up in files
2021-10-19 16:07:27 -07:00
Tabitha Larkin
fba6ce545e
Add colorized bracket highlighting colours ( #132494 )
2021-10-19 05:48:39 -07:00
Matt Bierner
7bc28074bf
Exclude tr from markdown hover
...
Fixes #135278
Fixes #135037
2021-10-18 17:13:44 -07:00
Martin Aeschlimann
b53c8e1d99
Merge pull request #135188 from JaredNeil/jaredneil-fix-bazel-icon
...
Update seti-ui for Bazel icon fix
2021-10-18 14:28:38 +02:00
Martin Aeschlimann
a946f9e643
fix for #134873
2021-10-15 23:57:54 +02:00
Damian Cyntler
a12e9cd91e
Fix zoom-out on an image [ #131080 ] ( #134706 )
2021-10-15 14:38:38 -07:00
Jared Neil
65f21ad59f
Update seti-ui for Bazel icon fix
2021-10-15 15:07:04 -06:00
Martin Aeschlimann
a78567110c
html: polish reading of settings
2021-10-15 20:11:06 +02:00
Martin Aeschlimann
8d70e049dd
Merge pull request #129284 from ssigwart/noQuotes
...
Add doNotAddAttributeQuotes setting to disable automatic quotes
2021-10-15 19:56:02 +02:00
Martin Aeschlimann
b1c3c96901
Merge pull request #135050 from sean-mcmanus/patch-1
...
Update package.json
2021-10-15 19:47:33 +02:00
Raymond Zhao
5e2605f0e3
Bump emmet-helper
2021-10-15 10:41:13 -07:00
Megan Rogge
5350eaa205
skip failing test
2021-10-15 09:41:50 -07:00
Benjamin Pasero
1afe238fed
comment out failing test ( #135157 )
2021-10-15 13:40:33 +02:00
Matt Bierner
e125508f86
Update colorization test results
...
Turns out the results differ if you run the tests in VS Code insiders VS from the cli :(
2021-10-14 17:05:08 -07:00
Matt Bierner
41df0673f8
Allow spaces in katex commands
...
Fixes #128411
2021-10-14 16:00:00 -07:00
Matt Bierner
6ae9e9d86c
Add more specific check for lib files on web
2021-10-14 10:10:55 -07:00
Matt Bierner
b7c340f119
Simplify import path
2021-10-14 09:32:35 -07:00
Matt Bierner
c986aef642
Remove .only and fix fragment used when opening file
...
Keeping the fragment causes a duplicated file to be opened
2021-10-13 19:33:56 -07:00
Matt Bierner
830987eac3
Refactor document link opening
...
- Extract out of command
- Try to preserve uri instead of converting to path
- Better handle case with absolute file path when there is no workspace
2021-10-13 19:27:35 -07:00
Matt Bierner
d1f72b5420
Try to clairify how md links are resolved
...
For #101203
The current logic ends up tossing out the uri scheme and other important info when opening md links. This PR tries to avoid that
2021-10-13 19:00:19 -07:00
Sean McManus
ae1bfc57d1
Update package.json
...
%html.format.wrapAttributesIndentSize.desc% contains markdown text.
2021-10-13 16:48:42 -07:00
Tyler Leonhardt
a4a3e4e8b0
remove async executor of Promise ref #134873
2021-10-13 09:09:24 -07:00
Henning Dieterichs
1a2749d798
Fixes #132802 by making maxTokenizationLineLength configurable per language and reducing the default for TypeScript.
2021-10-13 16:19:54 +02:00
Matt Bierner
8b2b819f55
Update test case
2021-10-12 17:29:53 -07:00
Matt Bierner
5d60bcd241
Fix null type error
2021-10-12 17:02:06 -07:00
Lemmingh
d3ceb35bec
Add source map for every possible element in the Markdown preview ( #134799 )
...
* Update markdown-it and type definitions
* Refresh the source map mechanism in `markdownEngine.ts`
2021-10-12 16:25:56 -07:00
Rob Lourens
cee08d43d0
Avoid async promise executor
...
#134873
2021-10-12 15:04:11 -07:00
Matt Bierner
fc7a9d1309
Add missing change
2021-10-12 12:18:34 -07:00
Matt Bierner
d8091da23c
Simplify _onDidChangeInlayHints firing
2021-10-12 12:11:34 -07:00
Don Jayamanne
79a3586d6c
Add cell_ids for ipynb with nbformat >= 4.5 ( #134835 )
2021-10-12 09:35:05 -07:00
Alexandru Dima
d89101fcaa
Merge pull request #134856 from yume-chan/patch-1
...
Fix a typo in npm extension package.json
2021-10-12 17:32:46 +02:00
Johannes Rieken
7283f5cb7c
fix https://github.com/microsoft/vscode/issues/130057
2021-10-12 13:12:11 +02:00
Benjamin Pasero
3cda269c80
ESlint: enable no-async-promise-executor ( #134873 )
2021-10-12 10:50:44 +02:00
Simon Chan
c6e447b350
Fix a typo in npm extension package.json
2021-10-12 12:27:25 +08:00
Matt Bierner
8b688986b7
Enable rendering of bare math blocks in notebooks
...
Fixes #133390
Adds support for math blocks that just start with `\begin` instead of being wrapped in dollar signs
2021-10-11 19:08:44 -07:00
Raymond Zhao
68013971ff
Add language mapping as param to getEmmetMode
...
Fixes #127996
2021-10-11 15:38:12 -07:00
Connor Peet
9176be11bc
debug: don't active js-debug unnecessarily
...
Fixes https://github.com/microsoft/vscode-js-debug/issues/1106
2021-10-11 15:28:26 -07:00
Matt Bierner
f47ae9e324
Disable dynamic routing when experimental project wide diagnostics are enabled
...
Fixes #132121
We don't track project loading state properly when project wide diagnostics are enable. Just disable it for now since this is an experimental feature
2021-10-11 14:50:28 -07:00
João Moreno
a390f81744
no hack is better hack
...
Co-authored-by: Tyler <TylerLeonhardt@users.noreply.github.com>
2021-10-11 18:02:36 +02:00
Johannes Rieken
5dcc08052c
change back onDidChaonDidChangeInlayHints, ignore events for model for which a request is currently pending, https://github.com/microsoft/vscode/issues/13043
2021-10-11 10:32:00 +02:00
Raymond Zhao
8919d390eb
Fix #130868
2021-10-08 14:14:14 -07:00
Jim Griesmer
845af8a5c3
Enlarge small markdown text size - trivial change ( #134550 )
...
* Enlarge small markdown text size - trivial change
* Didn't intend to change h1 line height
* Simplify font-size story for h1, h2, h3 and p
2021-10-08 12:29:39 -07:00
Matt Bierner
14f72608c0
Remove definition list snippet
...
#134611
This is non-standard md and was incorrectly added. Instead the snippet should be included by whatever extension introduces support for this syntax
2021-10-08 12:24:20 -07:00
Tyler Leonhardt
5364c56768
include insiders.vscode in nocors
2021-10-08 11:32:28 -07:00
Raymond Zhao
1fff41e37c
Use actual value
...
Fixes #128110
2021-10-08 09:02:18 -07:00
Martin Aeschlimann
7aaa2474eb
JSON Schema validation https failed without details. Fixes #127769
2021-10-08 12:03:03 +02:00
Matt Bierner
0dae77d06e
Enable markdown links with line numbers to non-md files
...
Fixes #125320
2021-10-07 18:35:09 -07:00
Matt Bierner
ecae847b95
Fix navigate in untitled files
2021-10-07 18:14:16 -07:00
Matt Bierner
d8507236f1
Rewrite logic for opening markdown document links
...
Fixes #133823
This rewrites openDocumentLink to use `stat` to check if files exists before trying to open them. This lets us avoid showing extra error popups while trying to open resources
2021-10-07 18:10:05 -07:00
Matt Bierner
710e0d4d9c
Add mjs/cjs and mts/cts to path based language mode checks
2021-10-07 17:47:17 -07:00
Matt Bierner
62d631a165
Add serializer for simple browser
...
Fixes #119057
2021-10-07 16:49:33 -07:00
Raymond Zhao
f542a0e83a
Update emmet-helper dependency
...
Fixes #117519
Fixes #131966
2021-10-07 16:30:17 -07:00
Raymond Zhao
c359130500
Change emmet.extensionsPath to machine-overridable
...
Affects #117519
2021-10-07 16:30:15 -07:00
Gerrit Birkeland
3629e68250
Fix rendering of @example
comment blocks ( #132821 )
2021-10-07 16:22:36 -07:00
Raymond Zhao
f25fd50e22
Add > to Emmet expand suggestions
...
Fixes #120566
2021-10-07 08:34:51 -07:00
Matt Bierner
91132cab87
Use | undefined
instead of ?
for some readonly properties on objects that we control
...
For #124362
This includes:
- Event objects
- Context objects passed to providers
- Managed objects such as `TextEditor`
2021-10-06 19:08:22 -07:00
Raymond Zhao
665e0adaec
Add update tag placeholder.
...
Fixes #128110
2021-10-06 16:41:17 -07:00
Raymond Zhao
59bcc6a556
Ignore Emmet test workspace
...
Fixes #134112
2021-10-06 14:49:01 -07:00
Raymond Zhao
982e1af4ac
Change various Emmet settings to be resource scope
...
Affects #117519
2021-10-06 14:38:45 -07:00
Matt Bierner
8a600adb5c
Register .cts and .mts as TypeScript files
...
For https://github.com/microsoft/TypeScript/pull/44501
2021-10-06 14:33:36 -07:00
Raymond Zhao
7ff3cc58d6
Add specific activation languages
...
Fixes #133194
2021-10-06 12:22:37 -07:00
Raymond Zhao
748a753aa0
Don't show completion on comment lines
...
Fixes #117888
2021-10-06 11:24:32 -07:00
Matt Bierner
78c627f1c9
Trigger inlay hints for all visible JS/TS editors when one changes
...
Fixes #130430
2021-10-05 12:20:42 -07:00
Miguel Solorio
b074a8af98
Fix #86965
2021-10-04 15:27:25 -07:00
Matt Bierner
eb5ec1b324
Use warning for partial mode language status item
2021-10-04 09:19:47 -07:00
Logan Rasmussen
35ea6c0cf5
Remove angle brackets when checking the scheme ( #133419 )
...
* Remove angle brackets when checking the scheme
This only removes the brackets during the scheme check if the initial link provided actually has angle brackets.
* Move angle bracket logic to document link file
Change to use replace instead of match for easier reading
2021-10-04 08:31:52 -07:00
Matt Bierner
9990843822
Disable non syntax errors in files that don't have semantic capabilities ( #134175 )
...
If we're on a host that supports semantic checking, but in a file that doesn't support semantic errors, we currently don't want to report semantic errors since these will likely complain about imports and other undefined symols
2021-10-04 08:11:16 -07:00
Johannes Rieken
f8e953fdff
adopt API breakage of onDidChangeInlayHints
2021-10-04 12:59:25 +02:00
Logan Ramos
a4342f3add
Bump telemetry module
2021-10-01 16:52:56 -04:00