mirror of https://github.com/sbt/sbt.git
Prevent Output panel from stealing focus
Fixes https://github.com/sbt/sbt/issues/4247 Ref https://github.com/Microsoft/vscode/issues/31474
This commit is contained in:
parent
e18e9f7c3e
commit
e1cc81fbd6
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "vscode-sbt-scala",
|
||||
"version": "0.1.0",
|
||||
"version": "0.2.2",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue