Skip to content

Commit 3171e03

Browse files
committed
Debug MC js for gametest, support connect and listen modes.
1 parent 3b23885 commit 3171e03

15 files changed

+1309
-153
lines changed

.vscodeignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ out/test/**
44
src/**
55
.gitignore
66
.yarnrc
7-
vsc-extension-quickstart.md
7+
azure-pipelines.yml
88
**/tsconfig.json
99
**/.eslintrc.json
1010
**/*.map

CHANGELOG.md

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
1-
# Change Log
1+
# Changelog
22

3-
All notable changes to the "minecraft-debugger" extension will be documented in this file.
3+
## Version 0.1.0 (September 2021)
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, connect to Minecraft Bedrock Edition to debug GameTest scripts.

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
Copyright (c) Microsoft Corporation. All rights reserved.
2+
3+
MIT License
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

NOTICES.md

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# NOTICES AND INFORMATION
2+
This software incorporates material from third parties.
3+
4+
This project incorporates material from the project(s) listed below (collectively, “Third Party Code”).
5+
Microsoft is not the original author of the Third Party Code. The original copyright notice and license
6+
under which Microsoft received such Third Party Code are set out below. This Third Party Code is licensed
7+
to you under their original license terms set forth below. Microsoft reserves all other rights not
8+
expressly granted, whether by implication, estoppel or otherwise.
9+
10+
### QuickJS Debug Adapter for VS Code
11+
12+
**Source**: https://github.com/koush/vscode-quickjs-debug
13+
14+
Copyright 2020 Koushik Dutta
15+
16+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
17+
18+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
19+
20+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWA
21+
22+
### DefinitelyTyped version 0.0.1
23+
24+
**Source** https://github.com/borisyankov/DefinitelyTyped
25+
26+
This project is licensed under the MIT license.
27+
Copyrights are respective of each contributor listed at the beginning of each definition file.
28+
29+
Permission is hereby granted, free of charge, to any person obtaining a copy
30+
of this software and associated documentation files (the "Software"), to deal
31+
in the Software without restriction, including without limitation the rights
32+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
33+
copies of the Software, and to permit persons to whom the Software is
34+
furnished to do so, subject to the following conditions:
35+
36+
The above copyright notice and this permission notice shall be included in
37+
all copies or substantial portions of the Software.
38+
39+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
40+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
41+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
42+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
43+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
44+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
45+
THE SOFTWARE.

README.md

Lines changed: 1 addition & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -1,70 +1,4 @@
11
# minecraft-debugger README
22

3-
This is the README for your extension "minecraft-debugger". After writing up a brief description, we recommend including the following sections.
3+
TBD minecraft-debugger
44

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.
33-
34-
## Release Notes
35-
36-
Users appreciate release notes as you update your extension.
37-
38-
### 1.0.0
39-
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-
## Following extension guidelines
52-
53-
Ensure that you've read through the extensions guidelines and follow the best practices for creating your extension.
54-
55-
* [Extension Guidelines](https://code.visualstudio.com/api/references/extension-guidelines)
56-
57-
## Working with Markdown
58-
59-
**Note:** You can author your README using Visual Studio Code. Here are some useful editor keyboard shortcuts:
60-
61-
* Split the editor (`Cmd+\` on macOS or `Ctrl+\` on Windows and Linux)
62-
* Toggle preview (`Shift+CMD+V` on macOS or `Shift+Ctrl+V` on Windows and Linux)
63-
* Press `Ctrl+Space` (Windows, Linux) or `Cmd+Space` (macOS) to see a list of Markdown snippets
64-
65-
### For more information
66-
67-
* [Visual Studio Code's Markdown Support](http://code.visualstudio.com/docs/languages/markdown)
68-
* [Markdown Syntax Reference](https://help.github.com/articles/markdown-basics/)
69-
70-
**Enjoy!**

azure-pipelines.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
trigger:
2+
branches:
3+
include:
4+
- main
5+
tags:
6+
include:
7+
- v*
8+
9+
strategy:
10+
matrix:
11+
linux:
12+
imageName: 'ubuntu-latest'
13+
mac:
14+
imageName: 'macos-latest'
15+
windows:
16+
imageName: 'windows-latest'
17+
18+
pool:
19+
vmImage: $(imageName)
20+
21+
steps:
22+
23+
- task: NodeTool@0
24+
inputs:
25+
versionSpec: '10.x'
26+
displayName: 'Install Node.js'
27+
28+
- bash: |
29+
/usr/bin/Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
30+
echo ">>> Started xvfb"
31+
displayName: Start xvfb
32+
condition: and(succeeded(), eq(variables['Agent.OS'], 'Linux'))
33+
34+
- bash: |
35+
echo ">>> Compile vscode-test"
36+
yarn && yarn compile
37+
echo ">>> Compiled vscode-test"
38+
cd sample
39+
echo ">>> Run sample integration test"
40+
yarn && yarn compile && yarn test
41+
displayName: Run Tests
42+
env:
43+
DISPLAY: ':99.0'
44+
45+
- bash: |
46+
echo ">>> Package Extension"
47+
yarn package
48+
displayName: Package Extension
49+
env:
50+
DISPLAY: ':99.0'
51+
52+
- publish: $(System.DefaultWorkingDirectory)/minecraft-debugger-0.1.0.vsix

0 commit comments

Comments
 (0)