Skip to content

Set web document root for project and on a per launch basis #7135

@DartBot

Description

@DartBot

This issue was originally filed by kylethay...@gmail.com


It would be useful to be able to set the default web document root for a project so that whenever I run a file in a project through the dart editor I get for [c:\project_directory/html/example.html] :

http://xxx.xxx.xxx.xxx:3030/html/example.html

instead of

http://xxx.xxx.xxx.xxx:3030/C:/project_directory/html/example.html

That way you can write an absolute URI to an image or another page (project_directory/image/example-image.png) i.e.

<img src='/image/example-image.png' />

and have it load the image correctly no matter the initial location of the html file I ran using the dartium option within the dart editor.

It would also be a great idea to have the ability to change the web document root for a specific launch within the 'Manage Launches' menu so that you can adapt to specific scenarios you want to try, in case you want to split your project into smaller pieces you can test each individually.

Metadata

Metadata

Assignees

Labels

closed-not-plannedClosed as we don't intend to take action on the reported issuetype-enhancementA request for a change that isn't a bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions