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

Do not review - Anapandey/uri #15637

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions src/Bicep.Core.Samples/Files/baselines/Functions/sys.json
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,25 @@
"value: any"
]
},
{
"name": "buildUri",
"description": "Constructs a URI from specified components and returns an object with these components.",
"fixedParameters": [
{
"name": "components",
"description": "An object containing URI components such as scheme, host, port, path, and query.",
"type": "parseUri",
"required": true
}
],
"minimumArgumentCount": 1,
"maximumArgumentCount": 1,
"flags": "default",
"typeSignature": "(components: parseUri): string",
"parameterTypeSignatures": [
"components: parseUri"
]
},
{
"name": "cidrHost",
"description": "Calculates the usable IP address of the host with the specified index on the specified IP address range in CIDR notation.",
Expand Down Expand Up @@ -1247,6 +1266,25 @@
"network: string"
]
},
{
"name": "parseUri",
"description": "Parses a URI string into its components (scheme, host, port, path, query).",
"fixedParameters": [
{
"name": "baseUrl",
"description": "The complete URI to parse.",
"type": "string",
"required": true
}
],
"minimumArgumentCount": 1,
"maximumArgumentCount": 1,
"flags": "default",
"typeSignature": "(baseUrl: string): object",
"parameterTypeSignatures": [
"baseUrl: string"
]
},
{
"name": "range",
"description": "Creates an array of integers from a starting integer and containing a number of items.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -437,6 +437,27 @@
"command": "editor.action.triggerParameterHints"
}
},
{
"label": "buildUri",
"kind": "function",
"documentation": {
"kind": "markdown",
"value": "```bicep\nbuildUri(components: parseUri): string\n\n``` \nConstructs a URI from specified components and returns an object with these components. \n"
},
"deprecated": false,
"preselect": false,
"sortText": "3_buildUri",
"insertTextFormat": "snippet",
"insertTextMode": "adjustIndentation",
"textEdit": {
"range": {},
"newText": "buildUri($0)"
},
"command": {
"title": "signature help",
"command": "editor.action.triggerParameterHints"
}
},
{
"label": "cidrHost",
"kind": "function",
Expand Down Expand Up @@ -2274,6 +2295,27 @@
"command": "editor.action.triggerParameterHints"
}
},
{
"label": "parseUri",
"kind": "function",
"documentation": {
"kind": "markdown",
"value": "```bicep\nparseUri(baseUrl: string): object\n\n``` \nParses a URI string into its components (scheme, host, port, path, query). \n"
},
"deprecated": false,
"preselect": false,
"sortText": "3_parseUri",
"insertTextFormat": "snippet",
"insertTextMode": "adjustIndentation",
"textEdit": {
"range": {},
"newText": "parseUri($0)"
},
"command": {
"title": "signature help",
"command": "editor.action.triggerParameterHints"
}
},
{
"label": "partialObject",
"kind": "variable",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,27 @@
"command": "editor.action.triggerParameterHints"
}
},
{
"label": "buildUri",
"kind": "function",
"documentation": {
"kind": "markdown",
"value": "```bicep\nbuildUri(components: parseUri): string\n\n``` \nConstructs a URI from specified components and returns an object with these components. \n"
},
"deprecated": false,
"preselect": false,
"sortText": "3_buildUri",
"insertTextFormat": "snippet",
"insertTextMode": "adjustIndentation",
"textEdit": {
"range": {},
"newText": "buildUri($0)"
},
"command": {
"title": "signature help",
"command": "editor.action.triggerParameterHints"
}
},
{
"label": "cidrHost",
"kind": "function",
Expand Down Expand Up @@ -1045,6 +1066,27 @@
"command": "editor.action.triggerParameterHints"
}
},
{
"label": "parseUri",
"kind": "function",
"documentation": {
"kind": "markdown",
"value": "```bicep\nparseUri(baseUrl: string): object\n\n``` \nParses a URI string into its components (scheme, host, port, path, query). \n"
},
"deprecated": false,
"preselect": false,
"sortText": "3_parseUri",
"insertTextFormat": "snippet",
"insertTextMode": "adjustIndentation",
"textEdit": {
"range": {},
"newText": "parseUri($0)"
},
"command": {
"title": "signature help",
"command": "editor.action.triggerParameterHints"
}
},
{
"label": "range",
"kind": "function",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,27 @@
"command": "editor.action.triggerParameterHints"
}
},
{
"label": "buildUri",
"kind": "function",
"documentation": {
"kind": "markdown",
"value": "```bicep\nbuildUri(components: parseUri): string\n\n``` \nConstructs a URI from specified components and returns an object with these components. \n"
},
"deprecated": false,
"preselect": false,
"sortText": "3_buildUri",
"insertTextFormat": "snippet",
"insertTextMode": "adjustIndentation",
"textEdit": {
"range": {},
"newText": "buildUri($0)"
},
"command": {
"title": "signature help",
"command": "editor.action.triggerParameterHints"
}
},
{
"label": "childCompletionA",
"kind": "module",
Expand Down Expand Up @@ -2535,6 +2556,27 @@
"command": "editor.action.triggerParameterHints"
}
},
{
"label": "parseUri",
"kind": "function",
"documentation": {
"kind": "markdown",
"value": "```bicep\nparseUri(baseUrl: string): object\n\n``` \nParses a URI string into its components (scheme, host, port, path, query). \n"
},
"deprecated": false,
"preselect": false,
"sortText": "3_parseUri",
"insertTextFormat": "snippet",
"insertTextMode": "adjustIndentation",
"textEdit": {
"range": {},
"newText": "parseUri($0)"
},
"command": {
"title": "signature help",
"command": "editor.action.triggerParameterHints"
}
},
{
"label": "pickZones",
"kind": "function",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,27 @@
"command": "editor.action.triggerParameterHints"
}
},
{
"label": "buildUri",
"kind": "function",
"documentation": {
"kind": "markdown",
"value": "```bicep\nbuildUri(components: parseUri): string\n\n``` \nConstructs a URI from specified components and returns an object with these components. \n"
},
"deprecated": false,
"preselect": false,
"sortText": "3_buildUri",
"insertTextFormat": "snippet",
"insertTextMode": "adjustIndentation",
"textEdit": {
"range": {},
"newText": "buildUri($0)"
},
"command": {
"title": "signature help",
"command": "editor.action.triggerParameterHints"
}
},
{
"label": "childCompletionA",
"kind": "module",
Expand Down Expand Up @@ -2535,6 +2556,27 @@
"command": "editor.action.triggerParameterHints"
}
},
{
"label": "parseUri",
"kind": "function",
"documentation": {
"kind": "markdown",
"value": "```bicep\nparseUri(baseUrl: string): object\n\n``` \nParses a URI string into its components (scheme, host, port, path, query). \n"
},
"deprecated": false,
"preselect": false,
"sortText": "3_parseUri",
"insertTextFormat": "snippet",
"insertTextMode": "adjustIndentation",
"textEdit": {
"range": {},
"newText": "parseUri($0)"
},
"command": {
"title": "signature help",
"command": "editor.action.triggerParameterHints"
}
},
{
"label": "pickZones",
"kind": "function",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,27 @@
"command": "editor.action.triggerParameterHints"
}
},
{
"label": "buildUri",
"kind": "function",
"documentation": {
"kind": "markdown",
"value": "```bicep\nbuildUri(components: parseUri): string\n\n``` \nConstructs a URI from specified components and returns an object with these components. \n"
},
"deprecated": false,
"preselect": false,
"sortText": "3_buildUri",
"insertTextFormat": "snippet",
"insertTextMode": "adjustIndentation",
"textEdit": {
"range": {},
"newText": "buildUri($0)"
},
"command": {
"title": "signature help",
"command": "editor.action.triggerParameterHints"
}
},
{
"label": "cidrHost",
"kind": "function",
Expand Down Expand Up @@ -1171,6 +1192,27 @@
"command": "editor.action.triggerParameterHints"
}
},
{
"label": "parseUri",
"kind": "function",
"documentation": {
"kind": "markdown",
"value": "```bicep\nparseUri(baseUrl: string): object\n\n``` \nParses a URI string into its components (scheme, host, port, path, query). \n"
},
"deprecated": false,
"preselect": false,
"sortText": "3_parseUri",
"insertTextFormat": "snippet",
"insertTextMode": "adjustIndentation",
"textEdit": {
"range": {},
"newText": "parseUri($0)"
},
"command": {
"title": "signature help",
"command": "editor.action.triggerParameterHints"
}
},
{
"label": "pickZones",
"kind": "function",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,27 @@
"command": "editor.action.triggerParameterHints"
}
},
{
"label": "buildUri",
"kind": "function",
"documentation": {
"kind": "markdown",
"value": "```bicep\nbuildUri(components: parseUri): string\n\n``` \nConstructs a URI from specified components and returns an object with these components. \n"
},
"deprecated": false,
"preselect": false,
"sortText": "3_buildUri",
"insertTextFormat": "snippet",
"insertTextMode": "adjustIndentation",
"textEdit": {
"range": {},
"newText": "buildUri($0)"
},
"command": {
"title": "signature help",
"command": "editor.action.triggerParameterHints"
}
},
{
"label": "cidrHost",
"kind": "function",
Expand Down Expand Up @@ -1135,6 +1156,27 @@
"command": "editor.action.triggerParameterHints"
}
},
{
"label": "parseUri",
"kind": "function",
"documentation": {
"kind": "markdown",
"value": "```bicep\nparseUri(baseUrl: string): object\n\n``` \nParses a URI string into its components (scheme, host, port, path, query). \n"
},
"deprecated": false,
"preselect": false,
"sortText": "3_parseUri",
"insertTextFormat": "snippet",
"insertTextMode": "adjustIndentation",
"textEdit": {
"range": {},
"newText": "parseUri($0)"
},
"command": {
"title": "signature help",
"command": "editor.action.triggerParameterHints"
}
},
{
"label": "pickZones",
"kind": "function",
Expand Down
Loading
Loading