-
Notifications
You must be signed in to change notification settings - Fork 23
Language server #117
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
Draft
BarryNolte
wants to merge
37
commits into
d2lang:master
Choose a base branch
from
BarryNolte:LanguageServer
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Language server #117
Changes from all commits
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 a35eeac
Work In Progress
BarryNolte 86faaa8
Bootstraping Language Server
BarryNolte 8268aea
Change fixed path to path from settings file
BarryNolte 4935810
Fixed up d2 path, again
BarryNolte 689a24a
Checkpoint - File Import Completion Working
BarryNolte 9958431
Checkpoint - File Import Completion Working
BarryNolte eddc7f7
CheckPoint
BarryNolte 355fb28
Checkpoint
BarryNolte f5af735
Reconfigured directory structure
BarryNolte c8fb692
Checkpoint
BarryNolte 74118df
Pre-Code Cleanup
BarryNolte 6eaea67
Merge branch 'terrastruct:master' into LanguageServer
BarryNolte 0a7c2c0
First Language Server PR
BarryNolte 06899b9
Merge branch 'LanguageServer' of https://github.com/BarryNolte/d2-vsc…
BarryNolte 6594075
Final push before pull request
BarryNolte 7df1372
Get CI to work (maybe...)
BarryNolte 313251f
Try again to get ci to work
BarryNolte 748398b
Code Review Fixes
BarryNolte ccbe41f
Code review updates and general tweaks and fixes.
BarryNolte 6b9dc75
Change prettier version to work with CI
BarryNolte 9a20650
Reworked autocomplete, file linking and markdown embedding.
BarryNolte d8eaeee
Code clean-up
BarryNolte 6b86fc1
Code Cleanup
BarryNolte ec25e38
Merge branch 'master' into LanguageServer
BarryNolte 02fe37b
Fix formatting bugs
BarryNolte aeff708
Merge branch 'LanguageServer' of https://github.com/BarryNolte/d2-vsc…
BarryNolte c254965
eslint version mismatch
BarryNolte 4f0ff39
Set eslint to specific version
BarryNolte 7c95cc4
Fix for package generation
BarryNolte 1976c65
Code review changes
BarryNolte 909980b
Format and forgotten file
BarryNolte 6d5aca9
Code Review Change
BarryNolte ed206a0
Change request was not the answer we were looking for.
BarryNolte b0f75cd
Work In Progress
BarryNolte 86f1055
Update dependencies
BarryNolte 99bbb27
Add a 'recompile' button
BarryNolte File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,16 +1,31 @@ | ||
| { | ||
| "version": "0.2.0", | ||
|
|
||
| "compounds": [ | ||
| { | ||
| "name": "1 Debug All", | ||
| "configurations": ["Extension Launch", "Server Attach"], | ||
| "stopAll": true | ||
| } | ||
| ], | ||
| "configurations": [ | ||
| { | ||
| "args": [ | ||
| "--extensionDevelopmentPath=${workspaceFolder}" | ||
| ], | ||
| "name": "Launch Extension", | ||
| "name": "Server Attach", | ||
| "port": 6009, | ||
| "timeout": 10000, | ||
| "request": "attach", | ||
| "skipFiles": ["<node_internals>/**"], | ||
| "type": "node" | ||
| }, | ||
| { | ||
| "name": "Extension Launch", | ||
| "args": ["--extensionDevelopmentPath=${workspaceFolder}"], | ||
| "outFiles": [ | ||
| "${workspaceFolder}/dist/**/*.js" | ||
| "${workspaceFolder}/client/dist/**/*.js", | ||
| "${workspaceFolder}/server/dist/**/*.js" | ||
| ], | ||
| "request": "launch", | ||
| "type": "extensionHost" | ||
| } | ||
| ] | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,51 @@ | ||
| { | ||
| "name": "d2-extension-client", | ||
| "displayName": "D2", | ||
| "publisher": "Terrastruct", | ||
| "description": "Support for .d2 files.", | ||
| "version": "0.8.7", | ||
| "license": "BSD-3-Clause", | ||
| "contributors": [ | ||
| "Barry Nolte <barry@barrynolte.com>" | ||
| ], | ||
| "engines": { | ||
| "vscode": "^1.73.0" | ||
| }, | ||
| "devDependencies": { | ||
| "@types/glob": "^8.1.0", | ||
| "@types/markdown-it-container": "^2.0.9", | ||
| "@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.36.0", | ||
| "eslint-config-prettier": "^8.6.0", | ||
| "eslint-formatter-pretty": "^4.1.0", | ||
| "eslint-webpack-plugin": "^4.0.1", | ||
| "glob": "^10.3.10", | ||
| "mocha": "^10.2.0", | ||
| "prettier": "^2.8.3", | ||
| "ts-loader": "^9.5.0", | ||
| "typescript": "^5.2.2", | ||
| "webpack": "^5.89.0", | ||
| "webpack-cli": "^5.1.4" | ||
| }, | ||
| "dependencies": { | ||
| "markdown-it-container": "^4.0.0", | ||
| "path": "^0.12.7", | ||
| "vscode-languageclient": "^9.0.1" | ||
| }, | ||
| "homepage": "https://d2lang.com", | ||
| "icon": "d2-icon.png", | ||
| "bugs": { | ||
| "url": "https://github.com/terrastruct/d2-vscode/issues", | ||
| "email": "info@terrastruct.com" | ||
| }, | ||
| "repository": { | ||
| "type": "git", | ||
| "url": "https://github.com/terrastruct/d2-vscode" | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.