Mark setting as experimental again

Will finalize along when we actually ship this api
This commit is contained in:
Matt Bierner 2022-04-19 13:07:42 -07:00
parent d2e01929e3
commit 800eec5645
No known key found for this signature in database
GPG key ID: 099C331567E11888
4 changed files with 5 additions and 4 deletions

View file

@ -28,6 +28,6 @@
"configuration.markdown.links.openLocation.currentGroup": "Open links in the active editor group.",
"configuration.markdown.links.openLocation.beside": "Open links beside the active editor.",
"configuration.markdown.suggest.paths.enabled.description": "Enable/disable path suggestions for markdown links",
"configuration.markdown.editor.drop.enabled": "Enable/disable dropping into the markdown editor to insert shift. Requires enabling `#workbench.editor.dropIntoEditor.enabled#`.",
"configuration.markdown.editor.drop.enabled": "Enable/disable dropping into the markdown editor to insert shift. Requires enabling `#workbenck.experimental.editor.dropIntoEditor.enabled#`.",
"workspaceTrust": "Required for loading styles configured in the workspace."
}

View file

@ -31,7 +31,7 @@ interface IDropOperation {
}
function isDropIntoEditorEnabledGlobally(configurationService: IConfigurationService) {
return configurationService.getValue<boolean>('workbench.editor.dropIntoEditor.enabled');
return configurationService.getValue<boolean>('workbench.experimental.editor.dropIntoEditor.enabled');
}
function isDragIntoEditorEvent(e: DragEvent): boolean {

View file

@ -464,9 +464,10 @@ const registry = Registry.as<IConfigurationRegistry>(ConfigurationExtensions.Con
'description': localize('layoutControlType', "Controls whether the layout control in the custom title bar is displayed as a single menu button or with multiple UI toggles."),
'markdownDeprecationMessage': localize({ key: 'layoutControlTypeDeprecation', comment: ['{0} is a placeholder for a setting identifier.'] }, "This setting has been deprecated in favor of {0}", '`#workbench.layoutControl.type#`')
},
'workbench.editor.dropIntoEditor.enabled': {
'workbench.experimental.editor.dropIntoEditor.enabled': {
'type': 'boolean',
'default': true,
'tags': ['experimental'],
'markdownDescription': localize('dropIntoEditor', "Controls whether you can drag and drop a file into a text editor by holding down `shift` (instead of opening the file in an editor)."),
}
}

View file

@ -16,7 +16,7 @@ declare module 'vscode' {
/**
* Provider which handles dropping of resources into a text editor.
*
* The user can drop into a text editor by holding down `shift` while dragging. Requires `workbench.editor.dropIntoEditor.enabled` to be on.
* The user can drop into a text editor by holding down `shift` while dragging. Requires `workbench.experimental.editor.dropIntoEditor.enabled` to be on.
*/
export interface DocumentOnDropProvider {
/**