提交 bc579fa5 编写于 作者: I isidor

do not offer to isntall mono debug on windows since it is not supported

fixes #3340
上级 a62fc190
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
import nls = require('vs/nls'); import nls = require('vs/nls');
import Severity from 'vs/base/common/severity'; import Severity from 'vs/base/common/severity';
import {onUnexpectedError} from 'vs/base/common/errors'; import {onUnexpectedError} from 'vs/base/common/errors';
import platform = require('vs/base/common/platform');
import { forEach } from 'vs/base/common/collections'; import { forEach } from 'vs/base/common/collections';
import { TPromise } from 'vs/base/common/winjs.base'; import { TPromise } from 'vs/base/common/winjs.base';
import { Action } from 'vs/base/common/actions'; import { Action } from 'vs/base/common/actions';
...@@ -46,7 +47,8 @@ function omnisharpChecker(accessor, callback) { ...@@ -46,7 +47,8 @@ function omnisharpChecker(accessor, callback) {
function monoDebugChecker(accessor, callback) { function monoDebugChecker(accessor, callback) {
const debugService = (<IDebugService>accessor.get(IDebugService)); const debugService = (<IDebugService>accessor.get(IDebugService));
const subscription = debugService.addListener2(ServiceEvents.TYPE_NOT_SUPPORTED, (type: string) => { const subscription = debugService.addListener2(ServiceEvents.TYPE_NOT_SUPPORTED, (type: string) => {
if (type === 'mono') { // mono debugging is not supported on windows, so do not offer an extension install if on windows
if (type === 'mono' && !platform.isWindows) {
subscription.dispose(); subscription.dispose();
callback(); callback();
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册