Skip to content
This repository was archived by the owner on Feb 19, 2023. It is now read-only.

Commit 8ca8d85

Browse files
committed
Fixes to README, package.json, .vsix
1 parent 800bca5 commit 8ca8d85

6 files changed

+19
-155
lines changed

CHANGELOG.md

+2-6
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
# Change Log
22

3-
All notable changes to the "zig-language-server" extension will be documented in this file.
3+
## 1.0.0
44

5-
Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how to structure this file.
6-
7-
## [Unreleased]
8-
9-
- Initial release
5+
- Initial release

README.md

+3-60
Original file line numberDiff line numberDiff line change
@@ -1,65 +1,8 @@
1-
# zig-language-server README
2-
3-
This is the README for your extension "zig-language-server". After writing up a brief description, we recommend including the following sections.
4-
5-
## Features
6-
7-
Describe specific features of your extension including screenshots of your extension in action. Image paths are relative to this README file.
8-
9-
For example if there is an image subfolder under your extension project workspace:
10-
11-
\!\[feature X\]\(images/feature-x.png\)
12-
13-
> Tip: Many popular extensions utilize animations. This is an excellent way to show off your extension! We recommend short, focused animations that are easy to follow.
14-
15-
## Requirements
16-
17-
If you have any requirements or dependencies, add a section describing those and how to install and configure them.
18-
19-
## Extension Settings
20-
21-
Include if your extension adds any VS Code settings through the `contributes.configuration` extension point.
22-
23-
For example:
24-
25-
This extension contributes the following settings:
26-
27-
* `myExtension.enable`: enable/disable this extension
28-
* `myExtension.thing`: set to `blah` to do something
29-
30-
## Known Issues
31-
32-
Calling out known issues can help limit users opening duplicate issues against your extension.
1+
# zls-vscode
2+
`zls-vscode` is a language client extension for [`zls`](https://github.com/zigtools/zls), the awesome Zig Language Server.
333

344
## Release Notes
355

36-
Users appreciate release notes as you update your extension.
37-
386
### 1.0.0
397

40-
Initial release of ...
41-
42-
### 1.0.1
43-
44-
Fixed issue #.
45-
46-
### 1.1.0
47-
48-
Added features X, Y, and Z.
49-
50-
-----------------------------------------------------------------------------------------------------------
51-
52-
## Working with Markdown
53-
54-
**Note:** You can author your README using Visual Studio Code. Here are some useful editor keyboard shortcuts:
55-
56-
* Split the editor (`Cmd+\` on macOS or `Ctrl+\` on Windows and Linux)
57-
* Toggle preview (`Shift+CMD+V` on macOS or `Shift+Ctrl+V` on Windows and Linux)
58-
* Press `Ctrl+Space` (Windows, Linux) or `Cmd+Space` (macOS) to see a list of Markdown snippets
59-
60-
### For more information
61-
62-
* [Visual Studio Code's Markdown Support](http://code.visualstudio.com/docs/languages/markdown)
63-
* [Markdown Syntax Reference](https://help.github.com/articles/markdown-basics/)
64-
65-
**Enjoy!**
8+
> Initial release!

package.json

+13-6
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,17 @@
11
{
2-
"name": "zig-lsc",
3-
"displayName": "Zig Language Server Client",
2+
"name": "zls-vscode",
3+
"author": {
4+
"name": "Auguste Rame",
5+
"url": "https://augustera.me"
6+
},
7+
"publisher": "SuperAuguste",
8+
"displayName": "ZLS for VSCode",
49
"description": "A language client for `zls`.",
5-
"version": "0.0.1",
10+
"repository": {
11+
"type": "git",
12+
"url": "https://github.com/zigtools/zls-vscode"
13+
},
14+
"version": "1.0.0",
615
"engines": {
716
"vscode": "^1.44.0"
817
},
@@ -67,9 +76,7 @@
6776
"test": "node ./out/test/runTest.js"
6877
},
6978
"dependencies": {
70-
"@types/ws": "^7.2.4",
71-
"vscode-languageclient": "^6.1.3",
72-
"ws": "^7.2.3"
79+
"vscode-languageclient": "^6.1.3"
7380
},
7481
"devDependencies": {
7582
"@types/glob": "^7.1.1",

src/extension.ts

+1-29
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import * as path from 'path';
22
import { workspace, ExtensionContext, commands, OutputChannel, window } from 'vscode';
3-
import * as WebSocket from 'ws';
43

54
import {
65
LanguageClient,
@@ -12,7 +11,6 @@ let client: LanguageClient;
1211

1312
export function activate(context: ExtensionContext) {
1413
const zlsPath = workspace.getConfiguration('zigLanguageClient').get('path', '');
15-
let socket: WebSocket | null = null;
1614

1715
if (!zlsPath) {
1816
window.showErrorMessage("Failed to find zls executable! Please specify its path in your settings with `zigLanguageClient.path`.");
@@ -24,36 +22,10 @@ export function activate(context: ExtensionContext) {
2422
args: []
2523
};
2624

27-
commands.registerCommand('zigLanguageClient.startStreaming', () => {
28-
socket = new WebSocket(`ws://localhost:7000`);
29-
});
30-
31-
let log = '';
32-
const websocketOutputChannel: OutputChannel = {
33-
name: 'websocket',
34-
// Only append the logs but send them later
35-
append(value: string) {
36-
log += value;
37-
console.log(value);
38-
},
39-
appendLine(value: string) {
40-
log += value;
41-
// Don't send logs until WebSocket initialization
42-
if (socket && socket.readyState === WebSocket.OPEN) {
43-
socket.send(log);
44-
}
45-
log = '';
46-
},
47-
clear() {},
48-
show() {},
49-
hide() {},
50-
dispose() {}
51-
};
52-
5325
// Options to control the language client
5426
let clientOptions: LanguageClientOptions = {
5527
documentSelector: [{ scheme: 'file', language: 'zig' }],
56-
outputChannel: websocketOutputChannel //window.createOutputChannel("Zig Language Server")
28+
outputChannel: window.createOutputChannel("Zig Language Server")
5729
};
5830

