94 KiB
Changelog 2020
v1.9.0 - 16/12/2020
- [cli] updated error reporting for the
download-pluginsscript #8798 - [cli] updated the
download-pluginsscript to report errors in case of unsupported file types #8797 - [core] added support for the
workbench.editor.closeOnFileDeletepreference #8731 - [core] fixed issue when attempting to kill the electron backend #8809
- [core] updated tree expansion busy indicators #8582
- [filesystem] fixed issue with pasting files/folders with the same name #8778
- [filesystem] updated
uploadto returnFileUploadResult#8766 - [mini-browser] fixed issue when serving
{{hostname}}as a pattern forTHEIA_MINI_BROWSER_HOST_PATTERN#8865 - [mini-browser] fixed missing resource response #8866
- [plugin] added support for the command
workbench.extensions.installExtension#8745 - [plugin] corrected identification of uri schemes according to
rfc3986#8832 - [plugin] fixed the
reveal()method for tree-views #8783 - [plugin] removed unnecessary
plugin-extdependencies #8831 - [plugin] updated
set htmlto pass the object field instead of method argument #8833 - [siw] added support for the
search.searchOnEditorModificationpreference #8765 - [siw] added support for the
search.searchOnTypepreference #8773
- [core]
FrontendApplicationContribution.onWillStopis now called for every contribution and will not bail early #8863- It will also be called when
application.confirmExitis set tonever.
- It will also be called when
- [
download:plugins] errors when downloading plugins now result in build failures, unless the--ignore-errorsflag is passed #8788 - [plugin]
LocalDirectoryPluginDeployerResolverhas moved frompackages/plugin-ext/src/main/node/resolvers/plugin-local-dir-resolver.tstopackages/plugin-ext/src/main/node/resolvers/local-file-plugin-deployer-resolver.tsand now derives fromLocalPluginDeployerResolver#8745 - [plugin] updated the
TreeViewsMain.$revealsecond parameter from string element id to string array element parent chain #8783 - [plugin] removed the unused
/plugin/:path(*)endpoint #8831 - [task] remove bash login shell when run from task to align with vscode #8834
v1.8.1 - 08/12/2020
- [core] added
THEIA_HOSTSenvironment variable (browser applications only) #8759- Used to filter incoming WebSocket connections: if
Originheader does not match the list of hosts it will be refused. - Value is a comma-separated list of domain names including the port if not
80nor443. - Example:
app.some.domain.com,app.other.domain:12345.
- Used to filter incoming WebSocket connections: if
- [core] deprecated
ElectronMessagingContribution, token validation is now done inElectronTokenValidatoras aWsRequestValidatorContribution#8759 - [mini-browser] added new unique endpoint #8759
{{uuid}}.mini-browser.{{hostname}}by default.- Can be configured via
THEIA_MINI_BROWSER_HOST_PATTERNenvironment variable. - Clients must setup this new hostname in their DNS resolvers.
v1.8.0 - 26/11/2020
- [api-tests] fixed issue with
saveabletest suite #8736 - [application-manager] enabled
monaco-editor.*sourcemaps when debugging #8744 - [console] updated the
anserimport workaround #8741 - [core] added ability to filter tree nodes #8540
- [debug] fixed issue where the debug-view is not properly updated when hidden #8645
- [documentation] improved documentation for
@theia/clielectron configurations #8699 - [documentation] improved documentation for
BackendApplicationContribution#8686 - [documentation] improved documentation for
MenuContribution#8715 - [documentation] improved documentation for
MessageService#8688 - [documentation] improved documentation for
PreferenceContribution#8677 - [documentation] improved documentation for
TaskAPI #8695 - [documentation] improved documentation for
TreeDecoratorandTreeDecoratorService#8698 - [documentation] updated publishing documentation for the repository #8719
- [editor] enabled
editor.semanticHighlighting.enabledby default #8593 - [electron] fixed issue with
application.confirmExitpreventing the app from closing #8732 - [file-search] fixed issue where file-search did not properly ignore the
.gitfolder #8721 - [monaco] added ability to compare quick-open entries #8185
- [output] improved extensibility of output channel commands #8733
- [plugin] added ability to use
viewIdas a progress location #8700 - [plugin] added logic to only store webviews when they have a corresponding serializer #8680
- [plugin] added support for
activeColorThemeandonDidChangeActiveColorThemeAPI #8710 - [plugin] added support for semantic highlighting #8593
- [plugin] fixed issue where problem matchers specified by task providers are not respected #8756
- [plugin] fixed issues with the
AuthenticationAPI #8725 - [plugin] fixed terminating hosted instance issue #8674
- [preview] fixed issue where empty document content was not properly rendered #8729
- [repo] updated
eslintand peer-dependencies to latest versions #8770 - [search-in-workspace] added ability to perform searches in dirty editors #8579
- [search-in-workspace] added ability to search opened editors outside the workspace #8646
- [security] updated
yargsdependency #8711 - [workspace] fixed missing binding of
WorkspaceFrontendContribution#8734
- [electron] removed
attachWillPreventUnloadmethod from the Electron main application. TheconfirmExitlogic is handled on the frontend #8732 - [file-search] deprecated dependency on
@theia/processand replaced its usage by node'schild_processAPI #8721
v1.7.0 - 29/10/2020
- [core] added
Save without Formattingcommand #8543 - [core] added ability to customize
CommandQuickOpenItem#8648 - [core] added support for
isWebcontext when clause #8530 - [core] added support for the
keyboard.dispatchpreference #8609 - [core] fixed the
UriAwareCommandHandlerpreventing the duplication of passed arguments #8592 - [core] fixed transparent widget backgrounds breaking branding #8448
- [core] improved extensibility of view containers for downstream extenders #8619
- [core] updated
Save Allto only format dirty editors #8554 - [debug] improved extensibility of debug event handlers #8616
- [debug] renamed the
Debugmain menu item toRun#8653 - [documentation] improved documentation for
FileServiceandFileSystemProvider#8596 - [documentation] improved documentation for
KeybindingandKeybindingContribution#8637 - [documentation] improved documentation for
LabelProviderandLabelProviderContribution#8569 - [documentation] improved documentation for
PreferenceService#8612 - [documentation] improved documentation for
WidgetManagerandWidgetOpenHandler#8644 - [documentation] improved documentation for the
@theia/previewextension #8625 - [editor] fixed inconsistent
showTextDocumentbehavior #8588 - [electron] added handling for
SIGPIPEerrors #8661 - [filesystem] refactored file watchers: #8546
- Added
FileSystemWatcherServicecomponent that should be a singleton centralizing watch requests for all clients. - Added
FileSystemWatcherServiceDispatcherto register yourself and listen to file change events.
- Added
- [git] updated
commit detailsanddiff viewrendering to respectlistandtreemodes [#8084] (https://github.com/eclipse-theia/theia/pull/8084) - [markers] updated and enhanced the 'problem-manager' tests #8604
- [mini-browser] updated deprecated
scrElementusage totarget#8663 - [monaco] fixed race condition on monaco editor initialization #8563
- [monaco] updated
Save Allcommand to format all open editors #8551 - [navigator] added additional handling for empty multi-root workspaces #8608
- [navigator] fixed the
doOpenNodeimplementation for hidden nodes #8659 - [plugin] added
environmentVariableCollectiontoPluginContext#8523 - [plugin] added
onStartupFinishedplugin activation event #8525 - [plugin] added logic to load plugin manifests on activation #8485
- [plugin] added support for
deprecatedstrikethrough for completion items #8553 - [plugin] bumped the default supported VS Code version to
1.50.0#8617 - [plugin] fixed XSS sink by sanitizing dialog
innerHTML#8388 - [plugin] fixed constrain types of providers #8617
- [plugin] fixed issue related to calling the activation of an extension through another extension #8542
- [plugin] fixed prototype pollution vulnerability #8675
- [plugin] fixed the dismissal of menus when clicking within webviews #8633
- [plugin] improved extensibility of
CodeEditorWidget#8672 - [plugin] updated
CommentsAPI to align with VS Code #8539 - [plugin] updated
workspaceFoldersAPI to returnundefinedwhen no folders are opened #8641 - [repo] added
no-tabsrule #8630 - [repo] reduced verbosity during build #8642
- [repo] reduced verbosity when building individual extensions #8642
- [repo] updated use of deprecated APIs in unit tests #8642
- [repo] upgraded to
@types/node@12typings #8556 - [scm] fixed 'circular structure to JSON' error for the accept input command #8606
- [scm] updated the commit textarea placeholder to include the current branch name #6156
- [vsx-registry] added support for the search parameter
includeAllVersions#8607 - [vsx-registry] added support for the search parameter
sortBy#8607 - [vsx-registry] added support for the search parameter
sortOrder#8607 - [vsx-registry] fixed the
searchquery when multiple search parameters are used #8607 - [vsx-registry] updated the
queryAPI endpoint #8570
- [core] change progress notification cancelable property default from
truetofalse#8479 - [filesystem]
NsfwFileSystemWatcherServeris deprecated and no longer used #8546 - [messages] updated handling of empty notifications and progress notifications so they will not be shown #8479
- [plugin-metrics] renamed
AnalyticsFromRequests.succesfulResponsestoAnalyticsFromRequests.successfulResponses#8560 - [plugin]
CodeEditorWidgetUti.getResourceUriis no longer exportable #8672
v1.6.0 - 24/09/2020
- [core] added ability to un-register keybindings for a given command #8269
- [core] added handling to only execute command via keybinding if it has an active handler #8420
- [core] updated the triggering of
tab-barcontext-menus to open without the need to be activated beforehand #6965 - [editor] added ability to set the default formatter #8446
- [electron] fixed the
rebuild:electroncommand for thedrivelistnative module #8454 - [filesystem] added handling to warn Linux users when they have exhausted
Inotifyhandles, along with instructions on how to fix it #8458 - [filesystem] fixed the deprecated
FileSystembinding to return an instantiated instance rather than the class #8507 - [keymaps] added handling to prevent URL hash changes when editing keybindings #8502
- [lint] added XSS sink detection eslint rules #8481
- [output] renamed
output-widget.tsxtooutput-widget.ts#8499 - [output] updated logic to allow clients to customize channel creation #8476
- [plugin] added
CompletionItemTagenum #8517 - [plugin] added
DebugConsoleModeenum #8513 - [plugin] added
authenticationplugin API #8402 - [plugin] added
revealInExplorercommand #8496 - [plugin] fixed issue related to getting the default value from
globalState/workspaceState#8424 - [plugin] removed superfluous channel caching for extensions #8476
- [plugin] updated
vscode.findFilesAPI to handle ignored files #8452 - [plugin] updated plugin storage path to be FIPS-compliant #8379
- [plugin] updated task ID generation logic #8379
- [preferences] updated the rendering of preference category headers and leaves #8512
- [scm] fixed activation request of the scm-widget #8508
- [search-in-workspace] added handling to respect the
files.excludepreference when searching #8433 - [timeline] added the
@theia/timelineextension #7997
- [core] context-menus for
tab-barsnow require anEventto be passed to execute commands without activating the shelltab-bar#6965- Removed logic from
TabBarRenderer.handleContextMenuEvent()to support triggering context-menus without the need to activate the widget. - When registering a command,
Eventshould be passed, else commands will not work correctly as they do no longer rely on the activation oftab-bars.
- Removed logic from
- [core] refactored
findTitle()andfindTabBar()moving them fromcommon-frontend-contribution.tstoapplication-shell.ts#6965
v1.5.0 - 27/08/2020
- [application-manager] fixed issue regarding reloading electron windows #8345
- [application-package] fixed incorrect app config defaults #8355
- [cli] updated
download:pluginsscript to usedecompress#8315 - [core] added
badgecount for theproblems-view#8156 - [core] added setting menu items to the sidebar bottom menus #8372
- [core] added support for
badgecount tab decorations #8156 - [core] added support for registering custom menu nodes #8404
- [core] added support for sidebar bottom menus #8372
- [core] added support for tree indent guidelines #8298
- [core] fixed submenu ordering #8377
- [core] fixed the menu widget layout #8419
- [core] updated extensibility of
DefaultUriLabelProviderContribution#8281 - [debug] added
badgecount for active debug sessions #8342 - [debug] fixed debug exception height computation #8382
- [dependencies] updated
node-gypto7.0.0#8216 - [documentation] updated extension documentation #8279
- [filesystem] added handling to prevent opening files which are too large #8152
- [filesystem] added handling to prompt end-users before opening binary files #8152
- [keymaps] updated keymaps to use monaco models #8313
- [monaco] added handling to prevent opening dirty editors if
autoSaveis enabled #8329 - [monaco] updated grammar collision logging #8418
- [monaco] upgraded to monaco
0.20.0#8010 - [navigator] added
badgecount for dirty editors in theexplorer#8316 - [navigator] updated
opencommand to only be enabled for files #8228 - [navigator] updated duplicate keybinding for opening the preferences widget #8256
- [output] exposed
preserveFocustoOutputChannel#showto reveal but not activate the widget #8243 - [output] fixed editor resizing issue #8362
- [plugin] added handling to prevent activating plugins eagerly on unsupported events #8396
- [plugin] added support for
ResourceLabelFormatterAPI #8187 - [plugin] added support for
vscode.workspace.fsAPI #7908 - [plugin] fixed
local-dirpath resolution #8385 - [plugin] marked
onFileSystemevent as supported #8320 - [preferences] added input field validation for numbers #8264
- [preferences] removed hardcoded constants #8313
- [scm] added
collapse-allcommand and toolbar item #8247 - [scm] added
badgecount for thescm-view#8156 - [security] fixed usage of
stylesheet.innerHTML#8397 - [security] updated version range of
decompressto fix the known security vulnerability #8924- Note: the updated dependency may have a performance impact on the deployment of plugins.
- [task] removed superfluous notifications when tasks are started / ended #8331
- [tests] added api integration tests for
scm#8231 - [electron] Electron applications can now be configured/extended through
inversify. Added newelectronMainextension points to provide inversify container modules. #8076
-
[core] removed
KeybindingRegistry#getScopedKeybindingsForCommand#8283 -
[application-package] removed
isOutdatedfromExtensionPackage#8295 -
[application-package] removed
getLatestVersionfromExtensionPackage#8295 -
[application-package] removed
getVersionRangefromExtensionPackage#8295 -
[application-package] removed
resolveVersionRangefromExtensionPackage#8295 -
[output]
OutputWidget#setInputhas been removed. The Output view automatically shows the channel when callingOutputChannel#show. Moved theOutputCommandsnamespace from theoutput-contributionto its dedicatedoutput-commandsmodule to overcome a DI cycle. #8243 -
[example-app] updated
yarn.lockso that the latest version ofvscode-ripgrepis used (v1.8.0). This way we can benefit from the recently added support for it using proxy settings when fetching the platform-specificripgrepexecutable, after npm package install. This should make it a lot easier to build our example application in corporate settings, behind a firewall. #8280 -
[filesystem]
FileSystemandFileSystemWatcherservices are deprecated #7908- On the backend there is no more
FileSystemimplementation. One has to use Node.js APIs instead. - On the frontend, the
FileServiceshould be used instead. It was ported from VS Code for compatibility with VS Code extensions. - On the frontend, the
EnvVariableServershould be used instead to access the current user home and available drives.
- On the backend there is no more
-
[userstorage]
UserStorageServicewas replaced by the user data fs provider #7908 -
[webview] webview resources are streamed instead of loading one by one the entire content and blocking the web socket #8359
-
[user-storage] settings URI must start with
/userroot to satisfy expectations ofFileService#8313 -
[electron] Removed the
set-window-optionsandget-persisted-window-options-additionsElectron IPC handlers from the Electron Main process. -
[monaco]
MonacoWorkspace.applyBulkEditdoes not open any editors anymore to avoid blocking #8329 -
[theming] Default color and icon themes should be declared in the application
package.json. #8381"theia": { "frontend": { "config": { "defaultTheme": "light", "defaultIconTheme": "vs-seti" } } }, -
[repo] support for
Node 10is dropped. #8290- From now on, Node.js
12.xis required when building.
The recommended minimum version is aligned withelectron(Node.js12.14.1).
- From now on, Node.js
v1.4.0 - 30/07/2020
- [core] added support for Node.js
12.x#7968- From now on, you can use Node.js
12.xto build Theia from sources. The recommended minimum version is aligned withelectron(Node.js12.14.1). - Support for Node.js
10.xwill be dropped in one of the forthcoming releases.
- From now on, you can use Node.js
- [core] fixed handling of environment variables on Windows #7973
- [core] fixed issue when selecting a tree node after performing a manual scroll #8154
- [debug] added a
select and rundebug statusbar item #8134 - [debug] added handling to perform
savewhen starting a debug session #8115 - [debug] addressed an issue not awaiting the result of the debug handler #8117
- [editor] added handling to perform a
save allwhen turningauto-saveon #8163 - [editor] improved extensibility of menu and keybinding contributions #8188
- [git] fixed the opening of deleted files #8107
- [markers] added
problems.autoRevealpreference to control sync between editors and the problem-view #8172 - [monaco] improved extensibility of menu and keybinding contributions #8188
- [monaco] normalized base pattern path to support different operating systems #8268
- [monaco] removed unused dependencies #8109
- [navigator] added
copy relative pathto the explorer context-menu and command palette #8092 - [output] added
copy allcontext-menu item for the output-view #8057 - [plugin] added command
copyRelativeFilePath#8092 - [plugin] added support for
resolveDebugConfigurationWithSubstitutedVariablesAPI #8253 - [plugin] added support for
vscode.workspace.findTextInFilesAPI #7868 - [plugin] added support for theme icons #8267
- [plugin] fixed focused handling of webviews when dismissing the quick-open widget #8137
- [plugin] fixed the display of file-icons with a dot in the name #7680
- [plugin] fixed the modal dialog max size and text-wrapping #8080
- [plugin] improved handling of the plugin host activation exceptions #8103
- [plugin] removed unnecessary slash at the end of the
pluginPath#8045 - [plugin] updated logic to allow
Commandtype in statusbar items #8253 - [plugin] updated logic to allow
vsixwithout publishers to be loaded #8196 - [repo] removed unused resolution for
vscode-json-languageserver#8132 - [search-in-workspace] improved search behavior to only trigger search on input change or ENTER #8229
- [task] fixed an issue where
onDidEndTaskProcesswas not fired for plugins when task ended #8141 - [task] introduced a token to scope contributed tasks #7996
- [terminal] fixed xterm issue causing an extraneous 'cursor-like' overlay element #8204
- [test] improved api-tests by increasing timeout so plugin views can be properly prepared #8151
- [test] updated api-tests to use tmp directory for user data #8151
- [vsx-registry] fixed the
licenseUrllink for builtin and installed extensions #8095 - [vsx-registry] improved styling of the detailed extension view #8086
- [workspace] improved extensibility of menu and keybinding contributions #8188
- [core] fixed typo (
matchKeybidingtomatchKeybinding) inKeybindingRegistry#8193 - [preferences] removed unused variable
PreferencesWidget.COMMAND_LABEL#8249 - [preferences] renamed file
preference-contribution.tstopreferences-contribution.ts#8237 - [terminal] fixed typo (
rezizetoresize) inTerminalWidget#8193 - [json] replaced
@theia/jsonTheia extension withvscode.json-language-featuresVS Code extension #8112- You can register JSON validations at application startup by implementing
JsonSchemaContributionTheia contribution point. - Alternatively you can provide JSON validations using VS Code contributes.jsonValidation contribution point.
- You can register JSON validations at application startup by implementing
- [user-storage] settings URI must be an absolute to satisfy expectations of
vscode.json-language-features#8112 - [languages]
@theia/languagesextension is deprecated, use VS Code extensions to provide language smartness: https://code.visualstudio.com/api/language-extensions/language-server-extension-guide #8112
v1.3.0 - 25/06/2020
- [cli] updated the download script to warn about mandatory
theiaPluginsfield #8058 - [core] added
copy pathcommand #7934 - [core] added missing
vscode-languageserver-protocoldependency #8036 - [core] adds support for ordering submenus #7963
- [core] implemented a context-menu for
inputandtextAreafields #7943 - [core] improved sub-classing of
messaging#8008 - [core] updated
reactandreact-domto v16.8 #7883 - [debug] added support for inline variable values #7921
- [editor] updated the default tokenization length #8027
- [filesystem] exposed
nsfwto downstreamNsfwFilesystemWatcher#7465 - [filesystem] fixed file filter issue in the
FileDialog#8073 - [filesystem] improved
isInSyncmethod #8044 - [filesystem] updated minimatch when ignoring to include folders starting with a dot #8074
- [markers] added the
clear-allcommand for the problems-view #8002 - [monaco] added support for
vscode-builtin-css-language-features#7972 - [monaco] added support for
vscode-builtin-html-language-features#7972 - [monaco] exposed
toOpenModelmethod #8024 - [output] added scroll-lock to the output view #7570
- [output] added support for special output URI characters #8046
- [plugin] added command
copyFilePath#7934 - [plugin] added support for
env.uiKindAPI #8038 - [plugin] added support for
workbench.view.explorercommand #7965 - [plugin] added support for the
Task2class #8000 - [plugin] added the registration of view-containers in the
open viewmenu #8034 - [plugin] fixed handling to not fail if a command returns a non-serializable result or error #7957
- [plugin] implemented the pseudo terminal plugin API #7925
- [plugin] improved activation of views to ensure they are ready before activated #7957
- [preferences] fixed modified scope label for updated preferences #8025
- [preferences] improved the statefulness of the preferences when switching scopes #7936
- [preview] added sanitization of the markdown text for security purposes #7971
- [scm] added multi-select support for the 'source control manager' view #7900
- [scm] fixed the
scmtree to sort results correctly #8048 - [search-in-workspace] fixed incorrect or duplicate search results #7990
- [task] added
detailproperty to the task configuration schema #8000 - [task] added support to update user-level tasks #7928
- [task] fixed error due to incorrect
RevealKindandPanelKindenums #7982 - [task] included global tasks in the 'configure tasks' menu #7929
- [vsx-registry] adjusted the width of the search input #7984
- [vsx-registry] included 'extensions-view' in the default layout #7944
- [workspace] added logic preventing arbitrary files from being opened as a workspace #7922
Breaking Changes:
- [task] Widened the scope of some methods in TaskManager and TaskConfigurations from string to TaskConfigurationScope. This is only breaking for extenders, not callers. #7928
- [shell] updated
ApplicationShell.TrackableWidgetProvider.getTrackableWidgetsto be synchronous in order to register child widgets in the same tick #7957- use
ApplicationShell.TrackableWidgetProvider.onDidChangeTrackableWidgetsif child widgets are added asynchronously
- use
v1.2.0 - 28/05/2020
- [application-manager] added ability for clients to add
windowOptionsusing an IPC-Event #7803 - [application-package] added ability for clients to change the default
windowOptions#7803 - [cli] improved the handling of the
download:pluginsscript #7747 - [cli] support proxy settings in the
download:pluginsscript #7747 - [cli] updated the
download:pluginsscript to display errors at the end of the script #7881 - [core] added handling of nested default values in preference proxies #6921
- [core] added handling to properly cleanup
toDisposeOnActiveChanged#7894 - [core] added handling to respect the keybinding scope and registration order during evaluation #7839
- [core] added support for
next/previoustab group commands #7707 - [core] added support for
next/previoustab in group commands #7707 - [core] fixed collapsed state when restoring view-container parts #7893
- [dependency] fixed issue with
momentjsdependency #7727 - [dependency] upgraded
decompressto4.2.0#7715 - [dependency] upgraded
uuidto8.0.0#7749 - [dependency] upgraded to TypeScript
3.9.2#7807 - [editor-preview] improved the editor-preview height #6921
- [editor] improved focus handling of editors to default to the last visible editor #7707
- [electron] fixed rendering of the electron context-menu #7735
- [electron] fixed resolution of hostname placeholder #7823
- [electron] fixed the rendering of webviews on electron #7847
- [electron] improved rendering of electron context-menus to hide disabled menu items #7869
- [electron] removed global shortcuts if the electron window is not focused #7817
- [file-search] improved the handling of the quick-file open #7846
- [filesystem] fixed issue where file-icons were not properly aligned when the file name is truncated #7730
- [getting-started] updated the documentation urls #7855
- [git] added handling to set upstream remote branch when pushing #7866
- [git] fixed issue causing no repositories to be found #7870
- [monaco] added handling of internal open calls with the
OpenerService#6921 - [monaco] added handling to only focus the editor if it is revealed #7903
- [monaco] fixed issue to detect languages on mime association changes #7805
- [monaco] fixed the border color for the find widget #7835
- [navigator] added handling to select newly created files/folders in the explorer #7762
- [output] improved the output-view display #7827
- [plugin] added handling of quick pick/input cancellations #6921
- [plugin] added support for
CompletionItem.rangeshape #7820 - [plugin] added support for
explorer.newFoldercommand #7843 - [plugin] added support for
workbench.action.revertAndCloseActiveEditorAPI #7702 - [plugin] added support for the
vscode.workspace.fsAPIs for registered filesystem providers only (not yet real file system) #7824 - [plugin] added support for the
workbench.action.openRecentcommand #7812 - [plugin] added support for the
workspaceAPIonDidCreateFiles#7718 - [plugin] added support for the
workspaceAPIonDidDeleteFiles#7718 - [plugin] added support for the
workspaceAPIonDidRenameFiles#7718 - [plugin] added support for the
workspaceAPIonWillCreateFiles#7718 - [plugin] added support for the
workspaceAPIonWillDeleteFiles#7718 - [plugin] added support for the
workspaceAPIonWillRenameFiles#7718 - [plugin] added support for the command
terminal.kill#7906 - [plugin] added support for the command
terminalSendSequence#7906 - [plugin] added support for when-closures for the quick-view palette #6921
- [plugin] fixed
registerCommandAPI incompatibilities #7296 - [plugin] fixed issue where contributed views had blank square icons on reload #7756
- [plugin] fixed leaking filesystem resource #6921
- [plugin] fixed potential activation deadlock #6921
- [plugin] fixed synching of visible and active editors #6921
- [plugin] fixed the computing of external icon urls #6921
- [plugin] fixed the tree-view reveal #6921
- [plugin] fixed the update of quick-pick items #6921
- [plugin] updated handling of plugin folder paths #7799
- [plugin] updated handling to not require non-existing plugin main #7852
- [preferences] improved the
preferenceswidget user-interface #7105 - [scm] added
scm.defaultViewModepreference to control the display of thescmwidget #7717 - [scm] added handling to refresh widget on activation #7880
- [scm] added support for displaying the
scmview as a tree #7505 - [scm] fixed missing commit and amend functionality when opening a new workspace #7769
- [scm] fixed restoring last commit message #7818
- [task] added support for user-level task configurations #7620
- [task] fixed task execution on macOS with
zsh#7889 - [task] improved order of task configurations #7696
- [task] updated the when-closure when executing
Run Last Task#7890 - [terminal] added handling to detach the
TerminalSearchWidgetbefore disposing theTerminalWidget#7882 - [workspace] added the
workspaceStatewhen-closure context #7846
Breaking changes:
- [application-package] moved
disallowReloadKeybindingunder theelectronsubsection #7803 - [core]
KeybindingRegistryregisters a new keybinding with a higher priority than previously in the same scope #7839 - [scm] added support for
tree view modein thescmview #7505- classes that currently extend
ScmWidgetwill likely require changes.
- classes that currently extend
- [task] removed
taskIdfromTaskTerminalWidgetOpenerOptions#7765
v1.1.0 - 30/04/2020
- [application-manager] added meta tag to enable fullscreen on iOS devices #7663
- [application-package] added warning if an unknown target is provided #7578
- [application-package] updated default application name from 'Theia' to 'Eclipse Theia' #7656
- [cli] improved the
download:pluginsscript including performance and error handling #7677 - [cli] updated the
download:pluginsscript to include colors for better visibility #7648 - [core] added functionality to prevent pasting into the active editor when closing a tab with a middle mouse click #7565
- [core] added support to allow providing a custom node for ReactWidget #7422
- [core] aligned max listeners check with VS Code expectations #7508
- [core] fixed 'recently used commands' to be only added when triggered by the quick-command palette #7552
- [core] fixed 'recently used commands': #7562
- added sorting of commands based on their human-readable label
- fixed issue where recently used commands where not correctly separated by a border and groupName
- [core] fixed issue where menu args where unnecessarily wrapped into another array #7622
- [core] fixed leaking
DisposableCollection.onDisposeevent #7508 - [core] fixed release of leaking editor from quick-open and goto references #7508
- [core] improved display for the 'Remove Folder from Workspace` dialog #7449
- [core] upgraded
nsfwto 1.2.9 #7535 - [core] upgraded
vscode-urito version ^2.1.1 #7506 - [core] upgraded to LSP 6.0.0 #7149
- [documentation] updated developing documentation for Windows #7640
- [editor] updated binding of
EditorCommandContributionandEditorMenuContribution#7569 - [electron] added functionality to fork the backend unless
--no-clusterflag is specified #7386 - [electron] added functionality to pass arguments to the backend process #7386
- [electron] fixed setting
process.versions.electronfor sub-processes #7386 - [git] disabled the 'Git Initialize Repository' action when no workspace is opened #7492
- [git] updated
successExitCodesandexpectedErrorsto arrays to fix serialization #7627 - [keymaps] updated the keybindings-widget sorting, and added category as part of the label if applicable #7532
- [monaco] added handling to respect
editor.maxTokenizationLineLengthpreference #7618 - [monaco] fixed incorrect
isChordcall #7468 - [monaco] reworked Monaco commands to align with VS Code #7539
- [monaco] upgraded
onigasmto version ^2.2.0 fixing syntax-highlighting #7610 - [monaco] upgraded to Monaco version 0.19.3 #7149
- [outline-view] fixed keybinding collision between toggling the outline-view and performing 'format document' on Linux #7694
- [output] added
Select Allin the output-view #7523 - [output] added optional argument
severitytoOutputChannel.appendLinemethod for coloring #7549 - [plugin-ext] fixed custom icon themes and icons for Electron #7583
- [plugin] added ability to override built-in commands #7592
- [plugin] added additional
vscode.execute...commands #7563 - [plugin] added functionality preventing F1 and ctrlcmd+p hotkeys in a webview iframe #7496
- [plugin] added functionality which makes
env.appNamereuse the value ofapplicationName(as defined in thepackage.json) #7642 - [plugin] added sorting of plugin in the plugins-view #7601
- [plugin] added support for
SelectionRangeandSelectionRangeProviderVS Code API #7534 - [plugin] aligned message-service behavior with VS Code #7500
- [plugin] fixed error handling when selecting an invalid node for hosted-plugins #7636
- [plugin] fixed incompatibility issues with
SaveFileDialog#7461 - [plugin] fixed late textmate-grammar activation #7544
- [plugin] fixed overriding of built-in Monaco commands #7539
- [plugin] fixed parsing of DAP messages to match VS Code API #7517
- [plugin] removed filtering of duplicate tasks #7676
- [plugin] removed registration of commands provided by Monaco #7592
- [plugin] removed unused injections of
ResourceProvider#7595 - [plugin] updated the VS Code API version to 1.44.0 #7564
- [preferences] added functionality which defers change events in the same tick #7676
- [scm] fixed
overviewRulerandminimaptheming for SCM decorations #7330 - [task] added functionality which saves the scope as part of the
TaskService.lastTask#7553 - [task] added functionality which sets focus to the terminal that the attached task is running from #7452
- [task] added support for
presentation.clearin the task configuration schema #7454 - [task] added support for
presentation.echoin the task configuration schema #7503 - [task] added support for
presentation.panelin the task configuration schema #7260 - [task] added support for
presentation.showReuseMessagein the task configuration schema #7454 - [task] added support for modifying existing problem matchers #7455
- [task] added support for user-defined labels for detected tasks #7574
- [task] fixed
presentation.revealandpresentation.focusfor detected tasks #7548 - [task] fixed issue to only allow running selected texts in a user terminal #7453
- [terminal] added new terminal preferences #7660
terminal.integrated.shell.linuxterminal.integrated.shell.osxterminal.integrated.shell.windowsterminal.integrated.shellArgs.linuxterminal.integrated.shellArgs.osxterminal.integrated.shellArgs.windows
- [test] added API tests for the TypeScript language #7265
- [test] fixed API tests on Windows #7655
- [vsx-registry] fixed minor font-family inconsistency with the download count #7380
- [vsx-registry] fixed rendering of rating and downloads if they have no value #7380
- [vsx-registry] updated styling of extension information #7439
- [workspace] added normalization of workspace root paths #7598
- [workspace] fixed incorrect statusbar color when in a multi-root workspace without any root folders #7688
Breaking changes:
- [core]
CommandRegistry.registerHandlerregisters a new handler with a higher priority than previously #7539 - [plugin] deprecated is now
PluginModel.packagePathandPluginModel.packageUrishould be used instead #7583 - [plugin] removed
configStorageargument fromPluginManager.registerPlugin#7265- use
PluginManager.configStorageproperty instead. #7265
- use
- [process]
TerminalProcessdoesn't handle shell quoting, the shell process arguments must be prepared from the caller #6836- Removed all methods related to shell escaping inside this class. You should use functions located in
@theia/process/lib/common/shell-quoting.tsin order to process arguments for shells.
- Removed all methods related to shell escaping inside this class. You should use functions located in
- [process/terminal] moved shell escaping utilities into
@theia/process/lib/common/shell-quotingand@theia/process/lib/common/shell-command-builderfor creating shell inputs #6836
v1.0.0 - 26/03/2020
- [core] added functionality to ensure that nodes are refreshed properly on tree expansion #7400
- [core] added loading state for trees #7249
- [core] added the ability to customize the layout of view-containers #6655
- [core] added the ability to customize the stored state of view-containers #6655
- [core] fixed keybindings for special numpad keys in editors #7329
- [core] fixed missing progress events #7314
- [core] updated 'close' commands to respect
widget.closableproperty #7278 - [core] updated
inputValidationtheming #7351 - [core] updated command execution to always use
CommandService.execute#7326 - [debug] added functionality to lazily update of stack frames of all threads in all-stop mode #7281
- [documentation] updated prerequisites to include
build-essential#7256 - [documentation] updated the readme of individual extensions to include additional information, and links to generated API docs #7254
- [electron] updated token check to use
timingSafeEqual#7308 - [file-search] updated
ripgrepto search files in hidden folders #7333 - [git] fixed duplicate entries for 'Git History' on merge operations #7188
- [markers] added foreground coloring of nodes in the
explorerto reflect problem markers #6863 - [markers] added sorting of diagnostic markers for a given resource #7313
- [markers] updated format of diagnostic markers in the
problems-view#7344 - [messages] updated to disallow arbitrary HTML in message content #7289
- [mini-browser] updated
MiniBrowserEndpoint.defaultHandler()response for non mime-db files #7356 - [navigator] added busy progress for the explorer #7249
- [plugin] added
workbench.action.addRootFoldercommand #7350 - [plugin] added
workbench.action.openSettingscommand #7320 - [plugin] added frontend APIs to listen when plugins are initially loaded #6655
- [plugin] added functionality to ensure that node-based debug adapters spawn the same node version as the framework #7294
- [plugin] added support for User-defined plugins #6655
- [plugin] added support for killing sub-threads run by shell scripts #7391
- [plugin] added support for loading plugins from symbolic links #7242
- [plugin] exposed frontend API to access loaded plugins metadata #6655
- [plugin] fixed 'find all references' for the typescript built-in plugin #7055
- [plugin] fixed
storagePathto returnundefinedwhen necessary #7394 - [plugin] fixed leaking plugins (codelens) #7238
- [preferences] added a new preference to silence notifications #7195
- [scm] fixed focus border for commit message textarea #7340
- [terminal] added new
terminal.integrated.cursorBlinkingpreference #7284 - [terminal] added new
terminal.integrated.cursorStylepreference #7284 - [terminal] added new
terminal.integrated.cursorWidthpreference #7284 - [terminal] added new
terminal.integrated.drawBoldTextInBrightColorspreference #7284 - [terminal] added new
terminal.integrated.fastScrollSensitivitypreference #7284 - [terminal] fixed
home,page-up,page-downshortcuts #7305 - [terminal] fixed color theming #7325
- [terminal] upgraded
xtermdependency #7121 - [vsx-registry] added a new
vsx-registryextension to manage plugins #6655 - [workspace] fixed issue where
NEW_FILEandNEW_FOLDERcould not be triggered under certain conditions #7302
Breaking changes:
- [debug] renamed
debuggingStaturBartodebuggingStatusBar#7409 - [plugin] renamed
CancelationTokenImpltoCancellationTokenImpl#7409 - [plugin] renamed
VIEW_ITEM_INLINE_MNUEtoVIEW_ITEM_INLINE_MENU#7409 - [scm | git] moved the
GitHistoryWidget(History View), andGitNavigableListWidgetto a new packaged namedscm-extra#6381- Renamed
GitHistoryWidgettoScmHistoryWidget - CSS classes have been also been moved, and renamed accordingly
- Renamed
- [task] removed
TaskAttachQuickOpenItem#7392 - [task] removed
TaskService.taskProviderRegistry#7418 - [task] renamed
TaskRestartRunningQuickOpenItemtoRunningTaskQuickOpenItem#7392 - [terminal] renamed
handleWroleWordOptionClickedtohandleWholeWordOptionClicked#7409 - [workspace] renamed
toDiposeOnUpdateCurrentWidgettotoDisposeOnUpdateCurrentWidget#7409
v0.16.0 - 27/02/2020
-
[cli] added an additional flag to the
download:pluginsscript #7123p=true: plugins should be preserved as they are (compressed).p=false(default): plugins should be uncompressed.
-
[cli] added API to create integration test pages #7029
-
[core] added a new React-based dialog type
ReactDialog#6855 -
[core] added ability to make the application data folder configurable #7214
-
[core] added additional commands to close main area widgets #7101
-
[core] added handling to dismiss any active menu when the quick palette is opened #7136
-
[core] added handling to ensure that disabled keybindings do not shadow enabled ones #7022
-
[core] added support for icons in a submenu #7091
-
[core] fixed 'out of sync' error #7139
-
[core] fixed import in
lsp-types.ts#7075 -
[core] fixed set selection on right-click #7147
-
[core] fixed the
TOGGLE_MAXIMIZEDcommand #7012 -
[core] fixed the search-box for trees #7089
-
[core] fixed tree highlighting foreground color #7025
-
[core] updated
RecursivePartialto allow arrays #7201 -
[core] updated the
AboutDialogto include theapplicationName#7135 -
[core] updated the
DialogPropsto include: #7080maxWidth: control the maximum width allowed for a dialog.wordWrap: control the word wrapping behavior for content in the dialog.
-
[core] updated the
THEIA_ENV_REGEXP_EXCLUSION#7085 -
[debug] added ability to lazily update frames of all threads in all-stop mode #6869
-
[debug] fixed issue where breakpoints were incorrectly rendered on column 1 #7211
-
[documentation] updated code of conduct #7161
-
[editor] updated the log level for the
NavigationLocationService#7042 -
[electron] added default properties for
OpenDialog#7208 -
[electron] added handling so only the
BrowserWindowcan access backend HTTP services #7205 -
[electron] updated stat check handling for the save dialog #7197
-
[filesystem] updated the handling of deletions triggered by a user #7139
-
[git] added additional handling when a user attempts to amend without a previous commit #7033
-
[keymaps] updated the keyboard shortcuts widget font-size #7060
-
[markers] improved marker node descriptions #7209
-
[markers] updated marker tooltips to display full path to resource #7207
-
[mini-browser] added additional
HtmlHandlersupport #6969 -
[monaco] added handling to activate a grammar only for languages with a registered grammar #7110
-
[monaco] added support for array snippet prefixes #7177
-
[monaco] close an active menubar dropdown when the quick palette is launched #7136
-
[monaco] implemented support for multiple workspace folders in
MonacoWorkspace#7182 -
[plugin] added ability to customize the plugin host process #7181
-
[plugin] added functionality to expose the metadata scanner to the API #7134
-
[plugin] added functionality to show progress on plugin activation #7017
-
[plugin] added handling to activate a language based on created mode #7110
-
[plugin] added handling to gracefully terminate plugin host processes without an rpc connection #7192
-
[plugin] added handling to prevent error on disabled performance API #7175
-
[plugin] fixed
window.showTextDocumentto allow opening resources withuntitledschema #6803 -
[plugin] implemented
readFilefor workspace filesystem #6980 -
[plugin] implemented
writeFilefor workspace filesystem #6980 -
[preferences] added functionality to use text models to update content #7110
-
[preferences] fixed display of file icons #7011
-
[preview] added ability to render
.markdownfiles #7234 -
[repo] added two new npm scripts: #7096
test:references: fails if typescript references are out of sync.prepare:references: updates typescript references, if required.
-
[repo] the
preparescript now updates typescript references. -
[repo] updated the
preparescript so it now updates typescript references #7096 -
[scm] fixed alignment of file icons #7041
-
[scm] fixed incorrect icon colors on hover #7044
-
[terminal] added a search widget to terminals #5471
-
[core] from now on, downstream projects can refine where the configuration files (such as
settings.json,keymaps.json,recentworkspace.json, etc.) will be stored by Theia. #4488
The default location remains the same:~/.theia, however it can be customized by overriding the#getConfigDirUrimethod of theEnvVariablesServerAPI. The easiest way is to subclass theEnvVariablesServerImpland rebind it in your backend module:// your-env-variables-server.ts: import { injectable } from 'inversify'; import { EnvVariablesServerImpl } from '@theia/core/lib/node/env-variables'; @injectable() export class YourEnvVariableServer extends EnvVariablesServerImpl { async getConfigDirUri(): Promise<string> { return 'file:///path/to/your/desired/config/dir'; } } // your-backend-application-module.ts: import { ContainerModule } from 'inversify'; import { EnvVariablesServer } from '@theia/core/lib/common/env-variables'; import { YourEnvVariableServer } from './your-env-variables-server'; export default new ContainerModule((bind, unbind, isBound, rebind) => { rebind(EnvVariablesServer).to(YourEnvVariableServer).inSingletonScope(); });
Breaking changes:
- [core] fixed typo (highligh -> highlight) in caption highlight fragment #7050
- [terminal] added new abstract methods to the TerminalWidget[#7179]:
scrollLineUp,scrollLineDown,scrollToTop,scrollPageUp,scrollPageDown - The release includes the removal of language-specific Theia extensions and other Theia extensions that are or can be replaced by equivalent VS Code extensions.
- Migration steps are available at the following wiki page
Consuming Builtin and External VS Code Extensions. - [debug-nodejs] removed the
@theia/debug-nodejsextension #6933- The extension will no longer be maintained by the project and remains in the Git history for anyone who would like to reference it or maintain it.
- [editorconfig] removed the
@theia/editorconfigextension #6933- The extension will no longer be maintained by the project and remains in the Git history for anyone who would like to reference it or maintain it.
- [java] removed the
@theia/javaextension #6933- The extension will no longer be maintained by the project and remains in the Git history for anyone who would like to reference it or maintain it.
- Please view the
theia-appstheia-java image for an example application which has been updated to use VS Code extensions instead of@theia/java.
- [java-debug] removed the
@theia/java-debugextension #6933- The extension will no longer be maintained by the project and remains in the Git history for anyone who would like to reference it or maintain it.
- Please view the
theia-appstheia-java image for an example application which has been updated to use VS Code extensions instead of@theia/java-debug.
- [merge-conflicts] removed the
@theia/merge-conflictsextension #6933- The extension will no longer be maintained by the project and remains in the Git history for anyone who would like to reference it or maintain it.
- [python] removed the
@theia/pythonextension #6933- The extension will no longer be maintained by the project and remains in the Git history for anyone who would like to reference it or maintain it.
- Please view the
theia-appstheia-python image for an example application which has been updated to use VS Code extensions instead of@theia/python.
- [textmate-grammars] removed the
@theia/textmate-grammarsextension #6933- The extension will no longer be maintained by the project and remains in the Git history for anyone who would like to reference it or maintain it.
- [tslint] removed the
@theia/tslintextension #6933- The extension will no longer be maintained by the project and remains in the Git history for anyone who would like to reference it or maintain it.
- [typescript] removed the
@theia/typescriptextension #6933- The extension will no longer be maintained by the project and remains in the Git history for anyone who would like to reference it or maintain it.
- Please view the
theia-appstheia-typescript image for an example application which has been updated to use VS Code extensions instead of@theia/typescript.
- Migration steps are available at the following wiki page
v0.15.0 - 30/01/2020
- [application-manager] added config to disable reloading windows #6981
- [application-manager] added meta viewport tag #6967
- [application-manager] fixed the circular dependency exclude path on Windows #6893
- [console] fixed the debug console user input alignment #6958
- [core] fixed XSS vulnerability in the browser sidebar #6988
- [core] fixed issue to close the websocket channel when a language server connection is closed #6854
- [core] fixed issue to exclude numpad keys from the keyboard mapping #6881
- [core] improved formatting of performance values in the logs #6858
- [core] updated handling of
ApplicationShell.getAreaForfor tabbars #6994 - [core] updated keybinding check in case full and partial bindings are registered #6934
- [core] updated logic to collapse panels on toggle view #6963
- [debug] added exception breakpoints support #5774
- [debug] added function breakpoints support #5774
- [debug] added inline breakpoints support #5774
- [debug] added watch expression support #5774
- [debug] fixed styling issues with the debug hover #6887
- [documentation] updated developing documentation for Windows #6893
- [editor] added
toggle minimapcommand and menu item #6843 - [editor] added
toggle render whitespacecommand and menu item #6843 - [editor] added
toggle word wrapcommand and menu item #6843 - [editor] added missing statusbar tooltip for
go to line#6770 - [editor] added missing statusbar tooltip for
select encoding#6770 - [editor] added missing statusbar tooltip for
select end of line sequence#6770 - [editor] added missing statusbar tooltip for
select indentation#6770 - [editor] added missing statusbar tooltip for
select language mode#6770 - [editor] updated the
go to linestatusbar item to trigger thego to linecommand directly #6770 - [file-search] improved the results obtained when performing a file search #6642
- [filesystem] fixed icon and file name alignment #6973
- [filesystem] improved the 'file has changed' dialog #6873
- [git] updated the
git checkoutstatusbar tooltip similarly to VS Code #6779 - [git] updated the version of
find-git-repositories#6850 - [keybindings] fixed an issue allowing users to change default keybindings #6880
- [keymaps] fixed column spacing for the keybindings-widget #6989
- [markers] added statusbar tooltip displaying the number of current problem markers by severity #6771
- [merge-conflicts] fixed the typo present in the
merge-conflictscommand category #6790 - [monaco] added normalization of textmate colors #6966
- [monaco] fixed issue with the quick-pick when there are no items #6870
- [monaco] fixed missing
awaiton workspace edits file creation #6851 - [monaco] fixed the
inspect developer tokencommand #6966 - [navigator] fixed race condition on contribution initialization #6817
- [plugin] added ability to handle
vscode.openFoldercommand #6928 - [plugin] added parallel resolution of plugin entries #6972
- [plugin] added the automatic removal of old session logs #6956
- By default only the last 10 (configurable using
--plugin-max-session-logs-folders=N) session folders are retained.
- By default only the last 10 (configurable using
- [plugin] fixed
workbench.action.closeActiveEditorcommand #6978 - [plugin] fixed header container alignment in the plugins-view #6983
- [plugin] fixed implementation of
showTextDocumentAPI #6824 - [plugin] fixed issue where tree-views were not properly displayed #6939
- [plugin] fixed issue with
DocumentsMainImpl.toEditorOpenerOptions#6824 - [plugin] fixed self-hosting on Windows #6316
- [preferences] fixed an indentation issue when using the preferences tree widget to add new preferences #6736
- [scripts] added the ability to perform parallel lerna execution on Windows #6893
- [search-in-workspace] improved the overall search performance #6789
- [task] added
processIdandterminalIdto theTaskExitedEvent#6825 - [task] added a new command to
restart running task#6811 - [task] added support for
presentation.revealandpresentation.focus#6814 - [task] updated private accessibility of
restartTaskso it can be called by others #6811 - [task] updated private accessibility of
terminateTaskso it can be called by others #6811 - [terminal] added handling to always open terminal links on touchevents (e.g. when tapping a link on iPad) #6875
- [terminal] fixed an issue regarding the
onDidChangeCurrentTerminalevent #6799 - [terminal] fixed an issue which prevents re-using integrated terminals which have child processes spawned #6769
- [terminal] improved the display of
new terminalin a multi-root workspace #6876 - [testing] added
API Integrationtesting framework #6852 - [workspace] fixed XSS vulnerability in the
new filedialog #6977
Breaking changes:
- [application-manager] updated
ApplicationPackageManager.start*to return an instance of a server child process instead of promise #6852. - [callhierarchy] updated CallHierarchyService to align with VS Code API #6924:
- Use LanguageSelector instead of language id.
- Use position instead of range for lookup of root symbol.
- Changed data structures to be like VS Code API.
- [cli] renamed generated webpack config to
gen-webpack.config.js#6852.webpack.config.jsis generated only once. It can be edited by users to customize bundling, but should be based ongen-webpack.config.jsto pick any changes in the generated config. If it does not have a reference togen-webpack.config.jsthen it will be regenerated. - [core] removed
virtual-renderer.react-renderershould be used instead #6885 - [core] removed
virtual-widget.react-widgetshould be used instead #6885 - [core] renamed method
registerComositionEventListeners()toregisterCompositionEventListeners()#6961 - [debug] removed
@theia/jsondependency. Applications should explicitly depend on@theia/jsoninstead #6647 - [plugin] renamed
gererateTimeFolderNametogenerateTimeFolderName#6956 - [preferences] removed
@theia/jsondependency. Applications should explicitly depend on@theia/jsoninstead #6647 - [task] renamed method
getStrigifiedTaskSchema()has been renamed togetStringifiedTaskSchema()#6780 - [task] renamed method
reorgnizeTasks()has been renamed toreorganizeTasks()#6780 - Support VS Code icon and color theming. #6475
- Theming: Before
input,textarea,selectandbuttonelements were styled in an ad-hoc manner, i.e. some were styled globally for a tag, other per a component and third with a dedicated css class name. Now Theia does not style these elements by default, but an extension developer should decide. Theia comes though with predefined css class names:theia-input,theia-selectandtheia-buttonto style input/textarea, select and button elements correspondingly. Existing components were refactored to use them. - Theming: Theia css colors are replaced with VS Code colors.
- One can reference VS Code color in css by prefixing them with
--theiaand replacing all dots with dashes. For examplewidget.shadowcolor can be referenced in css withvar(--theia-widget-shadow). - One can resolve a current color value programmatically with
ColorRegistry.getCurrentColor. - One can load a new color theme:
-
in the frontend module to enable it on startup
MonacoThemingService.register({ id: 'myDarkTheme', label: 'My Dark Theme', uiTheme: 'vs-dark', json: require('./relative/path/to/my_theme.json'), includes: { './included_theme.json': require('./relative/path/to/included_theme.json') } }); -
later from a file:
@inject(MonacoThemingService) protected readonly monacoThemeService: MonacoThemingService; this.monacoThemeService.register({ id: 'myDarkTheme', label: 'My Dark Theme', uiTheme: 'vs-dark', uri: 'file:///absolute/path/to/my_theme.json' }); -
or install from a VS Code extension.
-
- One should not introduce css color variables anymore or hardcode colors in css.
- One can contribute new colors by implementing
ColorContributioncontribution point and callingColorRegistry.register. It's important that new colors are derived from existing VS Code colors if one plans to allow installation of VS Code extension contributing color themes. Otherwise, there is no guarantee that new colors don't look alien for a random VS Code color theme. One can derive from an existing color, just by plainly referencing it, e.g.dark: 'widget.shadow', or applying transformations, e.g.dark: Color.lighten('widget.shadow', 0.4). - One can though specify values, without deriving from VS Code colors, for new colors in their own theme. See for example, how Light (Theia) theme overrides colors for the activity bar.
- One can reference VS Code color in css by prefixing them with
- Labeling:
LabelProvider.getIconshould be sync and fast to avoid blocking rendering and icon caching. One has to pass more specific elements to get a more specific icon. For example, one cannot answer precisely from a URI whether a folder or a file icon should be used. If a client wants to get a proper result then it should passFileStatfor example or provide ownLabelProviderContributionwhich derivesFileStatfrom a custom data structure and then callsLabelProvider.getIconagain. - Labeling:
LabelProviderContributionmethods can returnundefinedmeaning that the next contribution should be tried. - Tree:
TreeNode.name,TreeNode.descriptionandTreeNode.iconare deprecated and will be removed later. One has to provideLabelProviderContributionimplementation for a custom tree node structure. Before these attributes have to be computed for all nodes and stored as a part of the layout. From now on they will be computed only on demand for visible nodes. It decreases requirements to the local storage and allows to invalidate node appearance by simply re-rendering a tree.
- Theming: Before
- Updated
example-browserandexample-electronapplications to remove extensions which are instead contributed by VS Code builtin extensions #6883- Extensions removed from the example applications are deprecated and will be removed in the future. If adopters/extenders would like to continue using the deprecated extensions, they must be self-maintained and can be accessed through the repository's Git history.
- In order to fetch plugins remotely, the
@theia/cliscriptdownload:pluginscan be used:- In your
package.jsonyou can define:theiaPluginDir: to specify the folder in which to download plugins, in respect to yourpackage.jsontheiaPlugins: to specify the list of plugins in the form of"id": "url"
- In your