Skip to content

Commit e5af0fe

Browse files
authored
Merge pull request sbt#4250 from eed3si9n/wip/vscode_output
Prevent Output panel from stealing focus
2 parents e18e9f7 + e1cc81f commit e5af0fe

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

vscode-sbt-scala/client/package-lock.json

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vscode-sbt-scala/client/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "vscode-sbt-scala",
33
"displayName": "Scala (sbt)",
4-
"version": "0.2.0",
4+
"version": "0.2.2",
55
"author": "Lightbend, Inc.",
66
"license": "BSD-3-Clause",
77
"publisher": "lightbend",

vscode-sbt-scala/client/src/extension.ts

+8-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,13 @@ let fs = require('fs'),
77
os = require('os');
88
import * as vscode from 'vscode';
99
import { ExtensionContext, workspace } from 'vscode'; // workspace,
10-
import { LanguageClient, LanguageClientOptions, ServerOptions, TransportKind } from 'vscode-languageclient';
10+
import {
11+
LanguageClient,
12+
LanguageClientOptions,
13+
RevealOutputChannelOn,
14+
ServerOptions,
15+
TransportKind
16+
} from 'vscode-languageclient';
1117

1218
let terminal: vscode.Terminal = null;
1319

@@ -53,6 +59,7 @@ export async function activate(context: ExtensionContext) {
5359
// Options to control the language client
5460
let clientOptions: LanguageClientOptions = {
5561
documentSelector: [{ language: 'scala', scheme: 'file' }, { language: 'java', scheme: 'file' }],
62+
revealOutputChannelOn: RevealOutputChannelOn.Never,
5663
initializationOptions: () => {
5764
return discoverToken();
5865
}

0 commit comments

Comments
 (0)