5931
// Create the language client and start the client.

vsc-extension-quickstart.md

-42
This file was deleted.

yarn.lock

-12
Original file line numberDiff line numberDiff line change
@@ -72,13 +72,6 @@
7272
resolved "https://registry.yarnpkg.com/@types/vscode/-/vscode-1.44.0.tgz#62ecfe3d0e38942fce556574da54ee1013c775b7"
7373
integrity sha512-WJZtZlinE3meRdH+I7wTsIhpz/GLhqEQwmPGeh4s1irWLwMzCeTV8WZ+pgPTwrDXoafVUWwo1LiZ9HJVHFlJSQ==
7474

75-
"@types/ws@^7.2.4":
76-
version "7.2.4"
77-
resolved "https://registry.yarnpkg.com/@types/ws/-/ws-7.2.4.tgz#b3859f7b9c243b220efac9716ec42c716a72969d"
78-
integrity sha512-9S6Ask71vujkVyeEXKxjBSUV8ZUB0mjL5la4IncBoheu04bDaYyUKErh1BQcY9+WzOUOiKqz/OnpJHYckbMfNg==
79-
dependencies:
80-
"@types/node" "*"
81-
8275
"@typescript-eslint/eslint-plugin@^2.26.0":
8376
version "2.28.0"
8477
resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-2.28.0.tgz#4431bc6d3af41903e5255770703d4e55a0ccbdec"
@@ -1545,11 +1538,6 @@ [email protected]:
15451538
dependencies:
15461539
mkdirp "^0.5.1"
15471540

1548-
ws@^7.2.3:
1549-
version "7.2.3"
1550-
resolved "https://registry.yarnpkg.com/ws/-/ws-7.2.3.tgz#a5411e1fb04d5ed0efee76d26d5c46d830c39b46"
1551-
integrity sha512-HTDl9G9hbkNDk98naoR/cHDws7+EyYMOdL1BmjsZXRUjf7d+MficC4B7HLUPlSiho0vg+CWKrGIt/VJBd1xunQ==
1552-
15531541
y18n@^4.0.0:
15541542
version "4.0.0"
15551543
resolved "https://registry.yarnpkg.com/y18n/-/y18n-4.0.0.tgz#95ef94f85ecc81d007c264e190a120f0a3c8566b"

0 commit comments

Comments
 (0)