Merge pull request #4250 from eed3si9n/wip/vscode_output

Prevent Output panel from stealing focus
This commit is contained in:
eugene yokota 2018-07-06 08:22:09 -04:00 committed by GitHub
commit e5af0fe0e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 3 deletions

View File

@ -1,6 +1,6 @@
{
"name": "vscode-sbt-scala",
"version": "0.1.0",
"version": "0.2.2",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

View File

@ -1,7 +1,7 @@
{
"name": "vscode-sbt-scala",
"displayName": "Scala (sbt)",
"version": "0.2.0",
"version": "0.2.2",
"author": "Lightbend, Inc.",
"license": "BSD-3-Clause",
"publisher": "lightbend",

View File

@ -7,7 +7,13 @@ let fs = require('fs'),
os = require('os');
import * as vscode from 'vscode';
import { ExtensionContext, workspace } from 'vscode'; // workspace,
import { LanguageClient, LanguageClientOptions, ServerOptions, TransportKind } from 'vscode-languageclient';
import {
LanguageClient,
LanguageClientOptions,
RevealOutputChannelOn,
ServerOptions,
TransportKind
} from 'vscode-languageclient';
let terminal: vscode.Terminal = null;
@ -53,6 +59,7 @@ export async function activate(context: ExtensionContext) {
// Options to control the language client
let clientOptions: LanguageClientOptions = {
documentSelector: [{ language: 'scala', scheme: 'file' }, { language: 'java', scheme: 'file' }],
revealOutputChannelOn: RevealOutputChannelOn.Never,
initializationOptions: () => {
return discoverToken();
}