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

Implement NLS without AMD loader #214588

Merged
merged 101 commits into from
Jun 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
101 commits
Select commit Hold shift + click to select a range
d62f9b0
hackz wip
bpasero Jun 7, 2024
2590c8e
eval it
bpasero Jun 7, 2024
43b2d46
fix running out of sources
bpasero Jun 7, 2024
deed5cc
power thru
bpasero Jun 7, 2024
cdcbc44
clanup
bpasero Jun 9, 2024
8b9399f
log errors
bpasero Jun 9, 2024
d612970
.
bpasero Jun 13, 2024
c856864
Merge branch 'main' into ben/nls-without-plugin
bpasero Jun 15, 2024
047f07e
adopt new index based format
bpasero Jun 16, 2024
5d6d949
:lipstick:
bpasero Jun 16, 2024
106d998
.
bpasero Jun 17, 2024
372edbd
.
bpasero Jun 17, 2024
7985719
.
bpasero Jun 17, 2024
4ec53ee
.
bpasero Jun 17, 2024
cc8029f
add nls.js
bpasero Jun 18, 2024
b9e4a0f
.
bpasero Jun 18, 2024
38ea746
.
bpasero Jun 18, 2024
74c2253
fix
bpasero Jun 18, 2024
7ab3623
fixes
bpasero Jun 18, 2024
32b1097
remove languagepacks.js
bpasero Jun 18, 2024
48ba9cb
.
bpasero Jun 18, 2024
08a95b0
.
bpasero Jun 18, 2024
c2de0fa
.
bpasero Jun 18, 2024
6daf369
cleanup
bpasero Jun 18, 2024
d845fa4
clanup
bpasero Jun 18, 2024
8ddff54
cleanup
bpasero Jun 18, 2024
7a8a3bb
clanup
bpasero Jun 18, 2024
0920a41
.
bpasero Jun 18, 2024
2343fc4
fix things
bpasero Jun 18, 2024
7f0f62a
.
bpasero Jun 18, 2024
ce851f4
reuse
bpasero Jun 18, 2024
abfa3b1
pseudo support
bpasero Jun 18, 2024
d5e60d2
cleanup
bpasero Jun 18, 2024
0cd21b6
fallback
bpasero Jun 18, 2024
e4c1d0e
support --locale=pseudo
bpasero Jun 18, 2024
c782b02
Merge branch 'main' into ben/nls-without-plugin
bpasero Jun 18, 2024
11597f4
fix type checks
bpasero Jun 18, 2024
f235fda
undo
bpasero Jun 18, 2024
85569f3
builds
bpasero Jun 19, 2024
d588c68
fix server
bpasero Jun 19, 2024
a1031b4
enable unit tests from out-build (electron)
bpasero Jun 19, 2024
b1a9f3c
enable unit tests from out-build (node.js)
bpasero Jun 19, 2024
96428ba
enable unit tests from out-build (web)
bpasero Jun 19, 2024
ef366b4
fix compile
bpasero Jun 19, 2024
6d6e0e0
fix tests
bpasero Jun 19, 2024
8bdfd47
upload nls metadata in new format, to CDN
joaomoreno Jun 20, 2024
dbabb5d
upload nls.messages.js to CDN
joaomoreno Jun 20, 2024
cc87f98
support building web alone
joaomoreno Jun 20, 2024
b693791
remove getConfiguredDefaultLocale
bpasero Jun 20, 2024
44973a0
update type
bpasero Jun 20, 2024
7fe9dcf
get rid of `availableLanguages`
bpasero Jun 20, 2024
02f5270
add first web nls
bpasero Jun 20, 2024
f3a1a26
try to fix web upload
bpasero Jun 20, 2024
8cfdd3e
support unpkg service
bpasero Jun 20, 2024
2f67781
Merge branch 'main' into ben/nls-without-plugin
bpasero Jun 21, 2024
a53082c
fix tests
bpasero Jun 21, 2024
9c8b51e
.
bpasero Jun 21, 2024
1dbf288
Merge branch 'main' into ben/nls-without-plugin
bpasero Jun 22, 2024
bdf7056
simplify
bpasero Jun 22, 2024
0fdd41a
improve files we ship
bpasero Jun 22, 2024
f646a6b
add nls to cli
bpasero Jun 22, 2024
fa271dd
.
bpasero Jun 22, 2024
c3a0496
cleanup
bpasero Jun 22, 2024
b6147c8
remove _VSCODE_NLS_LOCALE
bpasero Jun 22, 2024
89d9bc9
fix hyg
bpasero Jun 22, 2024
a307f1e
fix tests
bpasero Jun 22, 2024
f452401
back to _VSCODE_NLS_LOCALE
bpasero Jun 22, 2024
19897ef
first worker support
bpasero Jun 23, 2024
c3d38a2
fix
bpasero Jun 23, 2024
0d9c0cf
rename to _VSCODE_NLS_LANGUAGE
bpasero Jun 23, 2024
0612b2a
.
bpasero Jun 23, 2024
142a78a
.
bpasero Jun 23, 2024
55d0c5a
renames
bpasero Jun 24, 2024
84a50a6
cleanup
bpasero Jun 24, 2024
b3b0293
.
bpasero Jun 24, 2024
db61d76
fix
bpasero Jun 24, 2024
1b6f7f0
more cleanu
bpasero Jun 24, 2024
b70dfdc
change to throw
bpasero Jun 24, 2024
4f089a8
jsdoc
bpasero Jun 24, 2024
e972e4b
jsdoc
bpasero Jun 24, 2024
1f044ba
nls for web worker ext host
bpasero Jun 24, 2024
f38f13c
simplify
bpasero Jun 24, 2024
cb02f6e
simplify
bpasero Jun 24, 2024
d3d6407
revert simplification, iframe can run cross origin
bpasero Jun 24, 2024
fe82037
Merge branch 'main' into ben/nls-without-plugin
bpasero Jun 25, 2024
43f70ec
final review
bpasero Jun 25, 2024
98b074c
Merge branch 'main' into ben/nls-without-plugin
bpasero Jun 25, 2024
80eaca3
store language also in cookie
bpasero Jun 26, 2024
b253599
adopt cookies in web server
bpasero Jun 26, 2024
ac431af
web - always ensure default messages are loaded at least
bpasero Jun 26, 2024
1aaa60c
fix cors issue
bpasero Jun 26, 2024
7bdcef6
Merge branch 'main' into ben/nls-without-plugin
bpasero Jun 27, 2024
a07df3b
set cookie on startup
bpasero Jun 27, 2024
717e979
preserve english for monaco editor
bpasero Jun 27, 2024
4c50b81
support monaco editor
bpasero Jun 27, 2024
c777dfb
.
bpasero Jun 27, 2024
295d38b
cleanup
bpasero Jun 28, 2024
7e7e5cb
.
bpasero Jun 28, 2024
532d16b
fix reg
bpasero Jun 28, 2024
14a9d5e
.
bpasero Jun 28, 2024
25d386a
support old format
bpasero Jun 28, 2024
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
4 changes: 0 additions & 4 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -1015,10 +1015,6 @@
"vs/base/common/*"
]
},
{
"target": "src/vs/workbench/{workbench.desktop.main.nls.js,workbench.web.main.nls.js}",
"restrictions": []
},
{
"target": "src/vs/{loader.d.ts,css.ts,css.build.ts,monaco.d.ts,nls.ts,nls.build.ts,nls.mock.ts}",
"restrictions": []
Expand Down
2 changes: 0 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,6 @@
"**/Cargo.lock": true,
"src/vs/workbench/workbench.web.main.css": true,
"src/vs/workbench/workbench.desktop.main.css": true,
"src/vs/workbench/workbench.desktop.main.nls.js": true,
"src/vs/workbench/workbench.web.main.nls.js": true,
"build/**/*.js": true,
"out/**": true,
"out-build/**": true,
Expand Down
209 changes: 107 additions & 102 deletions build/azure-pipelines/product-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -216,104 +216,105 @@ extends:
parameters:
VSCODE_QUALITY: ${{ variables.VSCODE_QUALITY }}

- stage: CompileCLI
dependsOn: []
jobs:
- ${{ if eq(parameters.VSCODE_BUILD_LINUX, true) }}:
- job: CLILinuxX64
pool:
name: 1es-ubuntu-20.04-x64
os: linux
steps:
- template: build/azure-pipelines/linux/cli-build-linux.yml@self
parameters:
VSCODE_CHECK_ONLY: ${{ variables.VSCODE_CIBUILD }}
VSCODE_QUALITY: ${{ variables.VSCODE_QUALITY }}
VSCODE_BUILD_LINUX: ${{ parameters.VSCODE_BUILD_LINUX }}

- ${{ if and(eq(variables['VSCODE_CIBUILD'], false), or(eq(parameters.VSCODE_BUILD_LINUX_ARMHF, true), eq(parameters.VSCODE_BUILD_LINUX_ARM64, true))) }}:
- job: CLILinuxGnuARM
pool:
name: 1es-ubuntu-20.04-x64
os: linux
steps:
- template: build/azure-pipelines/linux/cli-build-linux.yml@self
parameters:
VSCODE_QUALITY: ${{ variables.VSCODE_QUALITY }}
VSCODE_BUILD_LINUX_ARMHF: ${{ parameters.VSCODE_BUILD_LINUX_ARMHF }}
VSCODE_BUILD_LINUX_ARM64: ${{ parameters.VSCODE_BUILD_LINUX_ARM64 }}

- ${{ if and(eq(variables['VSCODE_CIBUILD'], false), eq(parameters.VSCODE_BUILD_ALPINE, true)) }}:
- job: CLIAlpineX64
pool:
name: 1es-ubuntu-20.04-x64
os: linux
steps:
- template: build/azure-pipelines/alpine/cli-build-alpine.yml@self
parameters:
VSCODE_QUALITY: ${{ variables.VSCODE_QUALITY }}
VSCODE_BUILD_ALPINE: ${{ parameters.VSCODE_BUILD_ALPINE }}

- ${{ if and(eq(variables['VSCODE_CIBUILD'], false), eq(parameters.VSCODE_BUILD_ALPINE_ARM64, true)) }}:
- job: CLIAlpineARM64
pool:
name: 1es-mariner-2.0-arm64
os: linux
hostArchitecture: arm64
container: ubuntu-2004-arm64
steps:
- template: build/azure-pipelines/alpine/cli-build-alpine.yml@self
parameters:
VSCODE_QUALITY: ${{ variables.VSCODE_QUALITY }}
VSCODE_BUILD_ALPINE_ARM64: ${{ parameters.VSCODE_BUILD_ALPINE_ARM64 }}

- ${{ if eq(parameters.VSCODE_BUILD_MACOS, true) }}:
- job: CLIMacOSX64
pool:
name: Azure Pipelines
image: macOS-13
os: macOS
steps:
- template: build/azure-pipelines/darwin/cli-build-darwin.yml@self
parameters:
VSCODE_CHECK_ONLY: ${{ variables.VSCODE_CIBUILD }}
VSCODE_QUALITY: ${{ variables.VSCODE_QUALITY }}
VSCODE_BUILD_MACOS: ${{ parameters.VSCODE_BUILD_MACOS }}

- ${{ if and(eq(variables['VSCODE_CIBUILD'], false), eq(parameters.VSCODE_BUILD_MACOS_ARM64, true)) }}:
- job: CLIMacOSARM64
pool:
name: Azure Pipelines
image: macOS-13
os: macOS
steps:
- template: build/azure-pipelines/darwin/cli-build-darwin.yml@self
parameters:
VSCODE_QUALITY: ${{ variables.VSCODE_QUALITY }}
VSCODE_BUILD_MACOS_ARM64: ${{ parameters.VSCODE_BUILD_MACOS_ARM64 }}

- ${{ if eq(parameters.VSCODE_BUILD_WIN32, true) }}:
- job: CLIWindowsX64
pool:
name: 1es-windows-2019-x64
os: windows
steps:
- template: build/azure-pipelines/win32/cli-build-win32.yml@self
parameters:
VSCODE_CHECK_ONLY: ${{ variables.VSCODE_CIBUILD }}
VSCODE_QUALITY: ${{ variables.VSCODE_QUALITY }}
VSCODE_BUILD_WIN32: ${{ parameters.VSCODE_BUILD_WIN32 }}

- ${{ if and(eq(variables['VSCODE_CIBUILD'], false), eq(parameters.VSCODE_BUILD_WIN32_ARM64, true)) }}:
- job: CLIWindowsARM64
pool:
name: 1es-windows-2019-x64
os: windows
steps:
- template: build/azure-pipelines/win32/cli-build-win32.yml@self
parameters:
VSCODE_QUALITY: ${{ variables.VSCODE_QUALITY }}
VSCODE_BUILD_WIN32_ARM64: ${{ parameters.VSCODE_BUILD_WIN32_ARM64 }}
- ${{ if or(eq(parameters.VSCODE_BUILD_LINUX, true),eq(parameters.VSCODE_BUILD_LINUX_ARMHF, true),eq(parameters.VSCODE_BUILD_LINUX_ARM64, true),eq(parameters.VSCODE_BUILD_ALPINE, true),eq(parameters.VSCODE_BUILD_ALPINE_ARM64, true),eq(parameters.VSCODE_BUILD_MACOS, true),eq(parameters.VSCODE_BUILD_MACOS_ARM64, true),eq(parameters.VSCODE_BUILD_WIN32, true),eq(parameters.VSCODE_BUILD_WIN32_ARM64, true)) }}:
- stage: CompileCLI
dependsOn: []
jobs:
- ${{ if eq(parameters.VSCODE_BUILD_LINUX, true) }}:
- job: CLILinuxX64
pool:
name: 1es-ubuntu-20.04-x64
os: linux
steps:
- template: build/azure-pipelines/linux/cli-build-linux.yml@self
parameters:
VSCODE_CHECK_ONLY: ${{ variables.VSCODE_CIBUILD }}
VSCODE_QUALITY: ${{ variables.VSCODE_QUALITY }}
VSCODE_BUILD_LINUX: ${{ parameters.VSCODE_BUILD_LINUX }}

- ${{ if and(eq(variables['VSCODE_CIBUILD'], false), or(eq(parameters.VSCODE_BUILD_LINUX_ARMHF, true), eq(parameters.VSCODE_BUILD_LINUX_ARM64, true))) }}:
- job: CLILinuxGnuARM
pool:
name: 1es-ubuntu-20.04-x64
os: linux
steps:
- template: build/azure-pipelines/linux/cli-build-linux.yml@self
parameters:
VSCODE_QUALITY: ${{ variables.VSCODE_QUALITY }}
VSCODE_BUILD_LINUX_ARMHF: ${{ parameters.VSCODE_BUILD_LINUX_ARMHF }}
VSCODE_BUILD_LINUX_ARM64: ${{ parameters.VSCODE_BUILD_LINUX_ARM64 }}

- ${{ if and(eq(variables['VSCODE_CIBUILD'], false), eq(parameters.VSCODE_BUILD_ALPINE, true)) }}:
- job: CLIAlpineX64
pool:
name: 1es-ubuntu-20.04-x64
os: linux
steps:
- template: build/azure-pipelines/alpine/cli-build-alpine.yml@self
parameters:
VSCODE_QUALITY: ${{ variables.VSCODE_QUALITY }}
VSCODE_BUILD_ALPINE: ${{ parameters.VSCODE_BUILD_ALPINE }}

- ${{ if and(eq(variables['VSCODE_CIBUILD'], false), eq(parameters.VSCODE_BUILD_ALPINE_ARM64, true)) }}:
- job: CLIAlpineARM64
pool:
name: 1es-mariner-2.0-arm64
os: linux
hostArchitecture: arm64
container: ubuntu-2004-arm64
steps:
- template: build/azure-pipelines/alpine/cli-build-alpine.yml@self
parameters:
VSCODE_QUALITY: ${{ variables.VSCODE_QUALITY }}
VSCODE_BUILD_ALPINE_ARM64: ${{ parameters.VSCODE_BUILD_ALPINE_ARM64 }}

- ${{ if eq(parameters.VSCODE_BUILD_MACOS, true) }}:
- job: CLIMacOSX64
pool:
name: Azure Pipelines
image: macOS-13
os: macOS
steps:
- template: build/azure-pipelines/darwin/cli-build-darwin.yml@self
parameters:
VSCODE_CHECK_ONLY: ${{ variables.VSCODE_CIBUILD }}
VSCODE_QUALITY: ${{ variables.VSCODE_QUALITY }}
VSCODE_BUILD_MACOS: ${{ parameters.VSCODE_BUILD_MACOS }}

- ${{ if and(eq(variables['VSCODE_CIBUILD'], false), eq(parameters.VSCODE_BUILD_MACOS_ARM64, true)) }}:
- job: CLIMacOSARM64
pool:
name: Azure Pipelines
image: macOS-13
os: macOS
steps:
- template: build/azure-pipelines/darwin/cli-build-darwin.yml@self
parameters:
VSCODE_QUALITY: ${{ variables.VSCODE_QUALITY }}
VSCODE_BUILD_MACOS_ARM64: ${{ parameters.VSCODE_BUILD_MACOS_ARM64 }}

- ${{ if eq(parameters.VSCODE_BUILD_WIN32, true) }}:
- job: CLIWindowsX64
pool:
name: 1es-windows-2019-x64
os: windows
steps:
- template: build/azure-pipelines/win32/cli-build-win32.yml@self
parameters:
VSCODE_CHECK_ONLY: ${{ variables.VSCODE_CIBUILD }}
VSCODE_QUALITY: ${{ variables.VSCODE_QUALITY }}
VSCODE_BUILD_WIN32: ${{ parameters.VSCODE_BUILD_WIN32 }}

- ${{ if and(eq(variables['VSCODE_CIBUILD'], false), eq(parameters.VSCODE_BUILD_WIN32_ARM64, true)) }}:
- job: CLIWindowsARM64
pool:
name: 1es-windows-2019-x64
os: windows
steps:
- template: build/azure-pipelines/win32/cli-build-win32.yml@self
parameters:
VSCODE_QUALITY: ${{ variables.VSCODE_QUALITY }}
VSCODE_BUILD_WIN32_ARM64: ${{ parameters.VSCODE_BUILD_WIN32_ARM64 }}

- stage: CustomSDL
dependsOn: []
Expand All @@ -331,7 +332,8 @@ extends:
- stage: Windows
dependsOn:
- Compile
- CompileCLI
- ${{ if or(eq(parameters.VSCODE_BUILD_LINUX, true),eq(parameters.VSCODE_BUILD_LINUX_ARMHF, true),eq(parameters.VSCODE_BUILD_LINUX_ARM64, true),eq(parameters.VSCODE_BUILD_ALPINE, true),eq(parameters.VSCODE_BUILD_ALPINE_ARM64, true),eq(parameters.VSCODE_BUILD_MACOS, true),eq(parameters.VSCODE_BUILD_MACOS_ARM64, true),eq(parameters.VSCODE_BUILD_WIN32, true),eq(parameters.VSCODE_BUILD_WIN32_ARM64, true)) }}:
- CompileCLI
pool:
name: 1es-windows-2019-x64
os: windows
Expand Down Expand Up @@ -422,7 +424,8 @@ extends:
- stage: Linux
dependsOn:
- Compile
- CompileCLI
- ${{ if or(eq(parameters.VSCODE_BUILD_LINUX, true),eq(parameters.VSCODE_BUILD_LINUX_ARMHF, true),eq(parameters.VSCODE_BUILD_LINUX_ARM64, true),eq(parameters.VSCODE_BUILD_ALPINE, true),eq(parameters.VSCODE_BUILD_ALPINE_ARM64, true),eq(parameters.VSCODE_BUILD_MACOS, true),eq(parameters.VSCODE_BUILD_MACOS_ARM64, true),eq(parameters.VSCODE_BUILD_WIN32, true),eq(parameters.VSCODE_BUILD_WIN32_ARM64, true)) }}:
- CompileCLI
pool:
name: 1es-ubuntu-20.04-x64
os: linux
Expand Down Expand Up @@ -580,7 +583,8 @@ extends:
- stage: Alpine
dependsOn:
- Compile
- CompileCLI
- ${{ if or(eq(parameters.VSCODE_BUILD_LINUX, true),eq(parameters.VSCODE_BUILD_LINUX_ARMHF, true),eq(parameters.VSCODE_BUILD_LINUX_ARM64, true),eq(parameters.VSCODE_BUILD_ALPINE, true),eq(parameters.VSCODE_BUILD_ALPINE_ARM64, true),eq(parameters.VSCODE_BUILD_MACOS, true),eq(parameters.VSCODE_BUILD_MACOS_ARM64, true),eq(parameters.VSCODE_BUILD_WIN32, true),eq(parameters.VSCODE_BUILD_WIN32_ARM64, true)) }}:
- CompileCLI
pool:
name: 1es-ubuntu-20.04-x64
os: linux
Expand All @@ -606,7 +610,8 @@ extends:
- stage: macOS
dependsOn:
- Compile
- CompileCLI
- ${{ if or(eq(parameters.VSCODE_BUILD_LINUX, true),eq(parameters.VSCODE_BUILD_LINUX_ARMHF, true),eq(parameters.VSCODE_BUILD_LINUX_ARM64, true),eq(parameters.VSCODE_BUILD_ALPINE, true),eq(parameters.VSCODE_BUILD_ALPINE_ARM64, true),eq(parameters.VSCODE_BUILD_MACOS, true),eq(parameters.VSCODE_BUILD_MACOS_ARM64, true),eq(parameters.VSCODE_BUILD_WIN32, true),eq(parameters.VSCODE_BUILD_WIN32_ARM64, true)) }}:
- CompileCLI
pool:
name: Azure Pipelines
image: macOS-13
Expand Down
30 changes: 26 additions & 4 deletions build/azure-pipelines/upload-nlsmetadata.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading