File tree 3 files changed +15
-8
lines changed
3 files changed +15
-8
lines changed Original file line number Diff line number Diff line change 205
205
"runtimeExecutable" : " ${execPath}" ,
206
206
"args" : [
207
207
" --disable-extensions" ,
208
+ " --enable-proposed-api" ,
208
209
" --extensionDevelopmentPath=${workspaceFolder:Client}"
209
210
],
210
211
"sourceMaps" : true ,
Original file line number Diff line number Diff line change 72
72
"typescript" : " ~4.5.5" ,
73
73
"vsce" : " ~2.6.7"
74
74
},
75
+ "enabledApiProposals" : [
76
+ " terminalDisablePersistence"
77
+ ],
75
78
"extensionDependencies" : [
76
79
" vscode.powershell"
77
80
],
Original file line number Diff line number Diff line change @@ -104,14 +104,17 @@ export class PowerShellProcess {
104
104
utils . deleteSessionFile ( this . sessionFilePath ) ;
105
105
106
106
// Launch PowerShell in the integrated terminal
107
- this . consoleTerminal =
108
- vscode . window . createTerminal ( {
109
- name : this . title ,
110
- shellPath : this . exePath ,
111
- shellArgs : powerShellArgs ,
112
- hideFromUser : ! this . sessionSettings . integratedConsole . showOnStartup ,
113
- cwd : this . sessionSettings . cwd
114
- } ) ;
107
+ const terminalOptions = {
108
+ name : this . title ,
109
+ shellPath : this . exePath ,
110
+ shellArgs : powerShellArgs ,
111
+ hideFromUser : ! this . sessionSettings . integratedConsole . showOnStartup ,
112
+ cwd : this . sessionSettings . cwd ,
113
+ disablePersistence : true ,
114
+ // isTransient: true
115
+ } ;
116
+
117
+ this . consoleTerminal = vscode . window . createTerminal ( terminalOptions ) ;
115
118
116
119
const pwshName = path . basename ( this . exePath ) ;
117
120
this . log . write ( `${ pwshName } started.` ) ;
You can’t perform that action at this time.
0 commit comments