Fix tab creation when current buffer contains no file
This commit is contained in:
parent
0a0cd88545
commit
5cb9c62e7f
2 changed files with 18 additions and 1 deletions
|
|
@ -457,7 +457,7 @@ class DebugSession( object ):
|
||||||
|
|
||||||
|
|
||||||
def _SetUpUI( self ):
|
def _SetUpUI( self ):
|
||||||
vim.command( 'tabedit %' )
|
vim.command( 'tab split' )
|
||||||
self._uiTab = vim.current.tabpage
|
self._uiTab = vim.current.tabpage
|
||||||
|
|
||||||
# Code window
|
# Code window
|
||||||
|
|
|
||||||
|
|
@ -50,6 +50,23 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"run - main.py": {
|
||||||
|
"adapter": "debugpy",
|
||||||
|
"configuration": {
|
||||||
|
"request": "launch",
|
||||||
|
"type": "python",
|
||||||
|
"cwd": "${workspaceRoot}",
|
||||||
|
"program": "${workspaceRoot}/main.py",
|
||||||
|
"stopOnEntry": false,
|
||||||
|
"console": "integratedTerminal"
|
||||||
|
},
|
||||||
|
"breakpoints": {
|
||||||
|
"exception": {
|
||||||
|
"raised": "N",
|
||||||
|
"uncaught": ""
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"run - exception question": {
|
"run - exception question": {
|
||||||
"adapter": "debugpy",
|
"adapter": "debugpy",
|
||||||
"configuration": {
|
"configuration": {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue