mirror of
https://github.com/microsoft/vscode.git
synced 2026-09-03 16:15:28 +01:00
Add drop into editor option (#147049)
* 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
This commit is contained in:
@@ -30,7 +30,7 @@ import * as search from 'vs/workbench/contrib/search/common/search';
|
||||
import * as typeh from 'vs/workbench/contrib/typeHierarchy/common/typeHierarchy';
|
||||
import { extHostNamedCustomer, IExtHostContext } from 'vs/workbench/services/extensions/common/extHostCustomers';
|
||||
import { ExtHostContext, ExtHostLanguageFeaturesShape, ICallHierarchyItemDto, ICodeActionDto, ICodeActionProviderMetadataDto, IdentifiableInlineCompletion, IdentifiableInlineCompletions, IDocumentFilterDto, IIndentationRuleDto, IInlayHintDto, ILanguageConfigurationDto, ILanguageWordDefinitionDto, ILinkDto, ILocationDto, ILocationLinkDto, IOnEnterRuleDto, IRegExpDto, ISignatureHelpProviderMetadataDto, ISuggestDataDto, ISuggestDataDtoField, ISuggestResultDtoField, ITypeHierarchyItemDto, IWorkspaceSymbolDto, MainContext, MainThreadLanguageFeaturesShape, reviveWorkspaceEditDto } from '../common/extHost.protocol';
|
||||
import { IDataTransfer } from 'vs/editor/common/dnd';
|
||||
import { IDataTransfer } from 'vs/base/common/dataTransfer';
|
||||
|
||||
@extHostNamedCustomer(MainContext.MainThreadLanguageFeatures)
|
||||
export class MainThreadLanguageFeatures extends Disposable implements MainThreadLanguageFeaturesShape {
|
||||
|
||||
Reference in New Issue
Block a user