- Notifications
You must be signed in to change notification settings - Fork37
Add package scripts and cli library, enable integration testing#536
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Merged
Uh oh!
There was an error while loading.Please reload this page.
Merged
Changes from1 commit
Commits
Show all changes
16 commits Select commitHold shift + click to select a range
7e1bce9 pretest working
jaggederestc693a46 enable vscode-test and bump tsconfig to modern settings
jaggederest240b649 Merge branch 'main' into jaggederest/integration_tests
jaggederest0e58a31 test: fix integration tests to run without Remote SSH extension
jaggederest872b7e8 Merge remote-tracking branch 'origin/jaggederest/integration_tests' i…
jaggederest01c2d80 autocorrect formatting
jaggederest8ddbf26 bump node version to 22
jaggederest9b74df4 fix: configure Vitest to properly exclude VS Code integration tests
jaggederestadec211 whitespace
jaggederestd9b543a fix: update tsconfig.json and convert pretty-bytes imports to standar…
jaggederesta7afdd6 Remove testmode flag in favor of checking existence of remote ssh ext…
jaggederest3097d8f remove superfluous async, enable lint rule
jaggederesta2d2bc8 fix: resolve ESLint @typescript-eslint/require-await errors
jaggederest32dfda4 Update configurations and remove pointless Promise.all
jaggederest12b0124 Tweak eslint config to better handle json/md, remove compile-tests sc…
jaggederest3ee92fe remove extraneous async/await
jaggederestFile filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
Remove testmode flag in favor of checking existence of remote ssh ext…
…ension and warning user
- Loading branch information
Uh oh!
There was an error while loading.Please reload this page.
commita7afdd6a5cc4f127f469079011f6b58ffc7a44a6
There are no files selected for viewing
23 changes: 12 additions & 11 deletionssrc/extension.ts
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 |
|---|---|---|
| @@ -21,9 +21,6 @@ export async function activate(ctx: vscode.ExtensionContext): Promise<void> { | ||
| // | ||
| // Cursor and VSCode are covered by ms remote, and the only other is windsurf for now | ||
| // Means that vscodium is not supported by this for now | ||
| const remoteSSHExtension = | ||
| vscode.extensions.getExtension("jeanp413.open-remote-ssh") || | ||
| @@ -34,13 +31,11 @@ export async function activate(ctx: vscode.ExtensionContext): Promise<void> { | ||
| let vscodeProposed: typeof vscode = vscode; | ||
| if (!remoteSSHExtension) { | ||
| vscode.window.showErrorMessage( | ||
| "Remote SSH extension not found, this may not work as expected.\n" + | ||
| // NB should we link to documentation or marketplace? | ||
jaggederest marked this conversation as resolved. Show resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
| "Please install your choice of Remote SSH extension from the VS Code Marketplace.", | ||
| ); | ||
| } else { | ||
| // eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
| vscodeProposed = (module as any)._load( | ||
| @@ -289,7 +284,13 @@ export async function activate(ctx: vscode.ExtensionContext): Promise<void> { | ||
| // Since the "onResolveRemoteAuthority:ssh-remote" activation event exists | ||
| // in package.json we're able to perform actions before the authority is | ||
| // resolved by the remote SSH extension. | ||
| // | ||
| // In addition, if we don't have a remote SSH extension, we skip this | ||
| // activation event. This may allow the user to install the extension | ||
| // after the Coder extension is installed, instead of throwing a fatal error | ||
| // (this would require the user to uninstall the Coder extension and | ||
| // reinstall after installing the remote SSH extension, which is annoying) | ||
code-asher marked this conversation as resolved. Show resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
| if (remoteSSHExtension && vscodeProposed.env.remoteAuthority) { | ||
| const remote = new Remote( | ||
| vscodeProposed, | ||
| storage, | ||
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.