GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Fix Typescript extension not loading · coder/code-server@c074fa8

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • CHANGELOG.md
  • ci/build
    • build-vscode.sh
  • test/e2e
    • typescript.test.ts
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎CHANGELOG.md‎

Copy file name to clipboardExpand all lines: CHANGELOG.md
+5Lines changed: 5 additions & 0 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@ Code v1.141.0
3030
workbench storage on the remote server instead of browser storage. Use this if
3131
you want to share storage between multiple devices.
3232

33+
### Fixed
34+
35+
- The Typescript extension was trying to load as a browser extension even though
36+
we build the remote server version, causing it to fail to activate.
37+
3338
### Changed
3439

3540
- Update to Code 1.141.0
Collapse file

‎ci/build/build-vscode.sh‎

Copy file name to clipboardExpand all lines: ci/build/build-vscode.sh
+14-4Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,17 @@ main() {
5858
exit 1
5959
fi
6060

61-
# Add the date, our name, links, enable telemetry (this just makes telemetry
62-
# available; telemetry can still be disabled by flag or setting), and
63-
# configure trusted extensions (since some, like github.copilot-chat, never
64-
# ask to be trusted and this is the only way to get auth working).
61+
# Modify the product.json:
62+
# - Add the date
63+
# - Set the code-server name.
64+
# - Add our links
65+
# - Enable telemetry (this just makes telemetry available; telemetry can still
66+
# be disabled by flag or setting)
67+
# - Configure trusted extensions (since some, like github.copilot-chat, never
68+
# ask to be trusted and this is the only way to get auth working).
69+
# - Make Typescript server plugins run in the workspace. We build the remote
70+
# server version, so there is no browser distribution, and this key is not
71+
# added automatically.
6572
#
6673
# This needs to be done before building as Code will read this file and embed
6774
# it into the client-side code.
@@ -103,6 +110,9 @@ main() {
103110
],
104111
"aiConfig": {
105112
"ariaKey": "code-server"
113+
},
114+
"extensionPointExtensionKind": {
115+
"typescriptServerPlugins": ["workspace"]
106116
}
107117
}
108118
EOF
Collapse file

‎test/e2e/typescript.test.ts‎

Copy file name to clipboard
+10Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import { describe, test } from "./baseFixture"
2+
3+
const args = ["--disable-workspace-trust"]
4+
5+
describe("typescript extension", args, {}, () => {
6+
test("should load as a workspace extension", async ({ codeServerPage }) => {
7+
await codeServerPage.executeCommandViaMenus("Developer: Show Running Extensions")
8+
await codeServerPage.page.waitForSelector('[aria-label="typescript-language-features"] >> text=localhost:')
9+
})
10+
})

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.