@@ -21,7 +21,7 @@ import OptionProvider from '../observers/OptionProvider';
2121import reportIssue from './reportIssue' ;
2222import { IMonoResolver } from '../constants/IMonoResolver' ;
2323import { getDotnetInfo } from '../utils/getDotnetInfo' ;
24- import { getDecompilationAuthorization } from '../omnisharp/decompilationPrompt' ;
24+ import { getDecompilationAuthorization , resetDecompilationAuthorization } from '../omnisharp/decompilationPrompt' ;
2525
2626export default function registerCommands ( context : vscode . ExtensionContext , server : OmniSharpServer , platformInfo : PlatformInformation , eventStream : EventStream , optionProvider : OptionProvider , monoResolver : IMonoResolver , packageJSON : any , extensionPath : string ) : CompositeDisposable {
2727 let disposable = new CompositeDisposable ( ) ;
@@ -62,13 +62,13 @@ export default function registerCommands(context: vscode.ExtensionContext, serve
6262
6363async function showDecompilationTerms ( context : vscode . ExtensionContext , server : OmniSharpServer , optionProvider : OptionProvider ) {
6464 // Reset the decompilation authorization so the user will be prompted on restart.
65- context . workspaceState . update ( "decompilationAuthorized" , undefined ) ;
65+ resetDecompilationAuthorization ( context ) ;
6666
6767 await restartOmniSharp ( context , server , optionProvider ) ;
6868}
6969
7070async function restartOmniSharp ( context : vscode . ExtensionContext , server : OmniSharpServer , optionProvider : OptionProvider ) {
71- // Update decompilation authorization for this workspace .
71+ // Update decompilation authorization.
7272 server . decompilationAuthorized = await getDecompilationAuthorization ( context , optionProvider ) ;
7373
7474 if ( server . isRunning ( ) ) {
0 commit comments