Commit Graph

124641 Commits

Author SHA1 Message Date
Tyler James Leonhardt
c4d1cc2e67 Fix GitHub account ids being numbers (#228045)
For a long time the account id wasn't handled correctly. It should be a string, but the API returns a number. This ensures it's a string and does some migration logic.
2024-09-10 04:39:37 +02:00
Ladislau Szomoru
d8af24e15d SCM - wire-up the onDidChangeHistoryItemRefs event (#228042)
Wire-up the event
2024-09-09 16:51:31 -07:00
John Murray
dd9e7ee344 Add actions to preview editor tab's hover (#226023)
* WIP: show hover with actions on preview editor tab

* Refactor to support `"workbench.editor.showTabs": "single"`

* Manage hover delegates by index to handle closing correctly

* Add some dispose calls

* Experiment with a quieter hover

* Fix problems caused by commented-out code

* Safer use of editor title in hover markdown

* Subtler link to preview mode doc

* Use gear icon and go oto settings editor

* Make clickable hover easier to mouse onto

* Remove linkHandler experiment

* Use simplified hover on single-tab mode too

* Simplify now that we aren't adding statusbar commands to hovers

* Reinstate lost blank line

---------

Co-authored-by: Benjamin Christopher Simmonds <44439583+benibenj@users.noreply.github.com>
2024-09-09 21:33:55 +00:00
Ladislau Szomoru
76fb6affe4 SCM Graph - 💄 more observable clean-up (#228021)
* SCM Graph - clean-up graph rendering

* Fix regression with repository picker
2024-09-09 14:32:42 -07:00
Michael Lively
6092f24583 WordHighlighter: fix queries against disposed models + blur logic (#227607)
* wordHighlighter: fix queries against disposed models (use URIs)

* add blur logic + clear old workerReq logic from when highlighting was only singleFile

* imports

* dispose models that we ref for the occurrence request

* WHOOPS don't do that, it destroys every editor hah
2024-09-09 11:39:52 -07:00
Aiday Marlen Kyzy
dcc7af186a Increase the max width of hover to a higher value (#227941)
increasing the width to a higher value
2024-09-09 19:18:38 +02:00
dependabot[bot]
3a89990b2c Bump yargs-parser and yargs (#227800)
Bumps [yargs-parser](https://github.com/yargs/yargs-parser) and [yargs](https://github.com/yargs/yargs). These dependencies needed to be updated together.

Updates `yargs-parser` from 13.1.1 to 21.1.1
- [Release notes](https://github.com/yargs/yargs-parser/releases)
- [Changelog](https://github.com/yargs/yargs-parser/blob/main/CHANGELOG.md)
- [Commits](https://github.com/yargs/yargs-parser/compare/v13.1.1...yargs-parser-v21.1.1)

Updates `yargs` from 7.1.1 to 17.7.2
- [Release notes](https://github.com/yargs/yargs/releases)
- [Changelog](https://github.com/yargs/yargs/blob/main/CHANGELOG.md)
- [Commits](https://github.com/yargs/yargs/commits/v17.7.2)

---
updated-dependencies:
- dependency-name: yargs-parser
  dependency-type: indirect
- dependency-name: yargs
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-10 02:11:56 +09:00
Raymond Zhao
dc9412125d chore: bump micromatch (#228005) 2024-09-09 09:59:31 -07:00
Megan Rogge
287757bd0a add status bar pinned action aria label (#227845) 2024-09-09 18:43:24 +02:00
Tyler James Leonhardt
1349397cf7 Remove vscode-nls-dev dependency (#228002)
This was when extensions used the old localization stuff. None of this is used anymore.
2024-09-09 18:28:32 +02:00
Connor Peet
2e4bae90c6 cli: update rs to avoid arm64 bug 2024-09-09 09:18:56 -07:00
Connor Peet
4d221c6b85 cli: reapply "code server-web when offline" 2024-09-09 09:18:56 -07:00
Ladislau Szomoru
70849c674d SCM Graph - 💄 switch to waitForState in favor of an autorun (#228000) 2024-09-09 18:10:48 +02:00
Ladislau Szomoru
6b90336e96 SCM Graph - add "Outdated" badge to view title (#227996) 2024-09-09 17:33:44 +02:00
Ladislau Szomoru
f473931509 SCM Graph - improve picker hover (#227978) 2024-09-09 17:31:30 +02:00
Johannes Rieken
ab2df1ffdc tweak chat file suggestions (#227991)
* mark result as incomplete in all cases
* don't include `#file:` in label
* tweak sorting
2024-09-09 16:52:51 +02:00
Aiday Marlen Kyzy
d11799e9d2 Merge pull request #227989 from microsoft/rising-marmot
Reset the focus to the active element prior to the selection change in the EditContext
2024-09-09 16:34:37 +02:00
Robo
746ba5bc68 cli: revert "code server-web when offline" (#227981)
* Revert "Merge pull request #227830 from microsoft/connor4312/cli-offline-serve"

This reverts commit 136a5c6f5f, reversing
changes made to 9d388bbf8b.

* chore: bump distro
2024-09-09 16:21:08 +02:00
Aiday Marlen Kyzy
446a66e071 resetting the selection to what it was before the selection change 2024-09-09 16:15:05 +02:00
Ladislau Szomoru
d0b2168a69 SCM Graph - improve picker rendering (#227970) 2024-09-09 14:41:20 +02:00
Ladislau Szomoru
3f0893b273 SCM - cleanup history provider proposed API (#227960) 2024-09-09 14:40:56 +02:00
Aiday Marlen Kyzy
7d6bfad180 Using the model state instead of view state in native edit context (#227965)
using the model state instead of view state in native edit context
2024-09-09 13:22:43 +02:00
hj
88d7b97c93 chore: rm unreached ignore items when build extensions. (#227906)
chore: rm unreached ignore items when compiling extensions.
2024-09-09 10:32:51 +00:00
Sandeep Somavarapu
9b4a6d5e5e fix #227778 (#227958) 2024-09-09 12:32:18 +02:00
Benjamin Pasero
6abee1b852 esm - restore ability to require.resolve with paths (#227934)
* esm - restore ability to `require.resolve` with `paths`

* fill in paths
2024-09-09 12:19:30 +02:00
Ladislau Szomoru
3ab41c2f69 SCM Graph - add branch picker (#227949)
* WIP - saving my work

* Extract HistoryItemRef picker

* Extract Repository picker

* Improve history item ref picker rendering

* Refactor color map

* Refresh the graph when the filter changes

* Push minor fix
2024-09-09 12:02:31 +02:00
Benjamin Christopher Simmonds
884cfb16a3 Reset traits after switching model (#227956)
reset traits after switching model
2024-09-09 11:55:46 +02:00
Johannes Rieken
65e0b66786 dynamic #file completions, fed from history and file search (#227950)
* dynamic #file completions, fed from history and file search

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

* signal that there are more suggestions
2024-09-09 11:36:39 +02:00
Benjamin Christopher Simmonds
b6b5da01c4 No tab bar handle closed editors (#227947) 2024-09-09 11:33:27 +02:00
Sandeep Somavarapu
5c97ba8357 log network requests in the process specific log (#227944) 2024-09-09 10:54:29 +02:00
Sandeep Somavarapu
56d050794d fix #227765 (#227943) 2024-09-09 10:45:46 +02:00
Sandeep Somavarapu
9b569af9a4 fix #226660 (#227920) 2024-09-08 23:53:33 +02:00
Daniel Imms
1b071a84f9 Merge pull request #227857 from microsoft/dependabot/npm_and_yarn/build/multi-f78246cd1a
Bump xml2js and @azure/core-http in /build
2024-09-07 06:56:31 -07:00
Peng Lyu
f1f1413d68 Fix cell status bar target check (#227861) 2024-09-07 10:01:58 +02:00
Tyler James Leonhardt
533d8ec6a5 Rework eventing for PCAs and fix a few bugs along the way (#227854)
A big change, but a good one... This addresses some core issues around how we manage multiple PublicClientApplications (which are an object that should be created for each set of clientId,authority). Previously, we were doing some pretty nasty things to detect when a new PCA was created/deleted and as a result it would cause infinite loops and the likes...

Now we've focused on managing that in SecretStorage by looking for a `publicClientApplications` key. This is all encapsulated in the new `PublicClientApplicationsSecretStorage`.

Since we no longer relied on that hack, we still needed some way to have a PCA inform that:
* accounts have changed
* the last account was removed (signaling that this PCA could be disposed of in `PublicClientApplicationsSecretStorage`)

Both of these events have been added to `CachedPublicClientApplication` (now in its own file) and are being used. (replacing the old `_accountChangeHandler` which was hacky... true events are cleaner).

Last thing in the eventing space is that I try to minimize calls to `_storePublicClientApplications` so to not spam events across SecretStorage. You can see this in my usage of `_doCreatePublicClientApplication` over `getOrCreate`.

Couple random other things:
* `changed` accounts are properly bubbled up in `_onDidChangeSessionsEmitter` which is needed when a token is refreshed
* `getSessions` when no scopes are passed in no longer causes new tokens to be minted
* we use to only remove the first account we found but in some cases there may be the same account across different PCAs, so there's a `return` that's removed in `authProvider.ts` that fixes this bug
* Logging is clearer and more verbose (in a good way)
2024-09-06 21:03:25 -07:00
dependabot[bot]
baa49e9f9c Bump xml2js and @azure/core-http in /build
Bumps [xml2js](https://github.com/Leonidas-from-XIV/node-xml2js) and [@azure/core-http](https://github.com/Azure/azure-sdk-for-js). These dependencies needed to be updated together.

Updates `xml2js` from 0.4.23 to 0.5.0
- [Commits](https://github.com/Leonidas-from-XIV/node-xml2js/commits/0.5.0)

Updates `@azure/core-http` from 3.0.0 to 3.0.4
- [Release notes](https://github.com/Azure/azure-sdk-for-js/releases)
- [Changelog](https://github.com/Azure/azure-sdk-for-js/blob/main/documentation/Changelog-for-next-generation.md)
- [Commits](https://github.com/Azure/azure-sdk-for-js/compare/@azure/core-http_3.0.0...@azure/core-http_3.0.4)

---
updated-dependencies:
- dependency-name: xml2js
  dependency-type: indirect
- dependency-name: "@azure/core-http"
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-09-07 02:49:29 +00:00
dependabot[bot]
bc0764dcb1 Bump ansi-regex (#227785)
Bumps  and [ansi-regex](https://github.com/chalk/ansi-regex). These dependencies needed to be updated together.

Updates `ansi-regex` from 3.0.0 to 5.0.1
- [Release notes](https://github.com/chalk/ansi-regex/releases)
- [Commits](https://github.com/chalk/ansi-regex/compare/v3.0.0...v5.0.1)

Updates `ansi-regex` from 4.1.0 to 5.0.1
- [Release notes](https://github.com/chalk/ansi-regex/releases)
- [Commits](https://github.com/chalk/ansi-regex/compare/v3.0.0...v5.0.1)

---
updated-dependencies:
- dependency-name: ansi-regex
  dependency-type: indirect
- dependency-name: ansi-regex
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-07 11:48:31 +09:00
dependabot[bot]
2a4d7851ef Bump pathval from 1.1.0 to 1.1.1 in /test/monaco (#227783)
Bumps [pathval](https://github.com/chaijs/pathval) from 1.1.0 to 1.1.1.
- [Release notes](https://github.com/chaijs/pathval/releases)
- [Changelog](https://github.com/chaijs/pathval/blob/master/CHANGELOG.md)
- [Commits](https://github.com/chaijs/pathval/compare/v1.1.0...v1.1.1)

---
updated-dependencies:
- dependency-name: pathval
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-07 11:43:31 +09:00
Connor Peet
976e68e620 eng: identify ternary expressions in selfhost runner (#227848)
Fixes #227222
2024-09-06 17:19:05 -07:00
Connor Peet
f8785f8021 debug: fix some unsoundness in type convertsions in the ext host (#227846)
Refs #211878
2024-09-06 16:04:32 -07:00
Connor Peet
35676d1921 extensions: allow opening extension host CPU profile in the built-in profile viewer (#227834)
Fixes #227168

Also moves some old Action registrations to Action2 and uses proper
menu registration for context menu display.
2024-09-06 16:03:56 -07:00
Connor Peet
03f6dab0dd chore: bump distro (#227840) 2024-09-07 00:09:47 +02:00
Megan Rogge
2c8764ef26 add missing role to command center (#227824)
fix #227569
2024-09-07 00:03:57 +02:00
Connor Peet
f8c0820a97 cli: fix vsda failure in main (#227835)
Fixes #227833
2024-09-06 23:31:52 +02:00
Alex Ross
c6f85783f9 Allow @vscode/tree-sitter-wasm type import in more places (#227831)
Part of #227752
2024-09-06 13:45:56 -07:00
Aaron Munger
48dde95787 update code symbols in outline (#227638)
* lower limit for how many cells we can pre-cache symbols for, update cache when out of date

* update tests

* fix tests

* pre-cache symbols for the goto symbols view

* test precaching

* reset cached flag
2024-09-06 13:03:41 -07:00
Connor Peet
136a5c6f5f Merge pull request #227830 from microsoft/connor4312/cli-offline-serve
`code server-web` when offline
2024-09-06 12:53:10 -07:00
Rob Lourens
9d388bbf8b Align verified badge with first line of text (#227829)
For #227682
2024-09-06 21:35:09 +02:00
Connor Peet
077bd2f1b4 fixups
- Don't set a config option for update interval. We don't let the one
  in core be configurable, don't see a huge need for this.
- Don't start the server when the update is available
- Fix some race conditions
- Fix some clippy lints on Rust 1.81
2024-09-06 12:20:13 -07:00
Alex Ross
25f80c94c6 More detailed scopes in typescript.scm (#227828)
Part of #210475
2024-09-06 12:19:28 -07:00