-
Notifications
You must be signed in to change notification settings - Fork 756
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
Paste as BicepParams #15897
base: main
Are you sure you want to change the base?
Paste as BicepParams #15897
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #15897 +/- ##
===========================================
- Coverage 94.28% 9.37% -84.91%
===========================================
Files 1113 7 -1106
Lines 100791 288 -100503
Branches 8734 123 -8611
===========================================
- Hits 95028 27 -95001
+ Misses 4595 261 -4334
+ Partials 1168 0 -1168
Flags with carried forward coverage won't be shown. Click here to find out more. |
@@ -144,6 +146,7 @@ export class PasteAsBicepCommand implements Command { | |||
rangeLength, | |||
jsonContent, | |||
queryCanPaste, | |||
languageId |
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 add languageId to telemetry?
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.
sounds good
@miqm Been OOF, I can take a look tomorrow. |
} | ||
|
||
private ProgramSyntax DecompileParametersFile(string jsonInput, Uri entryBicepparamUri, Uri? bicepFileUri) | ||
private ProgramSyntax DecompileParametersFile(string jsonInput, Uri entryBicepparamUri, Uri? bicepFileUri, DecompileParamOptions options) |
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.
TODO
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.
?
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.
Sorry, comment for me... :-)
src/Bicep.LangServer/Handlers/BicepDecompileForPasteCommandHandler.cs
Outdated
Show resolved
Hide resolved
src/Bicep.LangServer.UnitTests/Handlers/BicepDecompileForPasteCommandHandlerTests.cs
Outdated
Show resolved
Hide resolved
I've left some commets, not done yet. |
@StephenWeatherford I've fixed highlighted problems |
Fixes #15769
Changes
param
statementsusing
directive is already there - it's not being added for the second timeparam
will be duplicated thoughContributing a feature