File tree Expand file tree Collapse file tree 4 files changed +1
-91
lines changed Expand file tree Collapse file tree 4 files changed +1
-91
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,6 @@ import CompositeDisposable from '../compositeDisposable';
26
26
import reportIssue from '../shared/reportIssue' ;
27
27
import { IHostExecutableResolver } from '../shared/constants/IHostExecutableResolver' ;
28
28
import { getDotnetInfo } from '../shared/utils/getDotnetInfo' ;
29
- import { getDecompilationAuthorization , resetDecompilationAuthorization } from '../omnisharp/decompilationPrompt' ;
30
29
import { IWorkspaceDebugInformationProvider } from '../shared/IWorkspaceDebugInformationProvider' ;
31
30
32
31
export default function registerCommands (
@@ -78,26 +77,10 @@ export default function registerCommands(
78
77
)
79
78
) ;
80
79
81
- disposable . add (
82
- vscode . commands . registerCommand ( 'csharp.showDecompilationTerms' , async ( ) =>
83
- showDecompilationTerms ( context , server )
84
- )
85
- ) ;
86
-
87
80
return new CompositeDisposable ( disposable ) ;
88
81
}
89
82
90
- async function showDecompilationTerms ( context : vscode . ExtensionContext , server : OmniSharpServer ) {
91
- // Reset the decompilation authorization so the user will be prompted on restart.
92
- resetDecompilationAuthorization ( context ) ;
93
-
94
- await restartOmniSharp ( context , server ) ;
95
- }
96
-
97
83
async function restartOmniSharp ( context : vscode . ExtensionContext , server : OmniSharpServer ) {
98
- // Update decompilation authorization.
99
- server . decompilationAuthorized = await getDecompilationAuthorization ( context ) ;
100
-
101
84
if ( server . isRunning ( ) ) {
102
85
server . restart ( ) ;
103
86
} else {
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -20,7 +20,6 @@ import Disposable from '../disposable';
20
20
import { OmniSharpMonoResolver } from './omniSharpMonoResolver' ;
21
21
import { getMonoVersion } from '../utils/getMonoVersion' ;
22
22
import { LanguageMiddlewareFeature } from './languageMiddlewareFeature' ;
23
- import { getDecompilationAuthorization } from './decompilationPrompt' ;
24
23
import { DotnetResolver } from './dotnetResolver' ;
25
24
import { Advisor } from '../features/diagnosticsProvider' ;
26
25
import { OmnisharpWorkspaceDebugInformationProvider } from '../omnisharpWorkspaceDebugInformationProvider' ;
@@ -50,8 +49,6 @@ export async function activate(
50
49
languageMiddlewareFeature . register ( ) ;
51
50
disposables . add ( languageMiddlewareFeature ) ;
52
51
53
- const decompilationAuthorized = await getDecompilationAuthorization ( context ) ;
54
-
55
52
const server = new OmniSharpServer (
56
53
vscode ,
57
54
provider ,
@@ -61,7 +58,6 @@ export async function activate(
61
58
extensionPath ,
62
59
omnisharpMonoResolver ,
63
60
omnisharpDotnetResolver ,
64
- decompilationAuthorized ,
65
61
context ,
66
62
outputChannel ,
67
63
languageMiddlewareFeature
Original file line number Diff line number Diff line change @@ -115,7 +115,6 @@ export class OmniSharpServer {
115
115
private extensionPath : string ,
116
116
private monoResolver : IHostExecutableResolver ,
117
117
private dotnetResolver : IHostExecutableResolver ,
118
- public decompilationAuthorized : boolean ,
119
118
private context : ExtensionContext ,
120
119
private outputChannel : OutputChannel ,
121
120
private languageMiddlewareFeature : LanguageMiddlewareFeature
@@ -463,7 +462,7 @@ export class OmniSharpServer {
463
462
args . push ( 'FormattingOptions:OrganizeImports=true' ) ;
464
463
}
465
464
466
- if ( this . decompilationAuthorized && omnisharpOptions . enableDecompilationSupport === true ) {
465
+ if ( omnisharpOptions . enableDecompilationSupport === true ) {
467
466
args . push ( 'RoslynExtensionsOptions:EnableDecompilationSupport=true' ) ;
468
467
}
469
468
You can’t perform that action at this time.
0 commit comments