You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+15-7Lines changed: 15 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -46,27 +46,35 @@ All contributions are welcome!
46
46
├──── yaml-language-server/
47
47
```
48
48
49
-
3.Run `yarn install`in both directories to initialize `node_modules` dependencies.
49
+
3.Open the `vscode-yaml` folder in VSCode, and then add the `yaml-language-server` project to the workspace using `File -> Add Folder to Workspace...`.
50
50
51
-
4. In `vscode-yaml/webpack.config.js` set the `config.entry.languageserver` property to:
51
+
4. Run `yarn install` in both directories to initialize `node_modules` dependencies.
52
+
53
+
5. In `vscode-yaml/webpack.config.js` set the `config.entry.languageserver` property to:
6. To run the language server in VSCode, click `View -> Debug`, then from the drop down menu beside the green arrow select `Launch Extension (vscode-yaml)`, click the arrow, and a new VSCode window should load with the YAML LS running.
67
+
7. To run the language server in VSCode, click `View -> Debug`, then from the drop down menu beside the green arrow select `Launch Extension (vscode-yaml)`, click the arrow, and a new VSCode window should load with the YAML LS running.
62
68
63
-
7. To debug the language server in VSCode, from the same drop down menu
69
+
8. To debug the language server in VSCode, from the same drop down menu
64
70
select
65
71
`Attach (yaml-language-server)`, and click the green arrow to start.
66
72
Ensure you've opened a YAML file or else the server would have not yet
67
73
started.
68
74
69
-
**Note:** Disable or remove any existing implementations of the YAML Language server from VSCode or there will be conflicts.
75
+
**Notes:**
76
+
* Disable or remove any existing implementations of the YAML Language server from VSCode or there will be conflicts.
77
+
* If you still have issues you can also try changing the debug port for the language server. To do this change the port in the `Attach to server` configuration to another value in `yaml-language-server/.vscode/launch.json`, then change update the port in `debugOptions` (`'--inspect=6009'`) to the new port in the file `vscode-yaml/src/node/yamlClientMain.ts`.
0 commit comments