1+ // This file was automatically generated with PreTeXt 2.16.1.
2+ // If you modify this file, PreTeXt will no longer automatically update it.
3+ //
4+ // ////////////////////////////////////////////////////////////
5+ //
6+ // This file provides configuration options so that a PreTeXt
7+ // project can be edited and built using GitHub's Codespaces.
8+ // It is recommended to keep this in your repository even if you
9+ // do not use this feature, as it will allow other to explore
10+ // your project easily.
11+ // This file will be automatically generated by PreTeXt with the
12+ // latest updates unless you remove the first comment line above.
13+ //
14+ // /////////////////////////////////////////////////////////////
15+ {
16+ "image" : " mcr.microsoft.com/devcontainers/universal:2" ,
17+ "features" : {},
18+
19+ // Comment or uncomment lines below if you don't or do need that feature.
20+ "postCreateCommand" : {
21+ "install pandoc" : " bash ./.devcontainer/installPandoc.sh" ,
22+ "install latex" : " bash ./.devcontainer/installLatex.sh" ,
23+ "install pretext" : " bash ./.devcontainer/installPretext.sh" ,
24+ "install sagemath" : " bash ./.devcontainer/installSage.sh"
25+ },
26+
27+
28+ // Port forwarding
29+ // ---------------
30+ // This is needed by the CodeChat Server.
31+ "forwardPorts" : [
32+ // The port used for a Thrift connection between the VSCode CodeChat
33+ // extension and the CodeChat Server.
34+ 27376 ,
35+ // The port used for an HTTP connection from the CodeChat Client to
36+ // the CodeChat Server.
37+ 27377 ,
38+ // The port used by a websocket connection between the CodeChat
39+ // Server and the CodeChat Client.
40+ 27378
41+ ],
42+ // See the [docs](https://containers.dev/implementors/json_reference/#port-attributes).
43+ "portsAttributes" : {
44+ "27376" : {
45+ "label" : " VSCode extension <-> CodeChat Server" ,
46+ "requireLocalPort" : true
47+ },
48+ "27377" : {
49+ "label" : " CodeChat Client" ,
50+ "requireLocalPort" : true
51+ },
52+ "27378" : {
53+ "label" : " CodeChat Client<->Server websocket" ,
54+ "requireLocalPort" : true
55+ // This port needs to be public; however, there's no way to specify port visibility here. See `server.py` in the CodeChat Server for details.
56+ }
57+ },
58+
59+
60+ // Configure tool-specific properties.
61+ "customizations" : {
62+ "codespaces" : {
63+ "openFiles" : [" source/main.ptx" ]
64+ },
65+ "vscode" : {
66+ "settings" : {
67+ "editor.quickSuggestions" : {
68+ "other" : " off"
69+ },
70+ "editor.snippetSuggestions" : " top" ,
71+ "xml.validation.enabled" : false ,
72+ "CodeChat.CodeChatServer.Command" : " CodeChat_Server"
73+ },
74+ "extensions" : [
75+ " oscarlevin.pretext-tools" ,
76+ " CodeChat.codechat"
77+ ]
78+ }
79+ }
80+ }
81+
0 commit comments