-
Notifications
You must be signed in to change notification settings - Fork 11
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
Implement recommended extension/server setup #200
Merged
WilsonZiweiWang
merged 11 commits into
yoctoproject:staging
from
savoirfairelinux:use-recommended-extension-server-structure
Apr 22, 2024
Merged
Implement recommended extension/server setup #200
WilsonZiweiWang
merged 11 commits into
yoctoproject:staging
from
savoirfairelinux:use-recommended-extension-server-structure
Apr 22, 2024
Conversation
This file contains 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
25f1bcd
to
41bef55
Compare
Probably resolves #178 |
fa89e3f
to
2e584a0
Compare
The client's README content needs to move to the root. Need to decide what to do with the existing one. |
…mple Reference: https://github.com/microsoft/vscode-extension-samples/tree/main/lsp-sample 1. extension manifest is the root's package.json 2. client and server are compiled to their own out/ 3. Paths in launch.json, main.yml, package.json,etc are updated accordingly 4. Other files such as .vscodeignore and CHANGELOG are moved to the root as well
By default, the grammar test framework need to run in the directory where the extension manifest exists, which contains the contributes for language and grammar. Since the extension manifest has been moved to root, the grammar test scripts are moved as well.
The extension manifest is now root's package.json, the README in root is then used for marketplace page. The images used in the README are also moved. Some un-used images are removed.
2e584a0
to
7a6c729
Compare
Now we don't need to move the static files like resources/ and wasm file around as long as the relative layout is the same for both src/ and out/. For npm package, we just package the files needed while respecting the relative layout.
deribaucourt
requested changes
Apr 18, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code LGTM, discussions
deribaucourt
approved these changes
Apr 22, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Why
I want to get rid of this message that showed up during the execution of the script
installServerIntoExtension
:Source of the deprecation message:
https://github.com/microsoft/vscode-languageserver-node/blob/0226f6cd925d279dda2b777d25c5b69518ac0035/server/bin/installServerIntoExtension#L70
Ticket: 14334
How
To implement the recommended setup in
lsp-sample
:vsce package
will need to run in root afterwards)out/
Other changes to make:
launch.json
,main.yml
..gitignore
,.vscodeignore
and.npmignore
.Test results
All functionalities seem to work on my end
![image](https://private-user-images.githubusercontent.com/47988425/322912452-92f9fa53-c5a3-491f-85c2-3b0a1e4ba0bd.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkwNDY4ODIsIm5iZiI6MTczOTA0NjU4MiwicGF0aCI6Ii80Nzk4ODQyNS8zMjI5MTI0NTItOTJmOWZhNTMtYzVhMy00OTFmLTg1YzItM2IwYTFlNGJhMGJkLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA4VDIwMjk0MlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTE2YzQ4NjBmOTdhMTVhNjQ2NmFkYjMzMjJmYTI3NmQ4ZjVmNjU2MmE2YmFlOTAyM2I3ZTgxMWIxZDhmNDMwYTAmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.i8c--8qyeYSLPyAkBAJKXhe1MG8T-EEt2FHbrEZWMbM)
VSIX
npm package
![image](https://private-user-images.githubusercontent.com/47988425/322912485-8447a625-8999-4542-9866-2e8f57168fcc.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkwNDY4ODIsIm5iZiI6MTczOTA0NjU4MiwicGF0aCI6Ii80Nzk4ODQyNS8zMjI5MTI0ODUtODQ0N2E2MjUtODk5OS00NTQyLTk4NjYtMmU4ZjU3MTY4ZmNjLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA4VDIwMjk0MlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWM1ZTM2NDkzZjk1ZDNiNzYxZGM5NzViN2EzODIxZjdlMWZlYzA0OTk4OGFhZDU2OTFlNjVmM2JmNzIzZjUzYzkmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.YYYgsc5x8sg0pPycH3jN2foP4s2xkTYQ7iwxoaurIYQ)
What is not working
The integration tests don't seem to work. Local run and CI froze at this stage.