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
This change attempts to clean up our internal data transfer types
- Replace `IDataTransfer` (which was just an alias for map) with a `VSDataTransfer` helper class.
This lets us add helpers and also restrict what you can do on a datatransfer
- Move `DataTransferDTO` types into `protocol`
- Move `DataTransferTypeConverter` into `typeConvert`
- Don't return internal types to ext host callers
For example, previously we leaked `IDataTransfer` out into providers / controllers. Instead we should always return an instance of `vscode.DataTransfer` to extensions
* Add a basic check
* Fix yaml error
* Another attempt to fix the yaml
* update actions versions
* let -> const
* Add hygiene and layering check
* update name
* Add drop into editor option
This change adds a new `enableDropIntoEditor` editor option that enables/disables dropping an extermal resources into an editor
Previously this option was exposed `IEditorConstructionOptions`, however this did not correctly disable drop into editor when dragging and dropping unknown types (such as dragging emoji from the MacOS emoji panel)
With this change, disabling `workbench.editor.dropIntoEditor.enabled` should fully disable the new drop into behavior
* Move drop into editor from workbench to editor
This moves the `dropIntoEditorContribution` from the workbench layer to the platform layer
As part of this change, I also add to move `extractEditorsDropData` up to `platform` so that it could be used from the `editor` layer
This change also enables drop into for the SCM message box
* Fixing monaco errors
* Revert id change
* Add a safer alternative to `editor.deltaDecorations` (#148423)
* Adopt `IEditorDecorationsCollection` in `wordHighlighter` (fixes#149636)
* Adopt `IEditorDecorationsCollection` in `contentHover` (fixes#149640)
* Go through a change accessor to change decorations (fixes#149642)
* Adopt `IEditorDecorationsCollection` in `goToDefinitionAtPosition`
* improve ergonomics of `ILayoutService#offset`
* Use new `quickPickTop` to overlay title bar part when title menu is enabled
* hide title menu whenever quick pick shows to avoid unwanted overlap
* extract title menu into its own file
- Introduce policy configuration using policy model
- Use policy configuration while reading, inspecting and writing configuration
- Adopt json settings editor
* feat: allow using formatting parts in the workplace suffix
* Revert "feat: allow using formatting parts in the workplace suffix"
This reverts commit a228e03ad6.
* feat: cache label formatters
* fix: tests