Skip to content

Commit

Permalink
Do not depend on @theia/json
Browse files Browse the repository at this point in the history
Signed-off-by: Anatoliy Bazko <abazko@redhat.com>
  • Loading branch information
tolusha committed Nov 27, 2019
1 parent 0f16fe8 commit 4eb8ad2
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion packages/debug/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
"@theia/core": "^0.12.0",
"@theia/editor": "^0.12.0",
"@theia/filesystem": "^0.12.0",
"@theia/json": "^0.12.0",
"@theia/languages": "^0.12.0",
"@theia/markers": "^0.12.0",
"@theia/monaco": "^0.12.0",
Expand Down
1 change: 0 additions & 1 deletion packages/preferences/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
"@theia/core": "^0.12.0",
"@theia/editor": "^0.12.0",
"@theia/filesystem": "^0.12.0",
"@theia/json": "^0.12.0",
"@theia/monaco": "^0.12.0",
"@theia/userstorage": "^0.12.0",
"@theia/workspace": "^0.12.0",
Expand Down
3 changes: 1 addition & 2 deletions packages/preferences/src/browser/preferences-tree-widget.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ import { UserPreferenceProvider } from './user-preference-provider';
import { WorkspacePreferenceProvider } from './workspace-preference-provider';
import { PreferencesEditorWidget, PreferenceEditorContainerTabBarRenderer } from './preference-editor-widget';
import { EditorWidget, EditorManager } from '@theia/editor/lib/browser';
import { JSONC_LANGUAGE_ID } from '@theia/json/lib/common';
import { DisposableCollection, Emitter, Event, MessageService } from '@theia/core';
import { Deferred } from '@theia/core/lib/common/promise-util';
import { FileSystem, FileSystemUtils } from '@theia/filesystem/lib/common';
Expand Down Expand Up @@ -346,7 +345,7 @@ export class PreferencesEditorsContainer extends DockPanel {
workspacePreferences.title.label = 'Workspace';
workspacePreferences.title.caption = `Workspace Preferences: ${await this.getPreferenceEditorCaption(workspacePreferenceUri!)}`;
workspacePreferences.title.iconClass = 'database-icon medium-yellow file-icon';
workspacePreferences.editor.setLanguage(JSONC_LANGUAGE_ID);
workspacePreferences.editor.setLanguage('jsonc');
workspacePreferences.scope = PreferenceScope.Workspace;
}
return workspacePreferences;
Expand Down

0 comments on commit 4eb8ad2

Please sign in to comment.