Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Language server #117

Draft
wants to merge 37 commits into
base: master
Choose a base branch
from
Draft
Changes from 1 commit
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
6a6967c
Merge branch 'master' of https://github.com/BarryNolte/d2-vscode
BarryNolte Jun 16, 2023
a35eeac
Work In Progress
BarryNolte Jun 28, 2023
86faaa8
Bootstraping Language Server
BarryNolte Jul 7, 2023
8268aea
Change fixed path to path from settings file
BarryNolte Jul 8, 2023
4935810
Fixed up d2 path, again
BarryNolte Jul 8, 2023
689a24a
Checkpoint - File Import Completion Working
BarryNolte Jul 13, 2023
9958431
Checkpoint - File Import Completion Working
BarryNolte Jul 13, 2023
eddc7f7
CheckPoint
BarryNolte Jul 15, 2023
355fb28
Checkpoint
BarryNolte Jul 23, 2023
f5af735
Reconfigured directory structure
BarryNolte Jul 24, 2023
c8fb692
Checkpoint
BarryNolte Jul 25, 2023
74118df
Pre-Code Cleanup
BarryNolte Jul 29, 2023
6eaea67
Merge branch 'terrastruct:master' into LanguageServer
BarryNolte Aug 2, 2023
0a7c2c0
First Language Server PR
BarryNolte Aug 2, 2023
06899b9
Merge branch 'LanguageServer' of https://github.com/BarryNolte/d2-vsc…
BarryNolte Aug 2, 2023
6594075
Final push before pull request
BarryNolte Aug 8, 2023
7df1372
Get CI to work (maybe...)
BarryNolte Aug 10, 2023
313251f
Try again to get ci to work
BarryNolte Aug 10, 2023
748398b
Code Review Fixes
BarryNolte Nov 3, 2023
ccbe41f
Code review updates and general tweaks and fixes.
BarryNolte Nov 8, 2023
6b9dc75
Change prettier version to work with CI
BarryNolte Nov 8, 2023
9a20650
Reworked autocomplete, file linking and markdown embedding.
BarryNolte Dec 30, 2023
d8eaeee
Code clean-up
BarryNolte Dec 30, 2023
6b86fc1
Code Cleanup
BarryNolte Jan 1, 2024
ec25e38
Merge branch 'master' into LanguageServer
BarryNolte Jan 2, 2024
02fe37b
Fix formatting bugs
BarryNolte Jan 2, 2024
aeff708
Merge branch 'LanguageServer' of https://github.com/BarryNolte/d2-vsc…
BarryNolte Jan 2, 2024
c254965
eslint version mismatch
BarryNolte Jan 2, 2024
4f0ff39
Set eslint to specific version
BarryNolte Jan 2, 2024
7c95cc4
Fix for package generation
BarryNolte Feb 7, 2024
1976c65
Code review changes
BarryNolte Feb 8, 2024
909980b
Format and forgotten file
BarryNolte Feb 8, 2024
6d5aca9
Code Review Change
BarryNolte Feb 16, 2024
ed206a0
Change request was not the answer we were looking for.
BarryNolte Feb 16, 2024
b0f75cd
Work In Progress
BarryNolte Mar 21, 2024
86f1055
Update dependencies
BarryNolte Mar 30, 2024
99bbb27
Add a 'recompile' button
BarryNolte Mar 31, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Code review updates and general tweaks and fixes.
  • Loading branch information
BarryNolte committed Nov 8, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit ccbe41f19a8f776da484d32d4b80828e15ac727b
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -6,3 +6,5 @@ dist
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.vscode/settings.json
package-lock.json
4 changes: 2 additions & 2 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -20,8 +20,8 @@
"args": ["--extensionDevelopmentPath=${workspaceFolder}"],
"name": "Launch Extension",
"outFiles": [
"${workspaceFolder}/dist/**/*.js",
"${workspaceFolder}/langsrv/dist/**/*.js"
"${workspaceFolder}/client/dist/**/*.js",
"${workspaceFolder}/server/dist/**/*.js"
],
"request": "launch",
"type": "extensionHost"
42 changes: 21 additions & 21 deletions client/package.json
Original file line number Diff line number Diff line change
@@ -12,31 +12,31 @@
"vscode": "^1.73.0"
},
"devDependencies": {
"@types/glob": "^8.0.0",
"@types/markdown-it-container": "^2.0.5",
"@types/mocha": "^10.0.0",
"@types/node": "16.x",
"@types/vscode": "^1.73.0",
"@typescript-eslint/eslint-plugin": "^5.50.0",
"@typescript-eslint/parser": "^5.50.0",
"@vscode/test-electron": "^2.2.0",
"@vscode/vsce": "^2.15.0",
"eslint": "^8.33.0",
"eslint-config-prettier": "^8.6.0",
"eslint-formatter-pretty": "^4.1.0",
"eslint-webpack-plugin": "^3.2.0",
"glob": "^8.0.3",
"mocha": "^10.1.0",
"prettier": "^2.8.3",
"ts-loader": "^9.4.2",
"typescript": "^4.9.4",
"webpack": "^5.74.0",
"webpack-cli": "^4.10.0"
"@types/glob": "^8.1.0",
"@types/markdown-it-container": "^2.0.8",
"@types/mocha": "^10.0.3",
"@types/node": "^20.8.10",
"@types/vscode": "^1.84.0",
"@typescript-eslint/eslint-plugin": "^6.9.1",
"@typescript-eslint/parser": "^6.9.1",
"@vscode/test-electron": "^2.3.6",
"@vscode/vsce": "^2.22.0",
"eslint": "^8.53.0",
"eslint-config-prettier": "^9.0.0",
"eslint-formatter-pretty": "^6.0.0",
"eslint-webpack-plugin": "^4.0.1",
"glob": "^10.3.10",
"mocha": "^10.2.0",
"prettier": "^3.0.3",
"ts-loader": "^9.5.0",
"typescript": "^5.2.2",
"webpack": "^5.89.0",
"webpack-cli": "^5.1.4"
},
"dependencies": {
"markdown-it-container": "^3.0.0",
"path": "^0.12.7",
"vscode-languageclient": "^8.1.0"
"vscode-languageclient": "^9.0.1"
},
"homepage": "https://d2lang.com",
"icon": "d2-icon.png",
2 changes: 1 addition & 1 deletion client/src/docToPreviewGenerator.ts
Original file line number Diff line number Diff line change
@@ -95,7 +95,7 @@ export class DocToPreviewGenerator {
"warning:100:20:explaination"
*/
const rg = new RegExp(/^(.*?):(\d+):(\d+):(\s+)(.*)$/g).exec(s);
const msg = rg !== null ? rg[5] : "Unknown Error";
const msg = rg !== null ? rg[5] : s;
const line = rg ? rg[2] || "0" : "0";
const col = rg ? rg[3] || "0" : "0";
list += `<li>${msg} (${line}:${col})</li>`;
2 changes: 1 addition & 1 deletion client/src/refreshTimer.ts
Original file line number Diff line number Diff line change
@@ -13,7 +13,7 @@ import { ws } from "./extension";
type TimerCallback = () => void;

export class RefreshTimer {
timerId?: NodeJS.Timer;
timerId?: NodeJS.Timeout;
callback: TimerCallback;
interval = 0;

Loading