Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable dnd for problem files #33243

Merged
merged 1 commit into from
Aug 28, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/vs/workbench/parts/markers/browser/markersPanel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ import { ICommonCodeEditor } from 'vs/editor/common/editorCommon';
import FileResultsNavigation from 'vs/workbench/parts/files/browser/fileResultsNavigation';
import { debounceEvent } from 'vs/base/common/event';
import { attachListStyler } from 'vs/platform/theme/common/styler';
import { SimpleFileResourceDragAndDrop } from 'vs/base/parts/tree/browser/treeDnd';

export class MarkersPanel extends Panel {

Expand Down Expand Up @@ -200,13 +201,15 @@ export class MarkersPanel extends Panel {
dom.addClass(this.treeContainer, 'show-file-icons');
const actionProvider = this.instantiationService.createInstance(ContributableActionProvider);
const renderer = this.instantiationService.createInstance(Viewer.Renderer, this.getActionRunner(), actionProvider);
const dnd = new SimpleFileResourceDragAndDrop(obj => obj instanceof Resource ? obj.uri : void 0);
let controller = this.instantiationService.createInstance(Controller);
this.tree = new TreeImpl.Tree(this.treeContainer, {
dataSource: new Viewer.DataSource(),
renderer,
controller,
sorter: new Viewer.Sorter(),
accessibilityProvider: new Viewer.MarkersTreeAccessibilityProvider()
accessibilityProvider: new Viewer.MarkersTreeAccessibilityProvider(),
dnd
}, {
indentPixels: 0,
twistiePixels: 20,
Expand Down