summaryrefslogtreecommitdiffstats
path: root/examples/vscode-playground/package.json
blob: 9c6827d2977f6861d64bc556b1c548ca542d6893 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
{
  "name": "pygls-playground",
  "description": "Extension for experimenting with pygls powered language servers",
  "author": "Open Law Library",
  "repository": "https://github.com/openlawlibrary/pygls",
  "license": "Apache-2.0",
  "version": "1.0.2",
  "publisher": "openlawlibrary",
  "engines": {
    "node": ">=16.17.1",
    "vscode": "^1.78.0"
  },
  "extensionDependencies": [
    "ms-python.python"
  ],
  "categories": [
    "Programming Languages"
  ],
  "activationEvents": [
    "onStartupFinished"
  ],
  "contributes": {
    "commands": [
      {
        "command": "pygls.server.restart",
        "title": "Restart Language Server",
        "category": "pygls"
      },
      {
        "command": "pygls.server.executeCommand",
        "title": "Execute Command",
        "category": "pygls"
      }
    ],
    "configuration": [
      {
        "type": "object",
        "title": "Json Server Configuration",
        "properties": {
          "pygls.jsonServer.exampleConfiguration": {
            "scope": "resource",
            "type": "string",
            "default": "You can override this message"
          }
        }
      },
      {
        "type": "object",
        "title": "Server Configuration",
        "properties": {
          "pygls.server.cwd": {
            "scope": "resource",
            "type": "string",
            "description": "The working directory from which to launch the server.",
            "markdownDescription": "The working directory from which to launch the server.\nIf blank, this will default to the `examples/servers` directory."
          },
          "pygls.server.debug": {
            "scope": "resource",
            "default": false,
            "type": "boolean",
            "description": "Enable debugging of the server process."
          },
          "pygls.server.debugHost": {
            "scope": "resource",
            "default": "localhost",
            "type": "string",
            "description": "The host on which the server process to debug is running."
          },
          "pygls.server.debugPort": {
            "scope": "resource",
            "default": 5678,
            "type": "integer",
            "description": "The port number on which the server process to debug is listening."
          },
          "pygls.server.launchScript": {
            "scope": "resource",
            "type": "string",
            "default": "json_server.py",
            "description": "The python script to run when launching the server.",
            "markdownDescription": "The python script to run when launching the server.\n Relative to #pygls.server.cwd#"
          },
          "pygls.server.pythonPath": {
            "scope": "resource",
            "type": "string",
            "default": "",
            "description": "The python interpreter to use to run the server.\nBy default, this extension will attempt to use the Python interpreter configured via the Python extension, setting this setting will override this behavior."
          },
          "pygls.trace.server": {
            "scope": "resource",
            "type": "string",
            "default": "off",
            "enum": [
              "off",
              "messages",
              "verbose"
            ],
            "description": "Controls if LSP messages send to/from the server should be logged.",
            "enumDescriptions": [
              "do not log any lsp messages",
              "log all lsp messages sent to/from the server",
              "log all lsp messages sent to/from the server, including their contents"
            ]
          }
        }
      },
      {
        "type": "object",
        "title": "Client Configuration",
        "properties": {
          "pygls.client.documentSelector": {
            "scope": "window",
            "type": "array",
            "items": {
              "type": "object"
            },
            "default": [
              {
                "scheme": "file",
                "language": "json"
              }
            ],
            "description": "The client uses this to decide which documents the server is able to help with.",
            "markdownDescription": "The client uses this to decide which documents the server is able to help with.\n See [DocumentSelector](https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#documentFilter) in the LSP Specification for more details."
          }
        }
      }
    ]
  },
  "main": "./out/extension",
  "scripts": {
    "vscode:prepublish": "npm run compile",
    "compile": "tsc -p .",
    "watch": "tsc -p . -w"
  },
  "devDependencies": {
    "@types/node": "^16.11.6",
    "@types/semver": "^7.5.0",
    "@types/vscode": "^1.78.0",
    "@typescript-eslint/eslint-plugin": "^5.3.0",
    "@typescript-eslint/parser": "^5.3.0",
    "eslint": "^8.2.0",
    "typescript": "^5.1.0"
  },
  "dependencies": {
    "@vscode/python-extension": "^1.0.4",
    "semver": "^7.5.4",
    "vscode-languageclient": "^8.1.0"
  }
}