Skip to content

Commit 06cdc16

Browse files
authored
Merge pull request #1442 from MicrosoftDocs/master
2/14 AM Publish
2 parents f219ef3 + a761892 commit 06cdc16

13 files changed

+119
-21
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# [Index](index.md)
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
- name: Docs
2+
tocHref: /
3+
topicHref: /
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Welcome to b362ae64-b1c1-4f4d-a0af-76fe2cfdbd70!
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
> [!Tip]
2+
> The VS Code status bar will display a clickable URL.
3+
4+
![](../media/vscode-status-bar-url.png)

connected-environment/get-started-netcore-04.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ Hit **F5** to debug your code in Kubernetes.
2222

2323
As with the `up` command, code is synced to the development environment, and a container is built and deployed to Kubernetes. This time, of course, the debugger is attached to the remote container.
2424

25+
[!INCLUDE[](common/tip-vscode-status-bar-url.md)]
26+
2527
Set a breakpoint in a server-side code file, for example within the `Index()` function in the `Controllers/HomeController.cs` source file. Refreshing the browser page causes the breakpoint to hit.
2628

2729
You have full access to debug information just like you would if the code was executing locally, such as the call stack, local variables, exception information, etc.

connected-environment/get-started-nodejs-04.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ Hit **F5** to debug your code in Kubernetes!
2121

2222
Similar to the `up` command, code is synced to the development environment when you start debugging, and a container is built and deployed to Kubernetes. This time, of course, the debugger is attached to the remote container.
2323

24+
[!INCLUDE[](common/tip-vscode-status-bar-url.md)]
25+
2426
Set a breakpoint in a server-side code file, for example within the `app.get('/api'...` in `server.js`. Refresh the browser page, or press the 'Say It Again' button, and you should hit the breakpoint and be able to step through code.
2527

2628
You have full access to debug information just like you would if the code was executing locally, such as the call stack, local variables, exception information, etc.
Loading

connected-environment/troubleshooting.md

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,24 @@ Install the [VS Code extension for Connected Environment](get-started-netcore-01
5151
**Reason:** The build context is at the project/service level by default, therefore a library project you are using will not be found.
5252

5353
**Try:**
54-
What needs to be done is:
54+
What needs to be done:
5555
1. Modify the vsce.yaml file to set the build context to the solution level.
5656
2. Modify the Dockerfile and Dockerfile.develop files to refer to the csproj files correctly, relative to the new build context.
5757
3. Place a .dockerignore file beside the .sln file and modify as needed.
5858

59-
You can find an example at https://github.com/sgreenmsft/buildcontextsample
59+
You can find an example at https://github.com/sgreenmsft/buildcontextsample
60+
61+
## 'Microsoft.ConnectedEnvironment/register/action' authorization error when creating an environment
62+
You may see the following error when managing an environment and you are working in an Azure subscription you do not have Owner or Contributor access.
63+
`The client '<User email/Id>' with object id '<Guid>' does not have authorization to perform action 'Microsoft.ConnectedEnvironment/register/action' over scope '/subscriptions/<Subscription Id>'.`
64+
65+
**Reason:**
66+
The selected Azure subscription has not registered the Microsoft.ConnectedEnvironment namespace.
67+
68+
**Try:**
69+
Someone with Owner or Contributor access to the Azure subscription can run the following Azure CLI command to manually register the Microsoft.ConnectedEnvironment namespace:
70+
71+
```cmd
72+
az provider register --namespace Microsoft.ConnectedEnvironment
73+
```
74+

docs/extensibility/adding-an-lsp-extension.md

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ The following LSP features are supported in Visual Studio so far:
4747
Message | Has Support in Visual Studio
4848
--- | ---
4949
initialize | yes
50-
initialized |
50+
initialized | yes
5151
shutdown | yes
5252
exit | yes
5353
$/cancelRequest | yes
@@ -67,12 +67,12 @@ textDocument/didOpen | yes
6767
textDocument/didChange | yes
6868
textDocument/willSave |
6969
textDocument/willSaveWaitUntil |
70-
textDocument/didSave |
70+
textDocument/didSave | yes
7171
textDocument/didClose | yes
7272
textDocument/completion | yes
7373
completion/resolve | yes
74-
textDocument/hover |
75-
textDocument/signatureHelp |
74+
textDocument/hover | yes
75+
textDocument/signatureHelp | yes
7676
textDocument/references | yes
7777
textDocument/documentHighlight |
7878
textDocument/documentSymbol | yes
@@ -206,6 +206,16 @@ namespace MockLanguageExtension
206206
{
207207
await StartAsync?.InvokeAsync(this, EventArgs.Empty);
208208
}
209+
210+
public async Task OnServerInitializeFailedAsync(Exception e)
211+
{
212+
return Task.CompletedTask;
213+
}
214+
215+
public async Task OnServerInitializedAsync()
216+
{
217+
return Task.CompletedTask;
218+
}
209219
}
210220
}
211221
```
@@ -423,6 +433,7 @@ internal class MockCustomLanguageClient : MockLanguageClient, ILanguageClientCus
423433
public async Task<string> SendServerCustomMessage(string test)
424434
{
425435
return await this.customMessageRpc.InvokeAsync<string>("OnCustomRequest", test);
436+
}
426437
}
427438
```
428439

@@ -435,7 +446,6 @@ Each LSP message has its own middle layer interface for interception. To interce
435446
```csharp
436447
public class MockLanguageClient: ILanguageClient, ILanguageClientCustomMessage
437448
{
438-
439449
public object MiddleLayer => MiddleLayerProvider.Instance;
440450

441451
private class MiddleLayerProvider : ILanguageClientWorkspaceSymbolProvider
@@ -454,6 +464,7 @@ public class MockLanguageClient: ILanguageClient, ILanguageClientCustomMessage
454464
// Only return symbols that are "files"
455465
return symbols.Where(sym => string.Equals(new Uri(sym.Location.Uri).Scheme, "file", StringComparison.OrdinalIgnoreCase)).ToArray();
456466
}
467+
}
457468
}
458469
```
459470

Loading

0 commit comments

Comments
 (0)