-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Use Monaco when creating files in DebugConfigurationManager
#9467
Use Monaco when creating files in DebugConfigurationManager
#9467
Conversation
97a415c
to
b815e02
Compare
Debug/TaskConfigurationManager
DebugConfigurationManager
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I confirm that the changes successfully fix #9310 👍
@@ -252,28 +252,28 @@ export class DebugConfigurationManager { | |||
return this.models.values().next().value; | |||
} | |||
|
|||
protected async doOpen(model: DebugConfigurationModel): Promise<EditorWidget> { | |||
protected async doOpen(model: DebugConfigurationModel): Promise<EditorWidget | undefined> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we document this breakage to be safe?
A downstream extension may previously expect EditorWidget
when calling doOpen
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, likely best to be safe. I'll push a changelog entry
b815e02
to
d785eb0
Compare
@vince-fugnitto, as we discussed offline, I've modified the code so that it handles any case in which a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I confirmed that the changes work well 👍
- verified that it properly creates the
launch.json
when it does not exist. - verified that it properly populates the
launch.json
when it does not contain aconfigurations
object. - verified that it properly adds new configurations (through add configuration) for an existing
configurations
object. - works for both
.vscode
and.theia
.
Signed-off-by: Colin Grant <[email protected]>
d785eb0
to
f229c68
Compare
What it does
This PR fixes #9310 by using Monaco to manipulate the file contents rather than having the
FileService
make the change on the backend only.How to test
launch.json
files.launch.json
file in some root and have it open.Add Configuration
.launch.json
file..vscode
or.theia
folder.Review checklist
Reminder for reviewers
Signed-off-by: Colin Grant [email protected]