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

Remove Neo.Express from vsix #160

Open
wants to merge 26 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 20 commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
832dd5e
added neo express installer that will install neo express to either l…
cloudmation Jan 22, 2023
d8ef87f
-added neo express install as a seperate command so user
cloudmation Jan 22, 2023
7005a10
- renamed installer to neoExpressInstaller
cloudmation Jan 23, 2023
8860bad
added required neo express version to configuration, but not sure if …
cloudmation Jan 23, 2023
fbbea1a
- simplified installation workflow per feedback
cloudmation Jan 24, 2023
9701b49
can install and invoke neoxp now
cloudmation Jan 24, 2023
c40d736
fix lint error complainning e is of unknow type
cloudmation Jan 24, 2023
4f08357
read tracker version from env for debugging
cloudmation Jan 24, 2023
7ccd6ba
- use workspace momento to record user's don't ask again request
cloudmation Jan 24, 2023
407594e
added tests, we should be able to test vs extension but I haven't add…
cloudmation Jan 25, 2023
4b5526b
surface install/update failures to the user
cloudmation Jan 25, 2023
dc5c641
-changed mocha based extension integration test to jest based unit te…
cloudmation Jan 26, 2023
0bebbc0
added dotnet tool package unit tests
cloudmation Jan 26, 2023
4d64f01
getting this error due to typescript packge 4.7 and above conflict wi…
cloudmation Jan 26, 2023
c36320d
updated typescript to 4.9 and the build is working now.
cloudmation Jan 27, 2023
a4bbc98
fixed compliation errors
cloudmation Jan 27, 2023
ee91ba6
added configuration option to include preview releases of neo.express
cloudmation Jan 27, 2023
1220c64
introduced configuration variable to include build server feed and al…
cloudmation Jan 27, 2023
d40af9d
updated config setting title
cloudmation Jan 27, 2023
bcbdca8
-added regex to check neo.express version configuration value
cloudmation Jan 27, 2023
da512b4
updated more information path
cloudmation Jan 30, 2023
775ca47
more test coverage for package version tests
cloudmation Jan 30, 2023
03d2655
updated log to show message any arg type is Error
cloudmation Jan 30, 2023
a710849
updated log callers to pass in error as an object, the log method wil…
cloudmation Jan 30, 2023
ff8ddce
- added with progress when neo.express is installed/updated
cloudmation Jan 31, 2023
454f6d4
env variable is no longer needed
cloudmation Feb 1, 2023
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
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@ deps
.DS_Store
.tools/
obj
.vscode-test
coverage
20 changes: 13 additions & 7 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,22 @@
"--extensionDevelopmentPath=${workspaceFolder}"
],
"outFiles": ["${workspaceFolder}/dist/**/*.js"],
"preLaunchTask": "${defaultBuildTask}"
"preLaunchTask": "${defaultBuildTask}",
"env": {
"NEO3_VISUAL_TRACKER_VERSION": "3.5.20"
}
},
{
"name": "Run Extension (empty workspace)",
"type": "extensionHost",
"request": "launch",
"runtimeExecutable": "${execPath}",
"args": [
"${workspaceFolder}/sample-workspaces/empty-workspace",
"--extensionDevelopmentPath=${workspaceFolder}"
],
"args": ["${workspaceFolder}/sample-workspaces/empty-workspace", "--extensionDevelopmentPath=${workspaceFolder}"],
"outFiles": ["${workspaceFolder}/dist/**/*.js"],
"preLaunchTask": "${defaultBuildTask}"
"preLaunchTask": "${defaultBuildTask}",
"env": {
"NEO3_VISUAL_TRACKER_VERSION": "3.5.20"
}
},
{
"name": "Run Extension (no workspace)",
Expand All @@ -33,7 +36,10 @@
"runtimeExecutable": "${execPath}",
"args": ["--extensionDevelopmentPath=${workspaceFolder}"],
"outFiles": ["${workspaceFolder}/dist/**/*.js"],
"preLaunchTask": "${defaultBuildTask}"
"preLaunchTask": "${defaultBuildTask}",
"env": {
"NEO3_VISUAL_TRACKER_VERSION": "3.5.20"
}
}
]
}
78 changes: 78 additions & 0 deletions __mocks__/vscode.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
//Instructions from https://www.richardkotze.com/coding/unit-test-mock-vs-code-extension-api-jest
//code from https://github.com/rkotze/git-mob-vs-code

const languages = {
createDiagnosticCollection: jest.fn(),
};

const StatusBarAlignment = {};

const window = {
createStatusBarItem: jest.fn(() => ({
show: jest.fn(),
})),
showErrorMessage: jest.fn(),
showWarningMessage: jest.fn(),
createTextEditorDecorationType: jest.fn(),
registerFileDecorationProvider: jest.fn(),
};

const workspace = {
getConfiguration: jest.fn(),
workspaceFolders: [],
onDidSaveTextDocument: jest.fn(),
onDidChangeConfiguration: jest.fn(),
};

const OverviewRulerLane = {
Left: null,
};

const Uri = {
file: (f) => f,
parse: jest.fn(),
};
const Range = jest.fn();
const Diagnostic = jest.fn();
const DiagnosticSeverity = { Error: 0, Warning: 1, Information: 2, Hint: 3 };

const debug = {
onDidTerminateDebugSession: jest.fn(),
startDebugging: jest.fn(),
};

const commands = {
executeCommand: jest.fn(),
};

const TreeItemCollapsibleState = {
None: "None",
Expanded: "Expanded",
Collapsed: "Collapsed",
};

class TreeItem {}

class EventEmitter {
get event() {}
fire() {}
}

const vscode = {
languages,
StatusBarAlignment,
window,
workspace,
OverviewRulerLane,
Uri,
Range,
Diagnostic,
DiagnosticSeverity,
debug,
commands,
TreeItemCollapsibleState,
TreeItem,
EventEmitter,
};

module.exports = vscode;
5 changes: 5 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module.exports = {
preset: "ts-jest",
clearMocks: true,
testEnvironment: "node",
};
Loading