Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: coder/vscode-coder
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.1.23
Choose a base ref
...
head repository: coder/vscode-coder
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
Loading
Showing with 10,331 additions and 4,916 deletions.
  1. +4 −2 .editorconfig
  2. +58 −49 .eslintrc.json
  3. +20 −0 .github/dependabot.yml
  4. +10 −6 .github/workflows/ci.yaml
  5. +4 −3 .github/workflows/release.yaml
  6. +9 −0 .prettierignore
  7. +0 −16 .prettierrc
  8. +10 −10 .vscode/launch.json
  9. +2 −4 .vscode/tasks.json
  10. +311 −2 CHANGELOG.md
  11. +26 −0 CLAUDE.md
  12. +106 −14 CONTRIBUTING.md
  13. +20 −4 README.md
  14. +3 −0 fixtures/bin.bash
  15. +8 −0 fixtures/bin.old.bash
  16. 0 fixtures/{ → tls}/chain-intermediate.crt
  17. 0 fixtures/{ → tls}/chain-intermediate.key
  18. 0 fixtures/{ → tls}/chain-leaf.crt
  19. 0 fixtures/{ → tls}/chain-leaf.key
  20. 0 fixtures/{ → tls}/chain-root.crt
  21. 0 fixtures/{ → tls}/chain-root.key
  22. 0 fixtures/{ → tls}/chain.crt
  23. 0 fixtures/{ → tls}/chain.key
  24. 0 fixtures/{ → tls}/generate.bash
  25. 0 fixtures/{ → tls}/no-signing.crt
  26. 0 fixtures/{ → tls}/no-signing.key
  27. 0 fixtures/{ → tls}/self-signed.crt
  28. 0 fixtures/{ → tls}/self-signed.key
  29. +58 −0 flake.lock
  30. +20 −0 flake.nix
  31. +335 −282 package.json
  32. +48 −23 src/api-helper.ts
  33. +313 −0 src/api.ts
  34. +148 −0 src/cliManager.test.ts
  35. +171 −0 src/cliManager.ts
  36. +775 −369 src/commands.ts
  37. +201 −171 src/error.test.ts
  38. +153 −131 src/error.ts
  39. +396 −177 src/extension.ts
  40. +30 −0 src/featureSet.test.ts
  41. +33 −0 src/featureSet.ts
  42. +138 −45 src/headers.test.ts
  43. +91 −41 src/headers.ts
  44. +104 −0 src/inbox.ts
  45. +114 −0 src/proxy.ts
  46. +1,014 −765 src/remote.ts
  47. +640 −135 src/sshConfig.test.ts
  48. +267 −189 src/sshConfig.ts
  49. +93 −25 src/sshSupport.test.ts
  50. +92 −79 src/sshSupport.ts
  51. +617 −421 src/storage.ts
  52. +36 −15 src/typings/vscode.proposed.resolvers.d.ts
  53. +125 −0 src/util.test.ts
  54. +149 −0 src/util.ts
  55. +0 −176 src/workspaceAction.ts
  56. +223 −0 src/workspaceMonitor.ts
  57. +503 −178 src/workspacesProvider.ts
  58. +12 −12 tsconfig.json
  59. +43 −43 webpack.config.js
  60. +2,798 −1,529 yarn.lock
6 changes: 4 additions & 2 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
root = true

[*]
indent_style = space
trim_trailing_whitespace = true
end_of_line = lf
indent_size = 2
indent_style = tab
insert_final_newline = true
trim_trailing_whitespace = true
107 changes: 58 additions & 49 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,51 +1,60 @@
{
"root": true,
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module"
},
"plugins": [
"@typescript-eslint",
"prettier"
],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:import/recommended",
"plugin:import/typescript",
"plugin:md/prettier",
"prettier"
],
"overrides": [{
"files": ["*.md"],
"parser": "markdown-eslint-parser"
}],
"rules": {
"curly": "error",
"eqeqeq": "error",
"no-throw-literal": "error",
"no-console": "error",
"prettier/prettier": "error",
"import/order": ["error", {
"alphabetize": {
"order": "asc"
},
"groups": [["builtin", "external", "internal"], "parent", "sibling"]
}],
"import/no-unresolved": ["error", {
"ignore": ["vscode"]
}],
"@typescript-eslint/no-unused-vars": [
"error",
{
"varsIgnorePattern": "^_"
}
]
},
"ignorePatterns": [
"out",
"dist",
"**/*.d.ts"
]
"root": true,
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module"
},
"plugins": ["@typescript-eslint", "prettier"],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:import/recommended",
"plugin:import/typescript",
"plugin:md/prettier",
"prettier"
],
"overrides": [
{
"files": ["*.md"],
"parser": "markdown-eslint-parser"
}
],
"rules": {
"curly": "error",
"eqeqeq": "error",
"no-throw-literal": "error",
"no-console": "error",
"prettier/prettier": "error",
"import/order": [
"error",
{
"alphabetize": {
"order": "asc"
},
"groups": [["builtin", "external", "internal"], "parent", "sibling"]
}
],
"import/no-unresolved": [
"error",
{
"ignore": ["vscode"]
}
],
"@typescript-eslint/no-unused-vars": [
"error",
{
"varsIgnorePattern": "^_"
}
],
"md/remark": [
"error",
{
"no-duplicate-headings": {
"sublings_only": true
}
}
]
},
"ignorePatterns": ["out", "dist", "**/*.d.ts"]
}
20 changes: 20 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "weekly"
ignore:
- dependency-name: "@types/vscode"
# These versions must match the versions specified in coder/coder exactly.
- dependency-name: "@types/ua-parser-js"
- dependency-name: "ua-parser-js"
16 changes: 10 additions & 6 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -14,25 +14,29 @@ jobs:
runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- uses: actions/setup-node@v2
- uses: actions/setup-node@v4
with:
node-version: '16'
node-version: "18"

- run: yarn

- run: yarn prettier --check .

- run: yarn lint

- run: yarn build

test:
runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- uses: actions/setup-node@v2
- uses: actions/setup-node@v4
with:
node-version: '16'
node-version: "18"

- run: yarn

7 changes: 4 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -14,11 +14,11 @@ jobs:
package:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- uses: actions/setup-node@v2
- uses: actions/setup-node@v4
with:
node-version: '16'
node-version: "18"

- run: yarn

@@ -28,5 +28,6 @@ jobs:
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false
draft: true
files: |
*.vsix
9 changes: 9 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/dist/
/node_modules/
/out/
/.vscode-test/
/.nyc_output/
/coverage/
*.vsix
flake.lock
yarn-error.log
16 changes: 0 additions & 16 deletions .prettierrc

This file was deleted.

20 changes: 10 additions & 10 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "Run Extension",
"type": "extensionHost",
"request": "launch",
"args": ["--extensionDevelopmentPath=${workspaceFolder}"],
"outFiles": ["${workspaceFolder}/dist/**/*.js"]
}
]
"version": "0.2.0",
"configurations": [
{
"name": "Run Extension",
"type": "extensionHost",
"request": "launch",
"args": ["--extensionDevelopmentPath=${workspaceFolder}"],
"outFiles": ["${workspaceFolder}/dist/**/*.js"]
}
]
}
6 changes: 2 additions & 4 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -4,11 +4,9 @@
{
"type": "typescript",
"tsconfig": "tsconfig.json",
"problemMatcher": [
"$tsc"
],
"problemMatcher": ["$tsc"],
"group": "build",
"label": "tsc: build"
}
]
}
}
Loading