The Wayback Machine - https://web.archive.org/web/20190323012729/https://github.com/theia-ide/theia
Skip to content
Theia is a cloud & desktop IDE framework implemented in TypeScript.
Branch: master
Clone or download
simark editorconfig: Apply properties to Monaco editor when opening/switchin…
…g editor

Since commit 260d794 ("[editorconfig] Don't apply all properties on
open"), the editorconfig settings are not applied to the Monaco editor.
For example, if my .editorconfig file says that *.py files should use
tabs with a tab width of 7, I would expect the Monaco editor to be set
to "tab" and a tab width of 7 when I open a .py file.  At the moment,
this does not happen.

The method that applies these properties to the Monaco editor is
applyProperties.  This method is however not called anywhere outside
tests (the commit mentioned above removed the only call).

I have added back the call, such that when an editor is created or the
current editor changes, we apply the settings from the .editorconfig to
the Monaco editor.

I verified that the behavior the commit mentioned above meant to fix is
kept.  That is, no modification is done to the file contents as a result
of just opening the file (or switching to and editor where it is open).
Even if I have "trim_trailing_whitespace = true" in my .editorconfig,
opening the file does not cause the trailing whitespaces to be trimmed.
Pressing ctrl-s, however, does (even if the editor doesn't appear as
"dirty").

Fixes #4308

Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Latest commit 7d13d59 Mar 15, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github Add issue template. Feb 27, 2019
.theia fix #1106, fix #3540: support language specific preferences Feb 11, 2019
.vscode
configs
dev-packages #4551: Catch electron-store errors Mar 13, 2019
doc [minor] Trailing spaces in Developing.md Mar 2, 2019
examples
logo Update README.md Nov 26, 2018
packages editorconfig: Apply properties to Monaco editor when opening/switchin… Mar 22, 2019
scripts add check:hoisted command to theia cli Jan 23, 2019
.editorconfig Update .editorconfig Sep 20, 2018
.gitignore Add typedoc generator into plugin namespace Nov 12, 2018
.gitpod.yml
.npmignore
.travis.yml GH-707: Introduced the `@theia/typehierarchy` extension. Mar 7, 2019
.yarnrc
CHANGELOG.md
CODE_OF_CONDUCT.md Create CODE_OF_CONDUCT.md May 7, 2017
CONTRIBUTING.md [eclipse] prepare the initial contribution Jun 22, 2018
LICENSE [eclipse] prepare the initial contribution Jun 22, 2018
README.md
appveyor.yml Stabilize ui test suite (upgrade dependencies, increase timeouts, cle… Feb 14, 2019
lerna.json
package.json
tsconfig.json GH-707: Introduced the `@theia/typehierarchy` extension. Mar 7, 2019
tsfmt.json Add tsfmt rule to add space before parentheses of anonymous functions Dec 6, 2018
tslint.json
yarn.lock fix #4035: retry to download debug adapters on http or network errors Mar 6, 2019

README.md


Gitpod - Code Now PRs Welcome Spectrum Build Status Build status Open questions Open bugs

Eclipse Theia is an extensible platform to develop full-fledged multi-language Cloud & Desktop IDE-like products with state-of-the-art web technologies.

Theia

Website

Visit the Theia website for more documentation.

Scope

  • Establish a platform to build IDE-like products
  • Provide the end-user with a full-fledged multi-language IDE (not just a smart editor)
  • Support equally the paradigm of Cloud IDE and Desktop IDE
  • Provide support for multiple languages via the language and debug server protocols
  • Provide modern GUI with javascript UI libraries

Getting Started

Here you can find guides and examples for common scenarios:

Contributing

Read below to learn how to take part in improving Theia:

Feedback

Read below how to engage with Theia community:

  • Join the discussion on Spectrum.
  • Ask a question, request a new feature and file a bug with GitHub issues.
  • Star the repository to show your support.
  • Follow Theia on Twitter.

Roadmap

  • Debugging

    A visual debugger leveraging the Debug Server Protocol defined by the VS Code team.

  • Plug-in System

    A plug-in system supporting VS Code extensions.

  • Workbench Improvements

    Theia's workbench shell will be improved, such that the user can drag and drop widgets from the side bar to the main area and vice-versa.

  • Test Adapter Support

    Integration with testing frameworks, based on a Test Adapter Protocol.

  • Robustness and Improved UX

    We will further work on simplifying Theia and its UI / UX, improve the performance and keep working on bug reports that are rolling in.

  • More

    Any contributors might want to work on additional things. At least this happened in 2017 and is likely to increase with a growing community. :)

License

You can’t perform that action at this time.